Giter Site home page Giter Site logo

Comments (3)

calpt avatar calpt commented on May 17, 2024 1

Hi @xplip,

Either way it would be good to know if the pytorch_model_head.bin in the NER task adapter's directory is the same as the one in the language adapter's directory

As you're using a model that only supports one fixed head (BertForTokenClassification etc.), the weights of the head saved in the folder of the language adapter and those saved in the folder of the task adapter should be identical in every case, so it shouldn't make a difference from where they are loaded.

The script loads the prediction head weights from the language adapter's pytorch_model_head.bin whereas the task adapter's pytorch_model_head.bin is not used

That's actually a bug, since prediction heads of task adapters certainly should also be loaded if available. :)

from adapters.

xplip avatar xplip commented on May 17, 2024

Thinking about it, it would probably not make sense to copy the pytorch_model_head.bin. Rather I would fine-tune again on the new adapter and use the head generated from that finetuning procedure.
Either way it would be good to know if the pytorch_model_head.bin in the NER task adapter's directory is the same as the one in the language adapter's directory

from adapters.

xplip avatar xplip commented on May 17, 2024

Sorry for the comment mess. 😄 I guess what's mainly caused my confusion was that the language adapter is not actually being finetuned (the weights are fixed here), whereas the NER adapter is actually being finetuned, but then the prediction head is not loaded from the NER adapter directory (regardless of whether that makes a difference).

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.