3 ms·
Nice project! I could not find the information in the README.md, can I run this with a GPU? If so what do I need to change? Seems like it's hardcoded to 0 in th
by belval 3y ago
Nice project! I could not find the information in the README.md, can I run this with a GPU? If so what do I need to change? Seems like it's hardcoded to 0 in the run script: https://github.com/getumbrel/llama-gpt/blob/master/api/run.sh#L12 https://github.com/getumbrel/llama-gpt/blob/master/api/run.s...
- crudgen 3y agoHad the same thought, since it is kinda slow (only have 4 pyhsical/8 logical cores though). But I think vRAM might be a problem (8gb can work, if one has a rather recent gpu (here m1/2 might be interesting)).
- mayankchhabra 3y agoAh yes, running on GPU isn't supported at the moment. But CUDA (for Nvidia GPUs) and Metal support is on the roadmap!
- samspenc 3y agoAh fascinating, just curious, what's the technical blocker? I thought most of the Llama models were optimized to run on GPUs?
- mayankchhabra 3y agoIt's fairly straightforward to add GPU support when running on the host, but LlamaGPT runs inside a Docker container, and that's where it gets a bit challenging.
- dicriseg 3y agoI put up a draft PR to demo how to run it on a GPU: https://github.com/getumbrel/llama-gpt/pull/11 https://github.com/getumbrel/llama-gpt/pull/11 It breaks other things like model downloading, but once I got it to a working state for myself, I figured why not put it up there in case its useful. If I have time, I'll try to rework it a little bit with more parameters and less dockerfile repetition to fit the main project better.