OpenModelsHQ

internlm2-chat-20b

Shanghai AI Lab (InternLM)LLMDenseCustom licenseChina Desk

internlm2-chat-20b is an open-weight language model from Shanghai AI Lab (InternLM) with 19.9B parameters. At 4-bit it needs about 14.9 GB of memory, so the smallest current device that fits it is the Arc Pro B60.

Overview

Estimated memory at 4-bit
14.9GB

Includes room for an 8k context and runtime overhead. More context needs more memory.

Total parameters
19.9B
Dense
Context window
32K
32,768 tokens
Cheapest API, blended / 1M
No hosted API
Weights only

Key information

Lab
Shanghai AI Lab (InternLM)
Released
10 Jan 2024
Parameters
19.9B
Type
Language
Context
32,768 tokens
HF downloads, 30 days
22,577
View all

Will it run on your hardware?

How we estimate
Memory needed vs devices
internlm2-chat-20b needs about 14.9 GB at 4-bit, 24.9 GB at 8-bit and 45.5 GB at 16-bit. At 4-bit it fits GeForce RTX 5090, DGX Spark, Mac Studio M5 Ultra (256GB). Dashed lines are usable memory on each device; a model fits when its estimate stays within 90% of it. Log scale. 8k context.
Memory needed vs devices: data
Estimate or deviceMemory
Q414.9 GB
Q824.9 GB
BF1645.5 GB
RTX 5060 Ti 16 GB16 GB usable
RTX 5090 32 GB32 GB usable
DGX Spark 128 GB108.8 GB usable
Mac Studio M5 Ultra 256 GB192 GB usable

Single-device memory estimate. Pick a device to update the On your device column.

36 GB usable memory

FormatMemory neededOn your deviceExample hardware
4-bit (Q4)≈ 14.9 GBFits 41%Arc Pro B6024 GB memory
8-bit (Q8)≈ 24.9 GBFits 69%Radeon AI PRO R970032 GB memory
16-bit (BF16)≈ 45.5 GBToo big 126%A100 80GB SXM80 GB memory

Fits means the estimate stays within 90% of usable memory. Tight is above 90% and up to 100%. Too big is above 100%. These are memory checks, not speed or compatibility tests.

Mac allowances are 66% of total RAM up to 36 GB, and 75% above. AI boxes allow 85% because their memory is shared with the operating system.

Where to run it

On a Mac

No trusted MLX build found yet.

Check your Mac

With GGUF

No trusted GGUF build found yet.

Find compatible hardware

Through an API

No hosted API found.

More about this model

Frequently asked questions

How much memory does internlm2-chat-20b need? At an 8k context, about 14.9 GB at 4-bit, 24.9 GB at 8-bit and 45.5 GB at 16-bit (BF16). A longer context needs more.

Can I run internlm2-chat-20b on a Mac? The smallest current Mac that fits the 4-bit estimate of 14.9 GB is the Mac mini M6 (32GB). We have not found a trusted MLX or GGUF build yet.

Does the full context fit? internlm2-chat-20b supports up to 32,768 tokens of context. Our memory estimates use 8k, so long prompts need more memory than shown.

What does it cost through an API? We did not find a hosted API for this model.

License in plain English

Custom license. This model uses a custom license rather than a standard one. Read it on the model card before using the model commercially. This summary is not legal advice.

Read the license on the model card

OMHQ RigBench

Not yet tested. We show no speed or quality score without a measurement.

Revision history and sources

Last updated . Sources:Hugging Face model card.