Giter Site home page Giter Site logo

Comments (4)

JoPfeiff avatar JoPfeiff commented on May 17, 2024

Hey can you try setting "language": None. language is only used when stacking a task adapter (such as NER) on a pre-trained language adapter (such es en). You would need to additionally load a language adapter such as en/wiki@ukp to use this flag with e.g. bert-base-multilingual-cased.
Thanks for pointing this out, this is a bug and we will fix it!

from adapters.

stefan-it avatar stefan-it commented on May 17, 2024

Hi @JoPfeiff ,

thanks for that hint - it's working now! I made some experiments with the WNUT-17 dataset (not on CoNLL-2003 as originally stated in the issue) to compare against a fully fine-tuned model:

Model Run 1 Run 2 Run 3 Run 4 Run 5 Avg.
Fully fine-tuned (60.60) / 48.65 (58.58) / 47.79 (58.24) / 48.48 (61.10) / 48.06 (58.47) / 48.34 (59.40) / 48.26
Adapter (Pfeiffer) (57.81) / 46.36 (58.31) / 45.89 (58.31) / 46.78 (55.78) / 46.51 (57.75) / 46.85 (57.59) / 46.48

There's currently a performance diff of 1.78%, so do you have any hints for boosting performance 🤔 Thanks ❤️

from adapters.

JoPfeiff avatar JoPfeiff commented on May 17, 2024

We have found that due to the newly introduced parameters, adapters require a higher learning rate. A default lr=0.0001 seems to work well in most cases. Also, depending on the dataset size you might need to train longer than usual.
We usually trained for up to 30 epochs and stored the best model based on the results on the dev set.

You can also try out the houlsby architecture or increase the bottleneck_size (currently set with reduction_factor).

We will soon add a small guide on how to train adapters where these types of tipps will be included :)

from adapters.

JoPfeiff avatar JoPfeiff commented on May 17, 2024

from adapters.

Related Issues (20)

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.