Git Product home page Git Product logo

Comments (1)

luofuli avatar luofuli commented on April 27, 2024 1

We only released the fine-tuning code of VECO. In the directory of NLG code which are implemented based on fairseq, we transferred the pre-trained model state_dict keys into the format of fairseq via a mapping when fine-tuning on NLG tasks.
The encoder_attn denotes the cross_attention. The detailed mapping is shown as below:

{'cross_attention.query.weight': 'encoder_attn.q_proj.weight',
'cross_attention.query.bias': 'encoder_attn.q_proj.bias',
'cross_attention.key.weight': 'encoder_attn.k_proj.weight',
'cross_attention.key.bias': 'encoder_attn.k_proj.bias',
'cross_attention.value.weight': 'encoder_attn.v_proj.weight',
'cross_attention.value.bias': 'encoder_attn.v_proj.bias',
'cross_attention.output.dense.weight': 'encoder_attn.out_proj.weight',
'cross_attention.output.dense.bias': 'encoder_attn.out_proj.bias',
'cross_attention.output.LayerNorm.gamma': 'encoder_attn_layer_norm.weight',
'cross_attention.output.LayerNorm.beta': 'encoder_attn_layer_norm.bias'}

from alicemind.

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.