InternLM is a family of open-weight large language models developed by Shanghai AI Laboratory (often called Shanghai AI Lab) together with academic and industry partners. Within the landscape of AI models & assistants, it stands out less as a consumer chatbot and more as a research-oriented model series released with an unusually complete open toolchain for training, fine-tuning, deployment and evaluation.
The series began in 2023 and has progressed through InternLM2, InternLM2.5 and InternLM3, with specialized offshoots for mathematics, vision-language tasks and scientific reasoning. It is sometimes referred to as Shanghai AI Lab InternLM to distinguish it from similarly named projects. Its models are widely used in Chinese and English research settings because they combine bilingual strength, long context windows and permissive access to weights.
How the InternLM model family evolved
InternLM evolved through successive generations, each improving data quality, context length and reasoning rather than simply growing in size. The first release in 2023 included a large internal model and open 7B and 20B versions, which made it one of the earliest competitive Chinese open-weight LLMs.
The table below summarizes the main generations. Parameter counts and context lengths refer to the publicly released variants; exact figures differ between base, chat and instruct checkpoints.
| Generation | Public sizes | Notable advance |
|---|---|---|
| InternLM | 7B, 20B | Early bilingual open-weight release in 2023 |
| InternLM2 | 1.8B, 7B, 20B | Context of about 200,000 tokens; stronger tool use |
| InternLM2.5 | 1.8B, 7B, 20B | Context up to about 1 million tokens; better reasoning |
| InternLM3 | 8B | Deep thinking mode; high efficiency per training token |
A recurring theme is training efficiency. The InternLM3 release, for example, emphasized reaching strong benchmark scores with a comparatively modest volume of training tokens, which the developers attributed to careful data curation and synthesis rather than raw scale.
Architecture and training approach
InternLM models use a decoder-only transformer architecture, the same broad design as Llama, Qwen and most modern LLMs. Pretraining is followed by supervised fine-tuning and reinforcement learning from human feedback, with later versions adding preference optimization methods focused on reasoning quality.
Several engineering choices distinguish the series. InternLM2 introduced techniques for long-context extrapolation, allowing the model to retrieve facts from very long inputs, which is often tested with “needle in a haystack” evaluations. Later versions added a dual-mode design, in which the same model can answer quickly or produce longer step-by-step reasoning when a deep thinking mode is enabled.
| Characteristic | Typical value or approach | Practical effect |
|---|---|---|
| Architecture | Decoder-only transformer | Compatible with common inference frameworks |
| Context window | Roughly 32K to 1M tokens by version | Handles long documents and codebases |
| Languages | Primarily Chinese and English | Strong bilingual performance |
| Alignment | SFT, RLHF and preference optimization | Safer, more helpful chat behavior |
| Tool use | Function calling and code interpreter support | Suitable for agent workflows |
The InternLM ecosystem and tooling
The InternLM project is notable for releasing an end-to-end open toolchain alongside the weights. This lowers the barrier for universities and smaller companies that want to adapt a model without building infrastructure from scratch.
- XTuner supports efficient fine-tuning, including parameter-efficient methods such as LoRA and QLoRA on a single GPU.
- LMDeploy handles quantization and high-throughput serving for production inference.
- OpenCompass provides a broad evaluation platform for comparing language models on many benchmarks.
- Lagent and related projects support building tool-using agents on top of InternLM models.
- InternLM-XComposer and InternLM-Math extend the family to vision-language composition and mathematical reasoning.
Shanghai AI Lab also leads related efforts such as the InternVL vision-language series and the scientific Intern-S1 model. These share the Intern branding and research lineage, but each is a distinct model family with its own architecture and release schedule.
How InternLM compares with other open models
InternLM competes most directly with other open-weight model families that target developers and researchers. Its relative strengths are bilingual capability, long context and tooling, while the main trade-off is a smaller global community than the largest Western and Chinese releases.
| Model family | Main developer type | Distinguishing focus |
|---|---|---|
| InternLM | Public research laboratory | Research toolchain, long context, efficiency |
| Qwen | Cloud and technology company | Broad size range, multilingual, multimodal |
| DeepSeek | Independent AI company | Mixture-of-experts scale, reasoning models |
| GLM | University spin-off company | Bilingual chat and agent capabilities |
| Llama | Large technology company | Large global community and ecosystem |
Benchmark rankings among these families change with almost every release, so a fixed claim of superiority would be misleading. Teams choosing a model should run their own evaluation on representative tasks, for example with OpenCompass, rather than rely on leaderboard snapshots.
Licensing, deployment and limitations
InternLM code is released under the Apache 2.0 license, and model weights are open for academic research and generally available for commercial use under the project’s terms, which may require registration. Anyone deploying a checkpoint should read the license attached to that specific release, because terms can differ between versions and derivative models.
Like all LLMs, InternLM can hallucinate facts, reflect biases present in its training data and follow harmful instructions if guardrails are weak. Small variants such as the 1.8B model trade accuracy for speed, and very long contexts increase memory requirements substantially. Organizations should add retrieval grounding, output filtering and human review where errors carry real consequences.
Put simply
InternLM is a set of AI language models that anyone can download and run. A public research lab in Shanghai builds them. They read and write text, answer questions and help with code.
Think of it as an engine plus a full toolbox. The lab gives away the engine and the tools to tune, test and run it. That makes it popular with researchers and smaller teams, especially those who work in both Chinese and English.
In practice
A university research group needs a model that can read long Chinese and English policy documents and produce structured summaries. Sending the material to a commercial cloud service is not allowed under the group’s data rules, so it looks for a model it can host on its own servers.
The team downloads an InternLM 7B chat checkpoint, fine-tunes it with XTuner using LoRA on a single 24 GB GPU and about 3,000 annotated examples, then serves it through LMDeploy with 4-bit quantization. Using OpenCompass and an internal test set of 200 documents, it compares the tuned model with two other open models of similar size. The InternLM version produces the most consistent bilingual summaries on documents longer than 50 pages, and the group adopts it, keeping all data on campus while reviewing outputs manually before publication.