Live data from Hacker News

Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

github.com

21–30 of 47 posts

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#21

Author here. The constraint everyone works around is that the frozen base has to fit in VRAM. But during LoRA the base is frozen — read, never written. It doesn't need to live in VRAM, it needs to arrive before the matmul that uses it. So it sits in host RAM and streams into a small pool of pre-allocated VRAM buffers, one decoder layer at a time, prefetched one ahead on a dedicated CUDA stream. Peak VRAM becomes one…

Can you write one answer that isn't AI-sourced?

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#24

Author here. The constraint everyone works around is that the frozen base has to fit in VRAM. But during LoRA the base is frozen — read, never written. It doesn't need to live in VRAM, it needs to arrive before the matmul that uses it. So it sits in host RAM and streams into a small pool of pre-allocated VRAM buffers, one decoder layer at a time, prefetched one ahead on a dedicated CUDA stream. Peak VRAM becomes one…

Can you write one answer that isn't AI-sourced?

[dead]

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#25

Tangential/meta: Holy shit, I've never seen a thread where almost half the comments are dead (and LLM written), especially for a post that's (currently) at 86 points and 20 comments (4x ratio is "pretty good quality" post signal generally for me).

Those are mine. I used an LLM for my replies and that was a bad call, I said so further down.

Writing them myself now.

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#26

This seems really interesting - I was curious about this line from the website. “The whole post-training stack in one CLI. Soup doctors your data pre-flight, picks the method, writes the config, derives evals from your own data, gates every save, and self-corrects reward hacking mid-run instead of just halting.” How does soup auto tune the hyper parameters and make some of these more complex training decisions?

[flagged]

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#27

How much data do you need to fine tune a model?

Depends what you change. Format or style, few hundred rows is often enough. A task the model already half knows, few thousand.

New facts is where people waste a week. The model comes back wrong in a new way. Use RAG for facts.

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#28

Why is there still a hard VRAM requirement that's dependent on the model size? Isn't that exactly what this project is supposed to solve?

Because streaming only removes the decoder stack. The embeddings and lm_head stay resident, that is 2.10 GB of the 3.32 GB peak on 8B. And the logits tensor scales with batch x seq x vocab, not with depth.

So it goes from "whole model must fit" to "embeddings plus one layer plus logits must fit". That is why 8B works and why I did not try 14B.

The table on the site is the normal resident path, streaming is opt-in and BETA. Should be clearer, my fault.

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#29
post #19

This looks cool - what 4 GB GPU laptop do you recommend?

Do not buy a 4 GB card for this. Mine is an RTX 3050 Laptop, I picked it because it is boring hardware that many people already have. If you are buying, buy VRAM. At 0.5B where I could measure both, resident training was 1.43x faster than streaming. And if you do stream, system RAM matters more, the base sits there and has to page-lock. 16 GB is about the floor for 8B.

Re: Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

#30

Author here. The constraint everyone works around is that the frozen base has to fit in VRAM. But during LoRA the base is frozen — read, never written. It doesn't need to live in VRAM, it needs to arrive before the matmul that uses it. So it sits in host RAM and streams into a small pool of pre-allocated VRAM buffers, one decoder layer at a time, prefetched one ahead on a dedicated CUDA stream. Peak VRAM becomes one…

Can you write one answer that isn't AI-sourced?

Can you just get over it and read what's already there? Anyway, your loss.
Post reply on HN