Giter Site home page Giter Site logo

Comments (7)

byshiue avatar byshiue commented on May 19, 2024
  1. If the GPT2 model of Huggingface transformer is same to the GPT2 paper, then yes.
  2. If the model of T5 or Bart in Hugginface transformer is same to the decoder of Attention is all you need, then yes.

from fastertransformer.

gyin94 avatar gyin94 commented on May 19, 2024
  • If the GPT2 model of Huggingface transformer is same to the GPT2 paper, then yes.
  • If the model of T5 or Bart in Hugginface transformer is same to the decoder of Attention is all you need, then yes.

The layer names of the implementation would be different.

from fastertransformer.

byshiue avatar byshiue commented on May 19, 2024
  • If the GPT2 model of Huggingface transformer is same to the GPT2 paper, then yes.
  • If the model of T5 or Bart in Hugginface transformer is same to the decoder of Attention is all you need, then yes.

The layer names of the implementation would be different.

The layer name is used to get the tensor/weight. You can change them directly in python codes.

from fastertransformer.

gyin94 avatar gyin94 commented on May 19, 2024

Is there any plan to add the conversion since huggingface transformers are more popular and easy to use now? Thanks.

from fastertransformer.

byshiue avatar byshiue commented on May 19, 2024

We have such plan, but still not have enough bandwidth now.
We also encourage users to contribute their conversion.

from fastertransformer.

gyin94 avatar gyin94 commented on May 19, 2024

@byshiue I have another question. Have we added the log_softmax of logits for each token prediction in decoding? This can be useful for post processing. ctranslate2, lightseq and HuggingFace have all implemented it.

from fastertransformer.

byshiue avatar byshiue commented on May 19, 2024

If we need cumulate the previous probability (like beam search), we will use log softmax.

from fastertransformer.

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.