Your data and one YAML file in.A fine-tuned model out.
Fine-tune open LLMs on your own GPU or Mac. Describe the run in soup.yaml, get a LoRA adapter back.
pip install "soup-cli[train]"Walk through a first runPython 3.11 to 3.13, Apache-2.0
- 1 soup.yamlthe run
- 2 soup trainLoRA
- 3 output/the adapter
From an empty folder to a model you can talk to
Fig. 1, line by line, as soup-cli 0.78.0 prints it.
Just checking your setup?
20 example rows, trained on a small open model.
Step 1: Install
[train]adds PyTorch.terminalpip install "soup-cli[train]"soup doctorStep 2: Write the config
LoRA on Llama-3.1-8B, loaded on the GPU in 4-bit: more than a 4 GB card holds unless you stream the base (BETA, below). Gated base: set
HF_TOKEN.terminalsoup init --template chatUsing template: chatConfig saved to soup.yamlNext step: soup train --config soup.yamlsoup.yaml, as the template writes it# Soup template: Chat Assistant# Fine-tune a model for conversational chatbase: meta-llama/Llama-3.1-8B-Instructtask: sft# backend: unsloth # 2-5x faster, pip install "soup-cli[fast]"data:train: ./data/train.jsonlThe Unsloth comment ships in the template; its 2-5x is Unsloth's figure, not Soup's.Step 3: Add your data
One JSON row per example.
terminalsoup data demo alpaca_demo --output data/train.jsonlCopied bundle 'alpaca_demo' to …/data/train.jsonlsoup data inspect ./data/train.jsonlInspecting data/train.jsonl...…data/train.jsonl, one row{"instruction": "Translate to Spanish.", "input": "Hello, how are you?", "output": "Hola, ¿cómo estás?"}Step 4: Train
Soup sizes the batch and asks once (
--yesin scripts).terminalsoup train --config soup.yamlLoading config from soup.yaml...Training SetupDevice: …Memory: …Model: meta-llama/Llama-3.1-8B-InstructTask: sftBackend: transformersStep 5: Use the adapter
terminalsoup chat --model ./outputsoup serve --model ./outputEndpoints: /v1/chat/completions, /v1/models, /healthsoup export --model ./output --format gguf --quant q4_k_moutput/output/├ adapter_model.safetensors├ adapter_config.json├ tokenizer.json, chat_template.jinja├ soup_run.json # base, run id, data SHA-256├ rewind.jsonl # loss log for soup rewind└ checkpoint-…/
Pick the job. Get the command.
Coming from LLaMA-Factory, Axolotl or Unsloth? soup migrate converts your config.
Teach a model your task
Chat rows in, a tuned model out.
- 21 templates
- 181 recipes
- vision and speech via [vision], [audio]
Align it with preferences
A better and a worse answer per row (DPO, ORPO, SimPO, IPO, BCO), or one answer marked good or bad (KTO).
- 23 training tasks
- data format: dpo
- rows: prompt, chosen, rejected
base: Qwen/Qwen2.5-7B-Instructtask: dpodata:train: ./data/preference_train.jsonlformat: dpomax_length: 2048training:epochs: 3
Bring a config from another tool
LLaMA-Factory, Axolotl or Unsloth in, soup.yaml out.
- LLaMA-Factory
- Axolotl
- Unsloth notebook
Decide if it is ready to ship
Wins your task but forgets more than 0.05: DON'T SHIP, exit 2.
- SHIP or DON'T SHIP
- exit 0 or 2
- --forgetting-threshold 0.05
Serve it or take it elsewhere
An OpenAI-compatible API, or a GGUF, ONNX or TensorRT-LLM file.
- needs "soup-cli[serve]"
- GGUF q4_0 to f32
- ONNX, TensorRT-LLM
Train on a Mac with MLX
backend: mlx and an mlx-community base. Six tasks run natively.
- backend: mlx
- 6 tasks
- Apple Silicon
base: mlx-community/Qwen2.5-0.5B-Instruct-4bittask: sftbackend: mlxdata:train: ./data/train.jsonlformat: alpacatraining:epochs: 1
Also in the CLI
soup uiLocal web dashboardsoup doctor --config soup.yamlCheck a config firstsoup data dedup train.jsonl --semanticFind reworded duplicatessoup mcp serveDrive Soup from a coding agentsoup loop initTrain on feedback, measure the candidate, canary itsoup init --template eu-ai-actStarting configs for HIPAA, SOC 2, EU AI Act and SR 11-7soup adapters diff ./a ./bDiff, merge and branch LoRA adapterssoup shrinkToo big to ship: depth-prune itsoup reward stress reward.pyAttack your reward verifier with junk before RL trusts itsoup draft measureMeasure a draft's real acceptance rate and speedsoup rewindTrace a loss spike back to the rows behind it
Layer streaming, BETA
When the model is bigger than the card
The frozen base reaches the GPU one layer at a time, so peak VRAM follows a layer, not the model. Slower, for models that do not fit.
Llama-3.1-8B-Instruct in NF4: 3.32 GB peak VRAM at 119.6 tok/s on a 4 GB RTX 3050 Laptop, batch 1, sequence 512.
- Opt-in
training.stream_layers: true, BETA- Tasks
- sft, dpo, orpo, simpo, kto, bco, ipo; not grpo or ppo
- Models
- 11 architectures: Llama, Qwen, Mistral, Gemma, Phi, DeepSeek-V3
- Setup
- one GPU, transformers, text, plain LoRA,
noneor4bit - Batch
- a number;
autois refused - Guard
- a pre-flight that refuses a run that will not fit
Upgrading from an older release? A run that finished may still be wrong. Run soup doctor --config soup.yaml first, then check what to re-run, release by release.
base: meta-llama/Llama-3.1-8B-Instructtask: sftdata:train: ./data/train.jsonlformat: alpacamax_length: 512training:stream_layers: true # opt-in, BETAquantization: 4bit # NF4 store, about 4x smallerbatch_size: 1 # a number: auto is refusedlora:r: 16target_modules: [q_proj, v_proj]output: ./output
soup doctor --config on 0.78.0. It shows the keys; it is not the config the 119.6 tok/s row was measured with.What you need
Pick your machine.
8+GB VRAM
for a 7B model with QLoRA, a rule of thumb. Less with layer streaming.
pip install "soup-cli[train]"Python
3.11 to 3.13
3.10 installs v0.76.x
Models
any Hugging Face-compatible model
gated ones need
HF_TOKENData
JSONL, JSON, CSV, Parquet, TXT
format detected
Docker
ghcr.io/makazhanalpamys/soup:0.78.0pass
--yes
Works with
Hugging Face
Ollama
llama.cpp
vLLM
SGLang
Unsloth
DeepSpeed
ONNX
TensorRT
W&B
Before you install
The rest is in the docs FAQ.
How do I install Soup CLI?
Run pip install "soup-cli[train]" on Python 3.11 to 3.13. pip install soup-cli alone is a light core without PyTorch, for configs and the data tools. Where the system Python refuses pip (PEP 668), use pipx install "soup-cli[train]". On Python 3.10, pip installs v0.76.x instead.
Do I need a big GPU?
Not necessarily. soup init --template chat writes a LoRA run on a 4-bit base, far lighter than a full fine-tune. If the model still does not fit, training.stream_layers: true (BETA) streams the frozen base into VRAM one layer at a time; it is slower, so leave it off when the model fits.
Does it run on a Mac?
Yes, on Apple Silicon through MLX: pip install "soup-cli[mlx]", then set backend: mlx. It trains LoRA adapters for SFT, DPO, ORPO, SimPO, KTO and GRPO (built-in accuracy or format reward; an unquantized base or one pre-quantized to 4 bits), and task: preference with preference_loss dpo, orpo or simpo runs too. It also chats and merges natively. Upstream covers the 4-bit, preference, chat and merge paths only with a hosted macOS test job. Other tasks are refused at load.
Does Soup send my data anywhere?
Not unless you set it up to. Training reads your files on your machine; pushing to the Hub, cloud runs, LLM judges and experiment trackers are each something you configure. Telemetry is opt-in with SOUP_TELEMETRY=1, and the shipped release sends nothing even then.
In final testing, not on sale yet
Soup Zero
A desktop workbench on top of the CLI, in the making.
Your first run starts with one install.
Read the source
Free and Apache-2.0. No Soup account, no vendor lock-in.
Every performance number on this site is measured rather than claimed, most of them on a 4 GB laptop GPU. Donations buy GPU time for what that card cannot reach: multi-GPU, and a card we do not have to give back.
Want to help? Join Soup Tasters · Open the Tasters app
Soup sends nothing about your runs unless you ask it to.