Soup Fine-Tunes 8B LLMs on 4GB Laptop GPUs
Fine-tuning an 8-billion-parameter model on a machine that would struggle to play Cyberpunk at medium settings sounds like a joke. But Soup v0.72.4 actually does it. On an RTX 3050 Laptop with 4GB of VRAM — not a typo, four gigabytes — it trains Llama-3.1-8B-Instruct at 119.6 tokens per second using less than 3.4 GB of peak memory. The numbers come from real measurements, not optimistic projections, and the results are bit-exact matches against a normal resident training run.
The trick is “layer streaming.” Instead of loading the entire model into VRAM, Soup feeds one decoder layer at a time from host memory to the GPU. Only the active layer and training state sit in VRAM. The frozen base model stays out. When you are done with one layer, the next one streams in, and the process repeats. Peak VRAM becomes the size of a single layer plus training overhead — not the entire model.
How Layer Streaming Works
Most fine-tuning methods load the full model into GPU memory before training begins. For an 8B model in 4-bit precision, that is roughly 5-6 GB even with NF4 quantization — enough to OOM on a 4GB card. QLoRA reduces this by quantizing the base weights and training low-rank adapter matrices, but the base weights still need to be resident.
Soup inverts this. The base model stays in system RAM or disk, quantized with NF4. At each training step, the framework copies exactly one transformer layer into VRAM, runs the forward pass, computes gradients for the LoRA adapters, updates them, and discards the layer. Then it moves to the next layer.
On the surface, this sounds slow — streaming layers one by one adds data movement overhead. But Soup hits 119.6 tokens per second on Llama-3.1-8B with full SM occupancy, meaning the GPU compute cores are saturated even while layers shuttle in and out. The throughput is practical enough for real fine-tuning runs, not just toy experiments.
The measured configuration: RTX 3050 Laptop (4GB, Windows), Llama-3.1-8B-Instruct in NF4, LoRA rank 16, sequence length 2048. Peak VRAM: 3.32 GB. Tokens per second: 119.6. SM occupancy: 100%. And the trained weights match, bit for bit, a run where the full model sat resident in a larger GPU.
For smaller models without quantization, the numbers get even better. Qwen2.5-3B in unquantized bf16 runs at 143 tok/s in 2.15 GB. That same configuration goes CUDA OOM on the same card if you try resident training. Layer streaming is not just making the impossible possible — it is making it fast.
Why This Matters More Than You Think
The AI community has spent the last three years normalizing the idea that serious model work requires expensive hardware. H100 clusters. A100s if you are budget-conscious. Cloud GPU rentals at $2-3 per hour that quietly rack up hundreds of dollars over a weekend of experiments. This has real consequences. It gates who gets to participate in model development. If you are a student, an independent researcher, someone in a country where cloud GPU access is expensive or restricted, or just someone who does not want to burn money on experiments — you are locked out.
Soup changes the cost floor. An RTX 3050 laptop costs roughly $700-900 total, and it is a machine people already own for gaming or school. You do not need to rent anything. You do not need to provision cloud instances. You type one YAML file and one command, and it runs.
That one-command promise is not marketing. Soup’s config lives in a single YAML file that covers the model, dataset, training hyperparameters, LoRA config, and output path. No Python scripts to wire up. No Hugging Face trainer boilerplate. Here is what a real config looks like:
model:
name: "meta-llama/Llama-3.1-8B-Instruct"
quantization: "nf4"
training:
dataset: "./my_data.jsonl"
lora_rank: 16
lora_alpha: 32
batch_size: 4
gradient_accumulation_steps: 8
learning_rate: 2e-4
max_steps: 500
output:
dir: "./my-finetuned-model"
This is not a simplified example. This is the actual config format. If you have fine-tuned models before with Hugging Face’s Trainer API, you know how many lines of boilerplate this replaces. If you have not, that is the point — Soup removes the barrier that kept you from starting.
The Quantization Story: NF4 and Beyond
Soup defaults to NF4 quantization for the base model, which is the same 4-bit NormalFloat format that made QLoRA viable in the first place. NF4 is well-understood, well-tested, and trades a small accuracy penalty for a 4x memory reduction. On an 8B model, this brings the base weights from roughly 16 GB down to 4-5 GB when resident — and significantly less when only one layer is loaded at a time.
But Soup also supports unquantized bf16 for smaller models. The Qwen2.5-3B results prove this: 143 tok/s with no quantization at all, running in 2.15 GB. If your model fits without compression, Soup does not force you to quantize. And if you are working with models that need quantization to fit, NF4 is the default but GGUF support is on the roadmap, which would open up the even wider ecosystem of pre-quantized models on Hugging Face.
The quantization landscape for local fine-tuning has been fragmented. You have bitsandbytes for NF4, llama.cpp for GGUF, AWQ, GPTQ, EXL2 — each with their own format, their own loading code, and their own compatibility matrix with training frameworks. Soup consolidates around NF4 first, which makes sense as the format with the broadest training tool support. The GGUF roadmap matters because most locally-run models on consumer hardware already ship in GGUF format. You would not need to re-quantize — just point Soup at your existing model file.
What Soup Is Not
This is not a replacement for QLoRA on an A100. If you have access to large GPUs and need to train with sequence lengths of 8K or beyond, run large batch sizes, or iterate quickly with compile caching — use QLoRA on a proper GPU. Soup’s layer streaming adds overhead. Each layer transfer between system RAM and VRAM has a cost. On a 4GB card, that cost is small compared to the alternative (not training at all), but it is still there.
Soup also does not support full fine-tuning. You must use LoRA adapters because the base weights are never resident in VRAM long enough to receive gradients. This is the right tradeoff — full fine-tuning an 8B model on 4GB is genuinely impossible — but it means you need LoRA-compatible training recipes.
Sequence length is bounded by what fits alongside a single layer in VRAM. At 2048 tokens with LoRA rank 16, the RTX 3050 reports 119.6 tok/s with room to spare (3.32 GB out of 4 GB). At 4096 tokens, you might push closer to the limit. The project recommends starting with shorter sequences and scaling up once you confirm the memory budget.
And Soup is new. v0.72.4 is an early release. The GitHub README mentions the tool is “built and maintained in the open on a single 4 GB laptop.” The project is actively developed but small. Expect sharp edges. Expect to file issues. The community around it is forming — there is a growing Show HN thread with real users reporting their setups and results.
The CLI: More Than Just Training
Soup ships as a CLI with more than just a train command. The full toolset includes build for setting up environments, expect for defining training assertions, x-ray for memory profiling, merge for combining LoRA weights back into the base model, bisect for debugging training failures, and ship for exporting to common formats.
The x-ray command deserves a closer look. It profiles memory usage layer by layer and shows exactly where VRAM is going. If you are pushing the limits of a 4GB card — which, let us be honest, you are — this is not optional. It turns “why did this OOM?” from a guessing game into a chart.
bisect is unusual for a fine-tuning tool. It lets you binary-search through training steps to find exactly when a training run went wrong. If your model degrades at step 347 and you do not know why, bisect isolates it faster than re-running the whole thing from scratch with different logging.
Who Should Use Soup
You should try Soup if:
- You have a consumer laptop or desktop GPU with 4-8GB VRAM and want to fine-tune 7B-8B models
- You are learning fine-tuning and do not want to spend money on cloud GPUs before you know what you are doing
- You want to run experiments locally, iterate fast, and push to cloud only for the final training run
- You are building a project that needs a fine-tuned model but your budget is zero
- You are a student or researcher in a place where GPU access is limited or expensive
The workflow I would recommend: prototype your fine-tuning recipe locally with Soup on a small dataset. Validate that your loss curves look right and your eval metrics move in the right direction. Once you are confident in the recipe, take it to a larger GPU for a full-scale run with longer sequences and bigger batches. Soup handles the expensive iteration loop for free. You only pay for the final training.
Who Should Skip It
Skip Soup if:
- You have access to an A100 or better and need maximum throughput — layer streaming is a workaround, not an optimization
- You need to fine-tune with sequence lengths above 4096 — the memory math gets tight on 4GB
- You need full fine-tuning (all weights) rather than LoRA — Soup fundamentally requires adapters
- You are training a model larger than 8B — at some point even NF4 + layer streaming cannot squeeze into 4GB
- You need production-level stability and support — the project is early-stage and maintained by a small team
The Bigger Picture
There is a pattern in AI infrastructure that keeps repeating. Someone ships a capability that requires expensive hardware. People accept that as the cost of entry. Then someone else finds a way to do it on hardware everyone already owns. Stable Diffusion did this for image generation — went from needing a server to running on a gaming GPU. Ollama and llama.cpp did it for inference — went from “you need a cloud endpoint” to “download and run on a MacBook.” Soup is trying to do the same for fine-tuning.
The numbers matter because they are measured, not claimed. 119.6 tok/s on a 4GB laptop GPU. 3.32 GB peak VRAM. Bit-exact against resident training. If these numbers hold up across more models and more hardware configurations, Soup closes a gap that has existed since fine-tuning became the standard way to adapt language models.
The project is young and the README is honest about that — “built and maintained on a single 4 GB laptop.” But the core insight is sound: if you only need one layer at a time, you only need memory for one layer at a time. Everything else is engineering.