Comments (2)
Hi!
Thanks for your comments I really appreciate them!
Regarding the question about the time required for training the model, yes, fine-tuning a model with this method takes time. In fact, it is proportional to the number of entailment/neutral/contradiction examples generated per TACRED example. I can give you some approximations based on my hardware:
GPU: 2080ti (11Gb)
Hyperparameter | Value |
---|---|
posn | 2 |
negn | 5 |
epochs | 5 |
per_device_train_batch_size | 16 |
gradient_accumulation | 2 |
fp16 | True |
With that configuration I am able to train roberta-large
at 2.86 hours/epoch (whole dataset). Nevertheless, the results reported at the paper were obtained using posn
and negn
equal to 1, so, the training should be faster (check the paper Appendix B for more details).
Regarding the question about the output directory, also yes. Once you train your model you can pass the path to the pretrained_model
argument to load and test your fine-tuned model. I was planning to upload already trained models to the HuggingFace Hub, but I am quite busy right now.
Let me know if you have any other question :)
from ask2transformers.
Thank you very much!
I actually found out that the problem was related to the --task_name mnli
parameter, which was ignoring my local train/dev/test
files. Removing this parameter made everything work as expected 🎉
from ask2transformers.
Related Issues (12)
- Please update the README? HOT 3
- fine-tuning Few-Shot Relation Classification HOT 2
- Tutorial or examples HOT 2
- Typo in apostrophes HOT 1
- Zero-shot Tacred Relation Classification HOT 2
- How to reproduce the EAE task result? HOT 3
- verbalization HOT 4
- Few-Shot RE HOT 2
- Positive (isNext) output for Next Sentence Prediction might be 0 HOT 3
- Incomplete documentation
- Fewshot checkpoints for TACRED HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ask2transformers.