Giter VIP home page Giter VIP logo

Comments (4)

Xiao9905 avatar Xiao9905 commented on June 8, 2024

Thanks for your pointing out! Because this is still a draft technical report, we have many details to update in very few days.

First, in this work, all results of "prompt tuning", "P-tuning", "P-tuning v2", and "Multitask P-tuning v2" are obtained by freezing the transformers parameters and only tuning the continuous prompts. Ratios of task-specific parameters (e.g., 0.1%) are derived from comparing continuous prompts' parameters with pre-trained transformers' parameters. Only results of "fine-tuning" are obtained by tuning transformers' parameters (without using continuous prompts).

Second, parameters really tuned are prefix token embeddings in the input of every transformer layers. In vanilla P-tuning (v1), we only tuned continuous prompts for the first transformer layer; in P-tuning v2, embeddings at certain positions (e.g., in the beginning of sequences) in input embedding sequences for every transformer layers are tuned. We are not using MLP as reparamerization in this work, but just pure embeddings.

from p-tuning-v2.

petrovlesha avatar petrovlesha commented on June 8, 2024

So that mean for prefix tokens intermediate layer input is not obtained from previous layer, it's just some latent embeddings? And in case of 24 layer model and 50 tokens prefix you tune 50 * 24 = 1200 embeddings instead of 50, right?

from p-tuning-v2.

Xiao9905 avatar Xiao9905 commented on June 8, 2024

Yes, your understanding is correct.

from p-tuning-v2.

petrovlesha avatar petrovlesha commented on June 8, 2024

Thank you! That helped a lot.

from p-tuning-v2.

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.