Best open source LLMs, grouped by VRAM

Pick open-weight LLMs by actual GPU memory — from Gemma 4 E4B on 8GB laptops and Qwen4-35B-A3B on 24GB RTX 4090s up to Llama 3.3 70B on 48GB and Amazon Ergo LLM on 8x H100 nodes.

Currency: USD / 1M tokens Last updated:

How self-hosted USD per 1M token costs are calculated

Open-weight LLMs do not charge per-token vendor fees, so comparing them against hosted APIs requires converting hourly GPU rental into USD per 1M tokens using sustained throughput:

Self-Hosted Cost ($ / 1M tokens) = (GPU $/hr / (Sustained tok/s * 3,600)) * 1,000,000

Using verified on-demand rates checked 2026-12-05 on RunPod (RTX 4090 24GB $0.34/hr Community / $0.89/hr Secure; L40S 48GB $0.79/hr Community / $1.09-$1.40/hr Secure; H100 80GB $2.89-$4.76/hr Secure) and Lambda Labs (RTX A6000 48GB $0.92/hr; H100 80GB $2.86-$4.29/hr), illustrative continuous-utilization bands appear in each VRAM tier below. Note that single-stream desktop use (~50-100 tok/s) yields 5x to 10x higher cost per 1M tokens than batched vLLM serving (500+ tok/s), and every derived cost below assumes continuous utilization without idle GPU waste.

8GB VRAM tier (RTX 4060 / RTX 3070 / 8GB laptops)

At 8GB VRAM, weights must fit inside ~4-7 GB at 4-bit quantization so enough memory remains for KV cache.

Best open source LLMs for 8GB VRAM GPUs (Last updated: 2026-12-05)
Model Params / Context 4-Bit VRAM License Est. Self-Hosted / 1M Source
Gemma 4 E4B ~4B eff. · 128K ~5.5 - 6 GB Apache 2.0 ~$0.19 - $0.94 (4090 rate ref) Hugging Face Google
Gemma 4 E2B ~2B eff. · 128K ~4 GB Apache 2.0 ~$0.15 - $0.70 (high batch) Hugging Face Google
Gemma 4 12B (4-bit) 12B dense · 256K ~7 - 8 GB Apache 2.0 ~$0.30 - $1.20 (low ctx) Hugging Face Google
Phi-4 Mini 3.8B dense ~3 - 4 GB MIT ~$0.15 - $0.70 (high batch) Hugging Face Microsoft

24GB VRAM tier (RTX 3090 / RTX 4090)

A single 24GB card unlocks sparse MoEs and strong 26B-31B 4-bit models. In particular, Qwen4-35B-A3B offloads its ~20B n-gram embedding table to NVMe SSD or system RAM while keeping core MoE weights in 22-25 GB VRAM.

Best open source LLMs for 24GB VRAM GPUs (Last updated: 2026-12-05)
Model Params / Context 4-Bit Resident VRAM License Est. Self-Hosted / 1M (RTX 4090) Source
Qwen4-35B-A3B (Q4_K_M) 35B MoE (~3B active) · 1M ~21.9 - 25 GB Apache 2.0 $0.19 - $0.49 batched ($0.94 - $2.47 1x) HF Qwen4-35B-A3B
Gemma 4 26B-A4B 26B MoE (3.8B active) · 256K ~16 - 18 GB Apache 2.0 $0.19 - $0.49 batched Hugging Face Google
Gemma 4 31B (4-bit) 31B dense · 256K ~17 - 20 GB Apache 2.0 $0.35 - $0.90 batched Hugging Face Google
Qwen3.8-27B / Qwen3.6-35B-A3B 27B dense / 35B MoE ~16 - 21 GB Apache 2.0 $0.19 - $0.80 batched Hugging Face Qwen

48GB VRAM tier (L40S / RTX 6000 Ada / Dual 3090 or 4090)

At 48GB VRAM ($0.79-$1.40/hr on RunPod L40S; $0.92/hr on Lambda RTX A6000), teams gain room for uncompromised 8-bit quants or 70B-class dense models with generous KV cache windows.

Best open source LLMs for 48GB VRAM workstations & servers (Last updated: 2026-12-05)
Model Params / Context Resident VRAM License Est. Self-Hosted / 1M (L40S) Source
Qwen4-35B-A3B (Q8_0) 35B MoE (~3B active) · 1M ~40.5 - 42 GB Apache 2.0 $0.37 - $0.50 batched (600 tok/s) HF Qwen4-35B-A3B
Llama 3.3 70B Instruct (Q4_K_M) 70B dense · 128K ~36 - 40 GB Llama Community (<700M MAU) $0.65 - $1.20 batched HF Llama 3.3 70B
Gemma 4 26B-A4B (8-bit / BF16) 26B MoE · 256K ~28 - 48 GB Apache 2.0 $0.37 - $0.55 batched Hugging Face Google
Llama 4 Scout (4-bit) MoE (17B active) ~38 - 46 GB Llama Community (<700M MAU) $0.50 - $0.95 batched Hugging Face Meta

Multi-GPU & cluster tier (8x H100 / A100 nodes)

Trillion-parameter open-weight MoEs deliver frontier coding performance inside your own VPC, though renting an 8x H100 node ($24-$34/hr combined) frequently costs more per token than managed Bedrock or MiniMax APIs unless utilization exceeds ~50%.

Multi-GPU & cluster open-weight LLMs (Last updated: 2026-12-05)
Model Params / Context Checkpoint Size License Cluster Cost vs API / 1M Source
Amazon Ergo LLM (MXFP4) 1.1T / 55B active · 1M ~626 GB (8x 80GB H100) Amazon Ergo LLM License ~$3.33 - $4.72 cluster (vs $1/$3 Bedrock) HF Amazon-FMR/Ergo
Qwen4-35B-A3B (BF16) ~56-57B total · 1M ~114 GB (2x 80GB) Apache 2.0 ~$0.80 - $1.60 cluster (vs $0.06/$0.36 API) HF Qwen4-35B-A3B
MiniMax M4 2.74T / 66B active · 1M Weights pending release Open-weight (pending) API $0.80 in / $3.10 out MiniMax GitHub

Want to compare hosted API bills against dedicated GPU budgets? Run your monthly volume through the token cost calculator or browse our LLM API pricing directory.

Frequently asked questions

Which open source LLM is best for a single 24GB RTX 4090 or 3090 GPU?

Qwen4-35B-A3B (~21.9-25 GB resident VRAM in Q4_K_M with SSD n-gram offload) and Gemma 4 26B-A4B (~16-18 GB 4-bit) deliver the strongest open-weight coding performance on a single 24GB RTX 4090 or 3090, verified 2026-12-05. Both carry Apache 2.0 commercial licenses.

What is the best open source LLM for an 8GB VRAM laptop or GPU?

Gemma 4 E4B (~5.5-6 GB 4-bit VRAM, Apache 2.0) and Phi-4 Mini (~3-4 GB 4-bit, MIT) fit comfortably on 8GB VRAM GPUs at ~$0.15 to $0.94 per 1M tokens on rented GPUs, verified 2026-12-05. Gemma 4 12B (~7-8 GB) also fits at lower context lengths.

Is self-hosting open source LLMs cheaper than API pricing?

Self-hosting Qwen4-35B-A3B on a rented RTX 4090 costs ~$0.19-$0.49 per 1M batched tokens ($0.94-$2.47 single-stream) versus $0.06 input / $0.36 output per 1M tokens on the managed Alibaba Cloud API, verified 2026-12-05. Dedicated GPUs only win on unit cost above ~40%-50% continuous batched utilization.

Which open source LLMs allow commercial deployment without revenue limits?

Yes—Qwen4-35B-A3B, Gemma 4 (Apache 2.0), and Phi-4 Mini (MIT) allow unrestricted commercial use, while Amazon Ergo LLM is free below $20M annual Model-as-a-Service revenue and Llama 3.3/4 allows free use under 700M MAU, verified 2026-12-05.

Data sources and verification

Last updated: . Pricing is reported in USD per 1M tokens directly from official vendor documentation; third-party evaluations are explicitly tagged.