Giter VIP home page Giter VIP logo

Comments (3)

madhavatreplit avatar madhavatreplit commented on September 1, 2024 3

Hey! Thank you for sharing your numbers!

Quick sanity checks for running on GPUs after looking at the script you shared here:

  • seems like we are not using the weights in bfloat16 there? You can support that with model.to(device='cuda:0', dtype=torch.bfloat16).
  • we can pass in attn_impl='triton' kwarg in AutoModelForCausalLM.from_pretrained to use Triton Flash Attention implementation which is faster. Note that this for you would need to install the following dependancies: flash-attn==0.2.8, triton==2.0.0.dev20221202. Note that installing flash-attn sometimes is hairy, so install torch first and install flash-attn after.

Our README in the Hub also has the exact snippets to use.

Keep me posted if this doesn't work. Happy to help you out!

from replitlm.

elikoga avatar elikoga commented on September 1, 2024

I'm on Windows so no Triton for me :(

Don't know how bfloat16 might affect performance but I can try later

from replitlm.

madhavatreplit avatar madhavatreplit commented on September 1, 2024

That should help with inference.

Closing this issue. Let me know if you run into blockers or if I can help with anything else!

from replitlm.

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.