News for hackers. Stuff that matters.
Re:OpenLLM by DrNosferatu on Monday June 19, 2023 @09:02AM (#36390578)
The project seems great!

However, newcomers (like me) are pretty blind about minimum system requirements.

Could you please add them to the models list?

For example: what minimum hardware do I need to run Falcon-40b?

PS: If you only have a few setups "known to work" (or just one), listing that would be helpful too.

Re:OpenLLM by luckystarr on Monday June 19, 2023 @09:28AM (#36390847)
From the HuggingFace page:

> You will need at least 85-100GB of memory to swiftly run inference with Falcon-40B.

So it may be possible with less (swap around method), though not as efficiently and also slower.

Re:OpenLLM by philoko on Monday June 19, 2023 @09:25AM (#36390819)
For Falcon 40b, the 8-bit version would probably need about 48GB of VRAM while the 4-bit would need something closer to 28GB.
Re:OpenLLM by aarnphm on Monday June 19, 2023 @12:47PM (#36393230)
Currently on main, 8bit and 4bit quant is supported

One can simply do

```openllm start falcon --model-id tiiuae/falcon-40b-instruct --quantize int4```

Beware that there is no free lunch, meaning the quality of inference will degrade by alot when using int 4 quantization

Re:OpenLLM by leetharris on Monday June 19, 2023 @09:16AM (#36390718)
For falcon 40b you probably need an A100 40gb or so.

Every model is drastically different.

If you want to run something on consumer hardware, your best bet is using anything ported to the ggml framework, especially if you're on Apple silicon.

Re:OpenLLM by frodowtf on Monday June 19, 2023 @10:44AM (#36391633)
Do you know any "standard" way or measures to determine the approximate hardware requirements of a model?
Re:OpenLLM by tyre on Monday June 19, 2023 @12:36PM (#36393065)
You want the entire model to fit in memory. So if you’re looking at a download size of, say, 100GB then don’t run on less than that. Your machine will swap to/from disk constantly, which will be slow and wear out an SSD.

If you want to train a model, that’s a different story.

Re:OpenLLM by MacsHeadroom on Monday June 19, 2023 @12:46PM (#36393206)
Model size in GB = VRAM required for uncompressed inference (16bit aka "half precision) plus ~1-4GB for context. For 8bit you need half that. For GPTQ/4bit you need 1/4 that.

For example, assuming GPTQ 4bit a 100GB 16bit model needs 26-30GB of VRAM. The smallest video cards which meet this requirement will be 32GB or 40GB cards. (two 24GB cards in parallel work as well, e.g. 2x3090)

Re:OpenLLM by Aerroon on Monday June 19, 2023 @12:57PM (#36393417)
To add: usually when you go to download a ggml model you want a quantized version. People like TheBloke will usually have some RAM requirements for running it, eg: https://huggingface.co/TheBloke/vicuna-13b-v1.3-GGML

The number after q determines how many bits the weights are. Eg q4 means that is 4-bit.

If you use something like KoboldCPP you can only put some of the layers onto the GPU and be able to run larger models that way.

Eg the above linked Vicuna model requires about 10GB of memory at q4, but I have less VRAM than that. I can still run it though.

Re:OpenLLM by PcChip on Monday June 19, 2023 @02:19PM (#36394679)
Let's say I wanted to use one of their quantized models with this OpenLLM project. How would I do that?
Re:OpenLLM by Aerroon on Monday June 19, 2023 @04:03PM (#36395846)
Sorry, I don't know. I suspect that it's not possible (yet?). OpenLLM lists a bunch of models in the Github Readme. I think the best way would be to use those for now.