Model reference · open weights

internlm2-1

LLMs internlm Text gen 2 builds Its own licence terms 5k dl/mo

internlm2-1 is an open-weight language model from internlm. internlm2-chat-1_8b (BF16) weighs 3.8 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • InternLM2-1.8B is a 1.8 billion parameter text-generation model developed by internlm as part of the second generation InternLM series.
  • It supports ultra-long contexts of up to 200,000 characters and is available in foundation, supervised fine-tuning, and RLHF-aligned chat versions.
  • The model weights are open for academic research and free commercial usage, while the code is licensed under Apache-2.0.

Summary of the internlm/internlm2-1_8b model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byinternlm
Released2024-01-30
VRAM3.8 GB for the weights

What it runs on

Memory and cards for internlm2-chat-1_8b (BF16)

3.8 GBweights, file size
98 MBcache per 1K tokens
625 MBruntime overhead, at least
32,768 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB82all 32K11.6 GB
RTX 4060 Ti 16 GB133all 32K15.4 GB
RTX 3090 24 GB235all 32K23.4 GB
RTX 4090 24 GB235all 32K23.4 GB
RTX 5090 32 GB338all 32K31.0 GB
L40S 48 GB4912all 32K44.0 GB
A100 80 GB9122all 32K78.2 GB
H100 80 GB8721all 32K78.1 GB
RTX PRO 6000 Blackwell 96 GB10626all 32K93.8 GB
DGX Spark (GB10) 128 GB unified12330all 32K107 GB
H200 141 GB16140all 32K138 GB
B200 180 GB20852all 32K176 GB
Memory needed at each load
Requests at once8K tokens each32K tokens each
15.2 GB7.6 GB
58.4 GB20.5 GB
810.8 GB30.2 GB
1617.3 GB55.9 GB
3230.2 GB107 GB
6455.9 GB211 GB

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

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
internlm2-1_8b ↗ —BF16 3.8 GBRTX 3060 12 GB
internlm2-chat-1_8b (above) ↗ 1.9BBF16 3.8 GBRTX 3060 12 GB

From the model card

What internlm says about internlm2-1

Read the model card

💻Github Repo • 🤔Reporting Issues • 📜Technical Report

Introduction

InternLM2-1.8B is the 1.8 billion parameter version of the second generation InternLM series. In order to facilitate user use and research, InternLM2-1.8B has three versions of open-source models. They are:

  • InternLM2-1.8B: Foundation models with high quality and high adaptation flexibility, which serve as a good starting point for downstream deep adaptations.
  • InternLM2-Chat-1.8B-SFT: Chat model after supervised fine-tuning (SFT) on InternLM2-1.8B.
  • InternLM2-Chat-1.8B: Further aligned on top of InternLM2-Chat-1.8B-SFT through online RLHF. InternLM2-Chat-1.8B exhibits better instruction following, chat experience, and function calling, which is recommended for downstream applications.

The InternLM2 has the following technical features:

  • Effective support for ultra-long contexts of up to 200,000 characters: The model nearly perfectly achieves "finding a needle in a haystack" in long inputs of 200,000 characters. It also leads among open-source models in performance on long-text tasks such as LongBench and L-Eval.
  • Comprehensive performance enhancement: Compared to the previous generation model, it shows significant improvements in various capabilities, including reasoning, mathematics, and coding.

InternLM2-1.8B

Performance Evaluation

We have evaluated InternLM2 on several important benchmarks using the open-source evaluation tool OpenCompass. Some of the evaluation results are shown in the table below. You are welcome to visit the OpenCompass Leaderboard for more evaluation results.

Dataset\ModelsInternLM2-1.8BInternLM2-Chat-1.8B-SFTInternLM2-7BInternLM2-Chat-7B
MMLU46.947.165.863.7
AGIEval33.438.849.947.2
BBH37.535.265.061.2
GSM8K31.239.770.870.7
MATH5.611.820.223.0
HumanEval25.032.943.359.8
MBPP(Sanitized)22.223.251.851.4
  • The evaluation results were obtained from OpenCompass , 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 InternLM2-1.8B model using Transformers, use the following code:

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("internlm/internlm2-1_8b", trust_remote_code=True)
# Set `torch_dtype=torch.float16` to load model in float16, otherwise it will be loaded as float32 and might cause OOM Error.
model = AutoModelForCausalLM.from_pretrained("internlm/internlm2-1_8b", torch_dtype=torch.float16, trust_remote_code=True).cuda()
model = model.eval()
inputs = tokenizer(["A beautiful flower"], return_tensors="pt")
for k,v in inputs.items():
    inputs[k] = v.cuda()
gen_kwargs = {"max_length": 128, "top_p": 0.8, "temperature": 0.8, "do_sample": True, "repetition_penalty": 1.0}
output = model.generate(**inputs, **gen_kwargs)
output = tokenizer.decode(output[0].tolist(), skip_special_tokens=True)
print(output)
# A beautiful flowering plant, this is a native of the tropical rainforest in the Andes Mountains of South America.
# The plant is also known as the monkey flower, the monkey flower, and the wild orchid.
# The flower is native to the Amazon Basin, where it is found in the forests of the Andes Mountains in the western part of the Amazon River Basin.
# It is also found in the Andes and the Amazonian forests of the Amazonian region.
# It grows at elevations between 5,000 and 8,000 feet.
# The flowers of the monkey flower are yellow and pink, with a distinctive shape.

Open Source License

The code is licensed under Apache-2.0, while model weights are fully open for academic research and also allow free commercial usage. To apply for a commercial license, please fill in the application form (English)/申请表(中文). For other questions or collaborations, please contact .

Citation

@misc{cai2024internlm2,
      title={InternLM2 Technical Report},
      author={Zheng Cai and Maosong Cao and Haojiong Chen and Kai Chen and Keyu Chen and Xin Chen and Xun Chen and Zehui Chen and Zhi Chen and Pei Chu and Xiaoyi Dong and Haodong Duan and Qi Fan and Zhaoye Fei and Yang Gao and Jiaye Ge and Chenya Gu and Yuzhe Gu and Tao Gui and Aijia Guo and Qipeng Guo and Conghui He and Yingfan Hu and Ting Huang and Tao Jiang and Penglong Jiao and Zhenjiang Jin and Zhikai Lei and Jiaxing Li and Jingwen Li and Linyang Li and Shuaibin Li and Wei Li and Yining Li and Hongwei Liu and Jiangning Liu and Jiawei Hong and Kaiwen Liu and Kuikun Liu and Xiaoran Liu and Chengqi Lv and Haijun Lv and Kai Lv and Li Ma and Runyuan Ma and Zerun Ma and Wenchang Ning and Linke Ouyang and

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