llmrun
InternLMInternLMInternLMForCausalLM

Internlm 20B — Hardware Requirements & GPU Compatibility

Chat

InternLM-20B is a 20-billion-parameter base language model released by the Shanghai Artificial Intelligence Laboratory with SenseTime, the Chinese University of Hong Kong, and Fudan University, pretrained on over 2.3 trillion tokens of English, Chinese, and code data. It is a pretrained model, not instruction-tuned; a separate InternLM-20B-Chat checkpoint underwent additional SFT and RLHF. Unlike typical 13B models that use 32-40 layers, it uses an unusually deep 60-layer architecture, which the card credits for its strong language, reasoning, and comprehension scores against Llama-13B, Llama2-13B, and Baichuan2-13B, approaching some 33B-70B models on several benchmarks. As an early open Chinese LLM from 2023, it predates today's more capable open models of similar size, and it needs a high-end consumer GPU or multi-GPU setup to run comfortably. Context length is 4,096 tokens, though the card states it can support 16,384 tokens through inference-time extrapolation. It is released under the Apache 2.0 license, permitting unrestricted commercial and research use, and was published in September 2023.

20B params · dense4K contextApache 2.0510 downloads77 likes

Internlm 20B runs on a 48 GB+ Mac or a workstation GPU

Best local pick → Mac Studio M5 Max (48 GB) · BF16 · 45.3 GB · ~10 tok/s

Macs from48 GB BF16 · ~10 tok/s

Apache 2.0

Not set up for it?

Reference GPU · RTX 4090 24 GB

Estimates, ±20% · how we estimate

Run Internlm 20B

One recommended way. Every other method, OS and quant is in the step-by-step guide.Each way opens a step-by-step guide for your OS and quant.

Recommended

vLLM
one command · needs vLLM installed
$vllm serve internlm/internlm-20b --max-model-len 4096

vLLM repo with its own quantisation

Download: Weights on Hugging Face

install, OS, other quants

Ways to runOther ways

each opens step-by-step

Run in cloud

Runs on H100 (80 GB) (34 GB headroom) · BF16

Generation speed
~51 tok/s
generation speed
Cost per 1M output tokens
$14.68
per 1M output tokens

How Much VRAM Does Internlm 20B Need?

Select a quantization level; the listed hardware adheres to it.

QuantizationVRAM+32KOn RTX 4090 (reference)
42.8 GB—16-bit · bfloat — Brain floating point 16 — preferred for trainingDoes not fit: needs 42.8 GB
est.calculated, no published file yet

Selected BF16

Brain floating point 16

45.3GBat 4K context

Weights
40.0 GB
KV cache
5.0 GB
Overhead
0.3 GB

Doesn't fit RTX 4090 (reference) · needs 21.3 GB more

≥10 tok/s needs ≥655 GB/s · M3 Ultra ~13, M2 Ultra ~13

Or .

Which Hardware Can Run Internlm 20B?

BF16 · 42.8 GB

Internlm 20B (BF16) requires 42.8 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 56+ GB is recommended. Using the full 4K context window can add up to 2.5 GB, bringing total usage to 45.3 GB. No consumer GPU has enough memory. 67 devices with unified memory can run Internlm 20B, including Mac Studio (M3 Ultra, 256GB), Mac Studio (M3 Ultra, 512GB), Mac Pro M2 Ultra (64 GB).

By VRAM tier · typical GPUs and Macs at BF16
8–16 GB · RTX 4060, RTX 3060 12GB, RTX 5060 Ti 16GBDoesn't fit — smallest quant needs 45.3 GB8 GB tier →12 GB tier →16 GB tier →
24 GB · RTX 4090referenceDoesn't fit — smallest quant needs 45.3 GB24 GB tier →
Mac 32 GB · Mac Mini M4Doesn't fit — smallest quant needs 45.3 GBMacs →
Mac 64 GB · Mac Studio M4 MaxBF16 · 45.3 GB · ~9 tok/s · 4KMacs →

How good is Internlm 20B?

llmrun Score blends public benchmark boards into one number; 100 = the average open model.

Not enough data yet for an llmrun Score.

A Score needs results on enough independent boards. How the Composite Score is built

Benchmarks

Here are all 6 boards that have results for this model, sorted by their weight in the llmrun Score; badges show who ran the test.

  • BIG-Bench Hard

    Epoch AI · Sep 2023Lab-reported

    52.5%

    #19/38 open

    Lab-reported
  • GSM8K

    Epoch AI · Sep 2023Lab-reported

    62.9%

    #23/62 open

    Lab-reported
  • HellaSwag

    Epoch AI · Sep 2023Lab-reported

    78.1%

    #17/47 open

    Lab-reported
  • ARC Challenge

    Epoch AI · Sep 2023Lab-reported

    81.7%

    #12/56 open

    Lab-reported
  • BoolQ

    Epoch AI · Sep 2023Lab-reported

    87.5%

    #4/38 open

    Lab-reported
  • PIQA

    Epoch AI · Sep 2023Lab-reported

    80.3%

    #19/40 open

    Lab-reported

Alternatives to Internlm 20B

InternLM family · 7 models →

Similar models

4
ModelScoreVRAMtok/sWhy it is similar
InternVL3 5 GPT OSS 20B A4B Preview HFOpenGVLab—13.6 GB~180same size
Tri 21B Thinktrillionlabs—45.1 GB—needs > 24 GBsame size
ERNIE 4.5 21B A3B PTBaidu—13.8 GB~254same size
GPT Neox 20BEleutherAI—13.7 GB~48same size

Specifications

Publisher
InternLM
Family
InternLM
Parameters
20B
Architecture
InternLMForCausalLM
Context Length
4,096 tokens
Vocabulary Size
103,168
Release Date
2023-09-18
License
Apache 2.0

Frequently Asked Questions

How much VRAM does Internlm 20B need?

Internlm 20B requires 42.8 GB of VRAM at BF16. Full 4K context adds up to 2.5 GB (45.3 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 20B × 16 bits ÷ 8 = 40 GB

KV Cache + Overhead ≈ 2.8 GB (at 2K context + ~0.3 GB framework)

Fit ratings and hardware model lists check this model with room for a 16K-token context, which needs a little more memory.

KV Cache + Overhead ≈ 5.3 GB (at full 4K context)

VRAM usage by quantization

42.8 GB
45.3 GB

Learn more about VRAM estimation →

Can NVIDIA GeForce RTX 5090 run Internlm 20B?

No — Internlm 20B requires at least 42.8 GB at BF16, which exceeds the NVIDIA GeForce RTX 5090's 32 GB of VRAM.

Can I run Internlm 20B on a Mac?

Yes — Mac Studio M5 Max (48 GB) and 55 other Macs can run Internlm 20B. Apple Silicon uses unified memory, so the model shares RAM with the system. At BF16 you need at least 42.8 GB of usable unified memory (RAM minus macOS overhead).

Can I run Internlm 20B locally?

Yes — Internlm 20B can run locally on consumer hardware. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is Internlm 20B?

At BF16, Internlm 20B can reach ~112 tok/s on AMD Instinct MI350X. Speed depends mainly on GPU memory bandwidth. Real-world results typically within ±20%.

tok/s = (bandwidth GB/s ÷ model GB) × efficiency

Example: NVIDIA B200 → 8000 ÷ 42.8 × 0.65 = ~121 tok/s

Estimated speed at BF16 (42.8 GB)

~121 tok/s
~121 tok/s
~112 tok/s

Real-world results typically within ±20%. Speed depends on batch size, quantization kernel, and software stack.

Learn more about tok/s estimation →

What's the download size of Internlm 20B?

At BF16, the download is about 40.00 GB.

Which GPUs can run Internlm 20B?

No single consumer GPU has enough VRAM to run Internlm 20B at BF16 (42.8 GB). Multi-GPU or professional hardware is required.

Which devices can run Internlm 20B?

67 devices with unified memory can run Internlm 20B at BF16 (42.8 GB), including ASUS Ascent GX10, Beelink GTR9 Pro (Ryzen AI Max+ 395, 128 GB), Framework Desktop (Ryzen AI Max+ 395, 128 GB), GMKtec EVO-X2 (Ryzen AI Max+ 395, 128 GB). Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.