Giter Club home page Giter Club logo

Comments (6)

chrisociepa avatar chrisociepa commented on August 26, 2024 1

The model is just a container of weights, layers, etc. FB has created their own configurations and trained them, that's all. You can use the model, configure it with in your own way (number of heads, layers, embeddings, etc) and then train it. The tricky part here is to train it, because so far they have not provided any code to do that. I don't expect it to be a problem though and I think you could use similar approach as it was used for training other models (like GPT-2) since the architecture is pretty much the same here.

Re the model size - it is hard to answer your questions, because they are too generic. I think they are use cases where 40M is good enough (even much smaller models might be). With a single 8GB GPU, you could train it in a few days I think. But again, it depends on different factors (the training dataset size, parameters, even your implementation). I don't have trained my own LLAMA model at this moment, so nothing to public yet :)

from llama.

elephantpanda avatar elephantpanda commented on August 26, 2024

You won't be able to train it by yourself. It would take thousands of years on a desktop PC.

There may be a way to train it using a distributed network of computers. For example splitting a batch between a hundred computers and aggregating the results.

Do you own a supercomputer perhaps?

from llama.

chrisociepa avatar chrisociepa commented on August 26, 2024

@pauldog not necessary. It depends on the model size. If you create a model with ~40M params, you can train and run it locally without any sophisticated setup (6-8GB GPU could be good enough). But you are totally right if we are talking about models x B params.

from llama.

elephantpanda avatar elephantpanda commented on August 26, 2024

Interesting. I think I must have misunderstood and thought 7B was the minimum you must have.

Will 40M be enough to get something interesting do you think? How long do you think it will take you to train it? Will you release it to the public 😁

Maybe with smaller size you need to pick your training data really well.

from llama.

chrisociepa avatar chrisociepa commented on August 26, 2024

In case you are still interested in training your own LLaMA-based model, I released my own implementation: https://github.com/chrisociepa/allamo . I tested it on RTX 2060 6GB running training for a model with 90M parameters.

from llama.

albertodepaola avatar albertodepaola commented on August 26, 2024

For future reference, check the current getting started guides on both llama and llama-recipes repositories

from llama.

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.