whatmodel.sh / InternLM2 Chat 20B

InternLM2 Chat 20B is an open-weights language model from Shanghai AI Laboratory (InternLM), released January 2024. Its published size is 19.86B parameters. Licence: other.

Catalogue identity notes

Maker repo internlm/internlm2-chat-20b @d606d41: licence tag other. 19,861,149,696 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-01: month the maker's Hugging Face repo was created (createdAt 2024-01-10).

42.3±1.3#538 of 743 LLMsfrom 5 benchmark results across 5 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of InternLM2 Chat 20B, out of 897 with a score, then more from Shanghai AI Laboratory (InternLM).

#modelscorewhereRAMreleased
644DeepSeek-Coder 33B Base DeepSeek42±1local~22GB2023-10
645InternVL2-4B Shanghai AI Laboratory (OpenGVLab)42±2local~10GB2024-07
646InternLM2 Chat 20B Shanghai AI Laboratory (InternLM)42±1local~14GB2024-01
647CodeQwen1.5 7B (base) Alibaba42±1local~6.5GB2024-04
648Mixtral 8x7B Instruct v0.1 Mistral42±0local~28GB2023-12
more from Shanghai AI Laboratory (InternLM)
466InternLM2.5 7B Chat Shanghai AI Laboratory (InternLM)49±2local~6.1GB2024-06
515InternLM2.5 7B Chat 1M Shanghai AI Laboratory (InternLM)47±4local~6.4GB2024-06
537InternLM2.5 20B Chat Shanghai AI Laboratory (InternLM)47±2local~14GB2024-08

see all LLMs · find the ones that fit your machine

$ what it's good at

chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #321 of 405 * · 71% of its score · 2 tests

Beats Gemma 4 E4B, OpenThinker3 7B, Code Llama 70B Instruct here, though they rank higher overall. Trails LFM2 350M, Gemma 3 1B, Qwen3 0.6B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
AlpacaEval 2 length-controlled18.8% ✎▁▂▂▃▆▆█▆▄▄▁▁ beats 49/122medium · avg 36%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 45%sharp
Arena-Hard (v0.1, GPT-4-1106 judge)24.4% ✎▂▁▁▅█▅▄▃▃▅▃▁ beats 23/60medium · avg 47%▇▇▇▇▇▇▇▇▇▇ 25%sharp
other tests3 not in a task · 29% of its score
testresultvs the others in its rundifficultycountswhy
CPTUB average (SpeakLeash, 0-5 judge scale)43.0% ✎▁▂▃▂▃█▃▆▅▄▂▃ beats 10/95easy · avg 65%▇▇▇▇▇▇ 14%at its level
Polish EQ-Bench v2 (SpeakLeash)36.5% ✎▁··▁▁▂▃▆▅▆█▆ beats 10/70medium · avg 62%▇▇▇▇ 11%at its level
Open PT-LLM Leaderboard average (9 Portuguese tasks)70.6% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 169/276medium · avg 72%▇▇ 4.0%at its level · noisy

$ where to run it

Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.

llama.cpp · recommended

version

  1. Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.
    macOS / Linux
    curl -LsSf https://llama.app/install.sh | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run InternLM2 Chat 20B · needs 14.1 GB memory, 12 GB download · from huggingface.co/mradermacher
    chat in the terminal
    llama cli -hf mradermacher/internlm2-chat-20b-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf mradermacher/internlm2-chat-20b-GGUF:Q4_K_M

LM Studio

version

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run InternLM2 Chat 20B · needs 14.1 GB memory, 12 GB download · from huggingface.co/mradermacher

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/mradermacher/internlm2-chat-20b-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run InternLM2 Chat 20B · needs 14.1 GB memory, 12 GB download · from huggingface.co/mradermacher
    chat in the terminal
    ollama run hf.co/mradermacher/internlm2-chat-20b-GGUF:Q4_K_M

Other ways to run it

  1. Run it as published · needs 43.2 GB memory, 39.7 GB download · from huggingface.co/internlm (official)
    uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='internlm/internlm2-chat-20b', torch_dtype='auto', device_map='auto', trust_remote_code=True)('Once upon a time', max_new_tokens=40)[0]['generated_text'])"

Model repository and documentation: huggingface.co/internlm ↗

$ how the score was worked out · AlpacaEval 1.0 and 2.0 leader… 45%, Arena-Hard-Auto v0.1 leaderbo… 25%, SpeakLeash CPTUB (Complex Pol… 14% and 2 more

Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works

sourceresultsshare of the scorelicence
AlpacaEval 1.0 and 2.0 leaderboards (tatsu-lab/alpaca_eval repository)1Apache-2.0
Arena-Hard-Auto v0.1 leaderboard (repository README, pre-v2)1Apache-2.0
SpeakLeash CPTUB (Complex Polish Text Understanding Benchmark)1MIT
SpeakLeash Polish EQ-Bench leaderboard1Apache-2.0
Open Portuguese LLM Leaderboard (archived)1Apache-2.0
prior · pull toward the middle
weighted average= 42.3

$ improve this page

Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.

data updated · sources and licences · json