Live data from Hacker News

Ask HN: How to run Language Models on your own?

news.ycombinator.com

1–9 of 9 posts

Ask HN: How to run Language Models on your own?

#1
As someone who is new to running Language Models, I am struggling to understand the infrastructure needed to run them effectively. I would greatly appreciate any advice you can offer. Could you please help me with the following questions:

1. What are the hardware specifications you would recommend for running Language Models?

2. What are the building options available for Language Models and which one is the easiest to set up?

3. Is it better to rent or buy hardware for running Language Models?

4.What are some cost-saving strategies that have worked for you when running Language Models?

Re: Ask HN: How to run Language Models on your own?

#4
The best of the best right now is probably Vicuna 13B. The 30B and 65B LLaMA models are better on benchmarks, but there isn’t a compelling instruct fine tuned version of those yet so they require a lot of prompt engineering.

If you want to run Vicuna without quantization you need 25GB of VRAM, which exceeds pretty much all consumer GPUs. Vicuna 4bit GPTQ is decent though I personally notice a quality difference when comparing it to 16bit.

CPU is also an option, you can run pretty much any model that will fit in your RAM, although your performance will obviously suffer. LlamaCPP has gotten very popular.

Re: Ask HN: How to run Language Models on your own?

#6
post #4

The best of the best right now is probably Vicuna 13B. The 30B and 65B LLaMA models are better on benchmarks, but there isn’t a compelling instruct fine tuned version of those yet so they require a lot of prompt engineering. If you want to run Vicuna without quantization you need 25GB of VRAM, which exceeds pretty much all consumer GPUs. Vicuna 4bit GPTQ is decent though I personally notice a quality difference when…

[deleted]

Re: Ask HN: How to run Language Models on your own?

#7
post #4

The best of the best right now is probably Vicuna 13B. The 30B and 65B LLaMA models are better on benchmarks, but there isn’t a compelling instruct fine tuned version of those yet so they require a lot of prompt engineering. If you want to run Vicuna without quantization you need 25GB of VRAM, which exceeds pretty much all consumer GPUs. Vicuna 4bit GPTQ is decent though I personally notice a quality difference when…

Thanks for the advise.

Re: Ask HN: How to run Language Models on your own?

#8
On a slight tangent, I feel like this is one major ace up Apple’s sleeve, if they can zoom into it. With the awesome performance of Apple Silicon and how lots of the big leaps are seen with video rendering, they just need to focus some more on the ML capabilities. They’ve been skirting around ML with some optimizing on popular ML libraries, but it’s mostly focused on inference, but hopefully with recent pytorch 2.0 optimizations and co, they can meet open source libraries halfway, and do more.

I think the current proliferation of AI and general awareness of LLM can be a major selling point if they make sure their neural engine is well optimized for it. Will put them right at the center of the conversation, especially since one of the current concern is the cost of training these models.