Show HN: Fine-tune an 8B model on a 4 GB laptop GPU
- AI
- Open Source
- Developer Tools
- Infrastructure
Soup is a command line tool for post-training open weight language models, aimed at the very specific bottleneck that usually blocks local fine-tuning on consumer hardware: even with LoRA, the frozen base model normally has to fit in GPU memory. The author’s approach is to keep that frozen base in host RAM and stream decoder layers into a small set of pre-allocated GPU buffers just before each matrix multiply. On the published test setup, an RTX 3050 laptop GPU with 4 GB of VRAM on Windows, the author reports LoRA fine-tuning of Llama-3.1-8B in NF4 at a 3.32 GB peak and Qwen2.5-3B in bf16 at 2.15 GB, with a measured 1.43x slowdown versus fully resident training at a smaller size where both paths could be compared.
If you are evaluating local LLM customization, this makes 3B to 8B fine-tuning practical on commodity laptops, but you still need to budget for embeddings, logits, and host RAM. Treat it as a tool for style, format, and task adaptation, then use retrieval-augmented generation for factual knowledge instead of trying to stuff new facts into a tiny fine-tune.
-
github.com
- Discuss on HN