Giter Site home page Giter Site logo

Comments (5)

muqeeth avatar muqeeth commented on August 14, 2024

Hi, thank you for reporting the issue. The (IA)^3 implemented in this project is based on T5 1.1 models. The specific backbone model we utilized is T0, which is a multitask trained T5 1.1 LM adapted model. You can find T5 1.1 models on Hugging Face under the name google/t5_v_1_base. There are differences in architecture and pretraining data between T5 and T5 1.1 models. As a result, the configuration includes wi_1 for feedforward layers, whereas T5 has w_i. If you plan to use (IA)^3 for T5 models, you can modify the config accordingly.

from t-few.

dionman avatar dionman commented on August 14, 2024

how can this json be written for the case of falcon-7b?

from t-few.

SumanthRH avatar SumanthRH commented on August 14, 2024

Hi @dionman, from the way I understand it, the current $(IA)^3$ code is a thin wrapper around a LoRA implementation. The implementation works only for T5 1.1 - like models with a certain feedforward architecture. For a standard transformer architecture like in BERT, GPT-2, the learned vector should get injected differently for the feedforward block vs the attention block (key, value layers). This is what I got from the paper atleast.

As of this writing, HuggingFace's PEFT has integrated $(IA)^3$. (My PR here: huggingface/peft#578). That should be simple to use for your use case!

Also, @muqeeth, do check out the current PEFT implementation!

from t-few.

dionman avatar dionman commented on August 14, 2024

Thanks @SumanthRH. Is this also handling the altered loss function and the normalization proposed in the T-Few recipe?

from t-few.

SumanthRH avatar SumanthRH commented on August 14, 2024

No it does not! PEFT only implements $(IA)^3$, not the full TFew recipe!

from t-few.

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.