Model reference · open weights

internlm

LLMs internlm Text gen 1 build Licence not stated 35k dl/mo

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.

  • InternLM is a 7 billion parameter text-generation model developed by internlm, available as a base model and a chat variant for practical scenarios.
  • The model supports an 8k context window length and was trained on trillions of high-quality tokens.
  • The code is licensed under Apache-2.0, while the model weights are open for academic research and allow free commercial usage.

Summary of the internlm/internlm-chat-7b model card, 2026-10-01

What it is

Released byinternlm
Released2023-07-06
VRAM14.6 GB for the weights

What it runs on

Memory and cards for internlm-chat-7b (BF16)

14.6 GBweights, file size
524 MBcache per 1K tokens
692 MBruntime overhead, at least
2,048 tokenscontext max
CardRequests at onceContext maxMemory
2K each
RTX 3060 12 GB——11.6 GB
RTX 4060 Ti 16 GB—14015.4 GB
RTX 3090 24 GB7all 2K23.4 GB
RTX 4090 24 GB7all 2K23.4 GB
RTX 5090 32 GB14all 2K31.0 GB
L40S 48 GB26all 2K44.0 GB
A100 80 GB58all 2K78.2 GB
H100 80 GB54all 2K78.1 GB
RTX PRO 6000 Blackwell 96 GB69all 2K93.8 GB
DGX Spark (GB10) 128 GB unified82all 2K107 GB
H200 141 GB110all 2K138 GB
B200 180 GB145all 2K176 GB
2× RTX 3060 12 GB
tensor parallel
6all 2K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
13all 2K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
28all 2K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
28all 2K23.4 GB a card
Memory needed at each load
Requests at once2K tokens each
116.4 GB
520.7 GB
823.9 GB
1632.5 GB
3249.7 GB
6484.1 GB

One card, with vLLM's small-card settings.

From the model card

What internlm says about internlm

Read the model card

💻Github Repo • 🤔Reporting Issues

Introduction

InternLM has open-sourced a 7 billion parameter base model and a chat model tailored for practical scenarios. The model has the following characteristics:

  • It leverages trillions of high-quality tokens for training to establish a powerful knowledge base.
  • It supports an 8k context window length, enabling longer input sequences and stronger reasoning capabilities.
  • It provides a versatile toolset for users to flexibly build their own workflows.

InternLM-7B

Performance Evaluation

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\ModelsInternLM-Chat-7BInternLM-7BLLaMA-7BBaichuan-7BChatGLM2-6BAlpaca-7BVicuna-7B
C-Eval(Val)53.253.424.242.750.928.931.2
MMLU50.851.035.2*41.546.039.747.3
AGIEval42.537.620.824.639.024.126.4
CommonSenseQA75.259.565.058.860.068.766.7
BUSTM74.350.648.551.355.048.862.5
CLUEWSC78.659.150.352.859.850.352.2
MATH6.47.12.83.06.62.22.8
GSM8K34.531.210.19.729.26.015.3
HumanEval14.010.414.09.29.29.211.0
RACE(High)76.357.446.9*28.166.340.754.0
  • The evaluation results were obtained from OpenCompass 20230706 (some data marked with *, which means come from the original papers), and evaluation configuration can be found in the configuration files provided by OpenCompass.
  • The evaluation data may have numerical differences due to the version iteration of OpenCompass, so please refer to the latest evaluation results of OpenCompass.

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.

Import from Transformers

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, histor

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms