Git Product home page Git Product logo

Comments (2)

osainz59 avatar osainz59 commented on May 24, 2024 1

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.

fillipefbr avatar fillipefbr commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.