Giter Club home page Giter Club logo

Comments (6)

yezhengmao1 avatar yezhengmao1 commented on July 28, 2024
  • The repo show how to test the throughput.
  • This project is now just used for the train, the inference's implementation will be added later(the main branch's inference just for test).

from mlora.

ChaoGaoUCR avatar ChaoGaoUCR commented on July 28, 2024

Thanks for replying to me.
Yes, I understand the patch.
I just got confused by the feed-forward part in the tuning session,
aren't we supposed to do auto-regression in the feed-forward parts?

from mlora.

yezhengmao1 avatar yezhengmao1 commented on July 28, 2024

Do you mean why there is only use the output to train, not like the inference produces token by token and calc the MSELoss?

from mlora.

ChaoGaoUCR avatar ChaoGaoUCR commented on July 28, 2024

Yes,
I was thinking aren't we supposed to first generate a series of outputs and then use the output tokens to compare with the ground truth label?
Like: "ML is Fun" as input, Out put is "ML is Fun topic to work on" which add 4 words(maybe 12 tokens)
Then the ground truth is "ML is Fun topic indeed"
Then we compare these two.

from mlora.

yezhengmao1 avatar yezhengmao1 commented on July 28, 2024

I think sequence classification/regression does this, if we just train for chat, cross-entropy loss maybe better.
If your input is "ML is Fun topic indeed.", the output will contain all sub-sequence predictions, "ML xx", "ML is xx", "ML is Fun xx", "ML is Fun topic xx". Then we calc the cross-entropy loss.
But we can add the classification/regression features later if needed.

from mlora.

merlintang avatar merlintang commented on July 28, 2024

since no comments, i would like to close this one.

from mlora.

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.