Model reference · open weights
internlm is an open-weight language model from internlm. internlm-chat-7b (BF16) weighs 14.6 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
Summary of the internlm/internlm-chat-7b model card, 2026-10-01
What it is
| Released by | internlm |
|---|---|
| Released | 2023-07-06 |
| VRAM | 14.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 2K each | |||
| RTX 3060 12 GB | — | — | 11.6 GB |
| RTX 4060 Ti 16 GB | — | 140 | 15.4 GB |
| RTX 3090 24 GB | 7 | all 2K | 23.4 GB |
| RTX 4090 24 GB | 7 | all 2K | 23.4 GB |
| RTX 5090 32 GB | 14 | all 2K | 31.0 GB |
| L40S 48 GB | 26 | all 2K | 44.0 GB |
| A100 80 GB | 58 | all 2K | 78.2 GB |
| H100 80 GB | 54 | all 2K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 69 | all 2K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 82 | all 2K | 107 GB |
| H200 141 GB | 110 | all 2K | 138 GB |
| B200 180 GB | 145 | all 2K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 6 | all 2K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 13 | all 2K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel | 28 | all 2K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel | 28 | all 2K | 23.4 GB a card |
| Requests at once | 2K tokens each |
|---|---|
| 1 | 16.4 GB |
| 5 | 20.7 GB |
| 8 | 23.9 GB |
| 16 | 32.5 GB |
| 32 | 49.7 GB |
| 64 | 84.1 GB |
One card, with vLLM's small-card settings.
From the model card
💻Github Repo • 🤔Reporting Issues
InternLM has open-sourced a 7 billion parameter base model and a chat model tailored for practical scenarios. The model has the following characteristics:
We conducted a comprehensive evaluation of InternLM using the open-source evaluation tool OpenCompass. The evaluation covered five dimensions of capabilities: disciplinary competence, language competence, knowledge competence, inference competence, and comprehension competence. Here are some of the evaluation results, and you can visit the OpenCompass leaderboard for more evaluation results.
| Datasets\Models | InternLM-Chat-7B | InternLM-7B | LLaMA-7B | Baichuan-7B | ChatGLM2-6B | Alpaca-7B | Vicuna-7B |
|---|---|---|---|---|---|---|---|
| C-Eval(Val) | 53.2 | 53.4 | 24.2 | 42.7 | 50.9 | 28.9 | 31.2 |
| MMLU | 50.8 | 51.0 | 35.2* | 41.5 | 46.0 | 39.7 | 47.3 |
| AGIEval | 42.5 | 37.6 | 20.8 | 24.6 | 39.0 | 24.1 | 26.4 |
| CommonSenseQA | 75.2 | 59.5 | 65.0 | 58.8 | 60.0 | 68.7 | 66.7 |
| BUSTM | 74.3 | 50.6 | 48.5 | 51.3 | 55.0 | 48.8 | 62.5 |
| CLUEWSC | 78.6 | 59.1 | 50.3 | 52.8 | 59.8 | 50.3 | 52.2 |
| MATH | 6.4 | 7.1 | 2.8 | 3.0 | 6.6 | 2.2 | 2.8 |
| GSM8K | 34.5 | 31.2 | 10.1 | 9.7 | 29.2 | 6.0 | 15.3 |
| HumanEval | 14.0 | 10.4 | 14.0 | 9.2 | 9.2 | 9.2 | 11.0 |
| RACE(High) | 76.3 | 57.4 | 46.9* | 28.1 | 66.3 | 40.7 | 54.0 |
Limitations: Although we have made efforts to ensure the safety of the model during the training process and to encourage the model to generate text that complies with ethical and legal requirements, the model may still produce unexpected outputs due to its size and probabilistic generation paradigm. For example, the generated responses may contain biases, discrimination, or other harmful content. Please do not propagate such content. We are not responsible for any consequences resulting from the dissemination of harmful information.
To load the InternLM 7B Chat model using Transformers, use the following code:
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("internlm/internlm-chat-7b", trust_remote_code=True)
# Set `torch_dtype=torch.float16` to load model in float16, otherwise it will be loaded as float32 and cause OOM Error.
model = AutoModelForCausalLM.from_pretrained("internlm/internlm-chat-7b", torch_dtype=torch.float16, trust_remote_code=True).cuda()
model = model.eval()
response, history = model.chat(tokenizer, "hello", history=[])
print(response)
# Hello! How can I help you today?
response, history = model.chat(tokenizer, "please provide three suggestions about time management", history=history)
print(response)
# Sure, here are three tips for effective time management:
#
# 1. Prioritize tasks based on importance and urgency: Make a list of all your tasks and categorize them into "important and urgent," "important but not urgent," and "not important but urgent." Focus on completing the tasks in the first category before moving on to the others.
# 2. Use a calendar or planner: Write down deadlines and appointments in a calendar or planner so you don't forget them. This will also help you schedule your time more effectively and avoid overbooking yourself.
# 3. Minimize distractions: Try to eliminate any potential distractions when working on important tasks. Turn off notifications on your phone, close unnecessary tabs on your computer, and find a quiet place to work if possible.
#
# Remember, good time management skills take practice and patience. Start with small steps and gradually incorporate these habits into your daily routine.
The responses can be streamed using stream_chat:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "internlm/internlm-chat-7b"
model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype=torch.float16, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = model.eval()
length = 0
for response, historQuoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.