FitMyLLM
Shanghai AI Lab/Dense

Shanghai AI LabInternLM2 20B

InternLM2 20B — powerful model for coding and complex tasks.

chatcodingTool Use
19.8B
Parameters
32K
Context length
7
Benchmarks
10
Quantizations
60K
HF downloads
Architecture
Dense
Released
2024-01-17
Layers
48
KV Heads
8
Head Dim
128
Family
internlm

Quantization Options

Context length:
QuantBitsVRAM @ 16KQuality
Q3_K_M4
12.6 GB
10.4 + 2.3 KV
low
Q3_K_L4.3
13.4 GB
11.1 + 2.3 KV
moderate
IQ4_XS4.46
13.8 GB
11.5 + 2.3 KV
moderate
Q4_K_S4.67
14.3 GB
12.0 + 2.3 KV
moderate
Q4_K_M4.89
14.8 GB
12.6 + 2.3 KV
good
Q5_K_S5.57
16.5 GB
14.3 + 2.3 KV
good
Q5_K_M5.7
16.8 GB
14.6 + 2.3 KV
good
Q6_K6.56
19.0 GB
16.7 + 2.3 KV
excellent
Q8_08.5
23.8 GB
21.5 + 2.3 KV
lossless
FP1616
42.3 GB
40.1 + 2.3 KV
lossless

Select your GPU above to see speed estimates and compatibility for each quantization.

Deploying for a team or in production? Size GPUs, cost & scaling in Enterprise →
READY TO RUN THIS?RENT BY THE HOUR

RENT A GPU AND RUN INTERNLM2 20B NOW

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Benchmarks (7)

IFEval72.0
BBH62.8
HumanEval57.6
MATH52.0
MMLU-PRO45.0
MUSR16.7
GPQA9.5

Run this model

Easiest way to get started·Beginners
DOCS ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run internlm2:20b-chat-v2.5-q4_K_M

Downloads and runs automatically. Add --verbose for speed stats.

▸ SETUP GUIDE
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

Apple M1 Pro (16GB)
16 GB VRAM • 200 GB/s
APPLE
$999
Apple M2 Pro (16GB)
16 GB VRAM • 200 GB/s
APPLE
$1299
Apple M4 (16GB)
16 GB VRAM • 120 GB/s
APPLE
$499
NVIDIA Tesla T4 16GB
16 GB VRAM • 320 GB/s
NVIDIA
$800
NVIDIA V100 PCIe 16GB
16 GB VRAM • 900 GB/s
NVIDIA
$2000
Apple M1 (16GB)
16 GB VRAM • 68.25 GB/s
APPLE
$699
Apple M2 (16GB)
16 GB VRAM • 100 GB/s
APPLE
$799
Apple M3 (16GB)
16 GB VRAM • 100 GB/s
APPLE
$799
NVIDIA Tesla P100 DGXS
16 GB VRAM • 732 GB/s
NVIDIA
NVIDIA Tesla P100 PCIe 16 GB
16 GB VRAM • 732 GB/s
NVIDIA
NVIDIA Tesla P100 SXM2
16 GB VRAM • 732 GB/s
NVIDIA
NVIDIA Tesla V100 PCIe 16 GB
16 GB VRAM • 897 GB/s
NVIDIA
NVIDIA Tesla V100 SXM2 16 GB
16 GB VRAM • 1130 GB/s
NVIDIA

Find the best GPU for InternLM2 20B

Build Hardware for InternLM2 20B

InternLM2 20B — powerful model for coding and complex tasks.

▸ SPEC SHEET

InternLM2 20B19.8B Dense.

▸ SPECIFICATIONS
PARAMETERS
19.8B
ARCHITECTURE
Dense Transformer
CONTEXT LENGTH
32K tokens
CAPABILITIES
chat, coding
RELEASE DATE
2024-01-17
PROVIDER
Shanghai AI Lab
FAMILY
internlm
▸ VRAM REQUIREMENTS
QUANTBPWVRAMQUALITY
Q3_K_M410.4 GB88%
Q3_K_L4.311.1 GB90%
IQ4_XS4.4611.5 GB92%
Q4_K_S4.6712.0 GB93%
Q4_K_M4.8912.6 GB94%
Q5_K_S5.5714.3 GB96%
Q5_K_M5.714.6 GB96%
Q6_K6.5616.7 GB97%
Q8_08.521.5 GB100%
FP161640.1 GB100%
§ 01BENCHMARK SCORES
HumanEval57.6
MMLU-PRO45.0
MATH52.0
IFEval72.0
BBH62.8
GPQA9.5
MUSR16.7
§ 02RUN COMMAND

Run InternLM2 20B locally with Ollama — needs 12.6 GB VRAM at Q4_K_M:

$ollama run internlm2:20b
§ 03COMPATIBLE GPUs
30 @ Q4_K_M