What it costs to fine-tune Qwen3 8B
The cheapest setup we compared is LoRA on one L40S: about $0.069 per million training tokens, so $0.69 for 10 million and $6.85 for 100 million. Full fine-tuning costs about $1.03 per 10 million tokens on 4 × L40S.
GPU-hours and cost by GPU and method
Per epoch over the token count shown; multiply by your number of epochs. GPU-hours are the same however many GPUs the job is split over.
| GPU · method | GPUs for memory | Tokens/s per GPU | GPU-hours per 1M | 1.0M tokens | 10M tokens | 100M tokens |
|---|---|---|---|---|---|---|
| H100 SXM · LoRA$4.39/hr | 1 | 12,074 | 0.02 | $0.10 | $1.01 | $10.10 |
| H100 SXM · QLoRA$4.39/hr | 1 | 9,418 | 0.03 | $0.13 | $1.29 | $12.95 |
| H100 SXM · Full fine-tuning$4.39/hr | 2 | 8,049 | 0.03 | $0.15 | $1.51 | $15.15 |
| B200 · LoRA$7.99/hr | 1 | 27,469 | 0.01 | $0.081 | $0.81 | $8.08 |
| B200 · QLoRA$7.99/hr | 1 | 21,426 | 0.01 | $0.10 | $1.04 | $10.36 |
| B200 · Full fine-tuning$7.99/hr | 1 | 18,313 | 0.02 | $0.12 | $1.21 | $12.12 |
| L40S · LoRA$1.09/hr | 1 | 4,419 | 0.06 | $0.069 | $0.69 | $6.85 |
| L40S · QLoRA$1.09/hr | 1 | 3,447 | 0.08 | $0.088 | $0.88 | $8.78 |
| L40S · Full fine-tuning$1.09/hr | 4 | 2,946 | 0.09 | $0.10 | $1.03 | $10.28 |
| RTX 5090 · LoRA$1.39/hr | 1 | 2,558 | 0.11 | $0.15 | $1.51 | $15.10 |
| RTX 5090 · QLoRA$1.39/hr | 1 | 1,995 | 0.14 | $0.19 | $1.94 | $19.35 |
| RTX 5090 · Full fine-tuning$1.39/hr | Doesn't fit | 1,705 | 0.16 | — | — | — |
Compared with fine-tuning APIs
| Option | Per 1M tokens | 10M tokens | 100M tokens |
|---|---|---|---|
| Rented GPU: LoRA on L40S (our estimate) | $0.069 | $0.69 | $6.85 |
| Together AI | Qwen3 8B not listed | — | — |
| OpenAI gpt-4.1-mini fine-tuning (closed model; closed to new users) | $5.00 | $50.00 | $500 |
API prices are per training token processed (dataset tokens × epochs), seen on 15 November 2026. Together AI charges a minimum per job. OpenAI's pricing page says fine-tuning is closed to new users. Rented GPU estimates leave out setup, failed runs and idle time, which an API absorbs.
Your run
Pre-filled for Qwen3 8B: 10M tokens, 3 epochs, LoRA on an H100.
$3.03
0.69
41 minutes
12,074
30M tokens processed. Fits on one H100 SXM at 2,048-token sequences. GPU-hours assume perfect scaling across GPUs.
Assumptions
- Compute per token: 6 FLOPs per active parameter for full fine-tuning (forward plus backward) and about 4 for LoRA and QLoRA, which skip the frozen weights' gradients. Qwen3 8B uses 8.191B parameters per token.
- Utilisation: 40% of each GPU's dense BF16 peak. torchtune measured 3,083 tokens a second for Llama 3.1 8B LoRA on one RTX 4090, about 60% on the same accounting, so well-tuned code can beat these figures.
- QLoRA runs at 78% of LoRA's speed, the ratio torchtune measured (2,413 vs 3,083 tokens a second), because the 4-bit weights are dequantised on the fly.
- Memory decides the GPU count, from our Qwen3 8B VRAM estimates at 2,048-token sequences. Consumer cards are counted as single GPUs only.
- Prices: on-demand Runpod Secure Cloud rates (page dated 12 November 2026). Community Cloud and spot capacity cost less.
Frequently asked questions
- How much does it cost to fine-tune Qwen3 8B?
- About $0.069 per million training tokens at the cheapest setting we compared (LoRA on one L40S, $1.09/hour per GPU), so about $0.69 for 10M tokens and $6.85 for 100M. Budget for several runs: the first rarely wins.
- How long does it take to fine-tune Qwen3 8B on an H100?
- LoRA processes about 12,074 tokens a second on one H100 at 40% utilisation, so 10M tokens take about 14 minutes. Full fine-tuning needs 2 H100s for memory and about 1.5× the compute.
- Is it cheaper to fine-tune Qwen3 8B through an API?
- Together AI's November 2026 price list doesn't include Qwen3 8B, so the choice is rented GPUs or a hosted model. Rented GPU time costs about $0.69 per 10M tokens by our estimate, plus setup and idle time.
- Should I use LoRA or full fine-tuning for Qwen3 8B?
- Start with LoRA or QLoRA. Full fine-tuning Qwen3 8B needs about 135 GB, so 2 × 80 GB GPUs with sharded optimiser state, and about 1.5× the compute per token. LoRA usually gets close for format, style and task adaptation; move to full fine-tuning only when evaluation shows LoRA has plateaued.
Related
- Qwen3 8B VRAM requirementsWhich GPUs fit each method
- Qwen3 8B on RTX 3090Max settings that fit
- Qwen3 8B on RTX 4090Max settings that fit
- Qwen3 8B on RTX 5090Max settings that fit
- Fine-tune Llama 3.1 8B: costMeta
- Fine-tune Llama 3.1 70B: costMeta
- Fine-tune Llama 3.2 3B: costMeta
- Fine-tune Llama 3.3 70B: costMeta
- Fine-tune Qwen3 14B: costAlibaba Qwen
- What is LoRA?Glossary
Sources
- Hugging Face. Qwen/Qwen3-8B config.json
- Alibaba Qwen. Qwen/Qwen3-8B model card
- Alibaba Qwen. Qwen3 Technical Report (arXiv:2505.09388)
- Hu et al., 2021. LoRA: Low-Rank Adaptation of Large Language Models (arXiv:2106.09685)
- Dettmers et al., 2023. QLoRA: Efficient Finetuning of Quantized LLMs (arXiv:2305.14314)
- Kaplan et al., 2020. Scaling Laws for Neural Language Models (arXiv:2001.08361)
- PyTorch. torchtune: memory and throughput benchmarks (Llama 3.1 8B on RTX 4090)
- Together AI. Fine-tuning pricing (seen 15 November 2026)
- OpenAI. API pricing: fine-tuning (seen 15 November 2026)
- Runpod. GPU pricing (updated 12 November 2026)
Fine-tune Qwen3 8B without renting the GPU yourself.
Kojen trains LoRA adapters on Qwen3 8B from your input/expected rows on the cheapest GPU in stock across Modal, Runpod, Vast.ai and Lambda, billed by the second in GPU credits.
Start training free