> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# An open model that reads X-rays: how was InternLM's Sage-Med trained on 226B tokens?
- URL: https://globalfeed.ai/en/an-open-model-that-reads-x-rays-how-was-internlms-sage-med-trained-on-226b-tokens/
- Published: 2026-11-29T18:33:02.000Z
- Updated: 2026-11-29T18:33:02.000Z
- Description: InternLM's open medical model Sage-Med-Preview has 35B parameters but uses about 3B per token. How the data was filtered, how the five training phases worked and what helped.
- Author: GlobalFeed Editor
- Tags: Open Model, Sage-Med, InternLM, Healthcare, Open Source, dil-en, elle

Picture a model that reads a chest X-ray and drafts the report, marks the area to watch in a surgical video frame, and tries to tell ear diseases apart from an exam image. Shanghai AI Laboratory's InternLM team trained [Sage-Med-Preview](https://huggingface.co/internlm/Sage-Med-Preview?ref=globalfeed.ai) for exactly that and published it on Hugging Face on 27 November for anyone to download. It has 35 billion parameters, but only about 3 billion are active for each token, so it runs on a single NVIDIA H200.

The team's 101-page [technical report](https://arxiv.org/abs/2611.34575?ref=globalfeed.ai) walks through how it was built: how 322.7 million candidate records were filtered to about 164 million records and 226 billion tokens, the five training phases, and which experiments helped and which did not. It also asks a useful question: why do medical models so often trail general-purpose frontier models?

## The problem: scale helps reading more than seeing

According to the authors, today's medical multimodal models trail the best general models on 29 of 31 public medical vision benchmarks. Moving to the largest member of a model family adds 9.90 points on text-only medical questions but only 4.34 on image understanding. Bigger models read better; they do not look at X-rays, MRIs or pathology slides much better. Sage-Med tries to close that gap with data curation and training stages rather than sheer size.

## Architecture

Sage-Med builds on the team's scientific multimodal base, Intern-S2-Preview. It is a mixture-of-experts model with 256 experts, 8 chosen per token: 35.25 billion parameters in total, about 3 billion active. The language backbone has 40 layers, 30 with linear attention and 10 (every fourth) with full attention, and images pass through a 27-layer vision encoder. It covers more than 40 imaging modalities and handles question answering, image understanding, report generation and visual grounding.

## How it was trained

**Data.** The team gathered more than 200 public datasets, over 120 million biomedical literature records drawn from 25 million documents, and more than 100 private resources the report describes as textbooks and specialty data. Of 322.7 million candidate records, about 234 million include images. After filtering, 93.8 million remained for pretraining, 69.6 million for fine-tuning and 0.3 million for reinforcement learning.

**1\. Continual pretraining** on 83.8 million records of image-text pairs, document evidence, medical text and general science. **2\. Mid-training** on 28.1 million records mixing medical tasks, knowledge and reasoning examples, replayed pretraining data and science examples. **3\. Three fine-tuning stages:** instruction alignment (6.1 million records, roughly a quarter short answers, half medium, a quarter long), task diversification (9.6 million, 60% with images) and selective refinement (6.2 million, with about 8.5% hard cases, 13% step-by-step reasoning and replay from earlier stages to limit forgetting).

**4\. Adaptive reinforcement learning** with GRPO: the model writes 8 answers per question, they are scored, and answers better than the group average are reinforced. Closed-form questions use task-specific verifiers; open-ended ones use a fixed judge model with medical rubrics. Difficulty is tracked throughout (initially 14.98% hard, 73.37% medium, 11.65% easy), and questions with 2 to 6 correct answers out of 8 are prioritised, because the model learns little from questions it always or never gets right. Teacher-forced supervision on reference answers is added alongside.

### What worked and what did not

A balanced 30-million-record pretraining subset beat the full data, 62.82 against 61.26\. Intern-S2-Preview beat Qwen3.5-35B-A3B as the base by 4.31, 2.54 and 2.72 points after the three fine-tuning stages. In pilot runs on smaller models, raising the text share from 29.4% to 38% added 1.09 points, and a 25% short-answer share added 1.87 points over 15%, falling to 1.44 at 30%. Turning on reasoning mode helped text reasoning but not perception (48.09% against 47.55%). Stage gains were small and steady: 0.19 for the second fine-tuning stage, 0.57 for the third and 1.01 for reinforcement learning.

## What the results say

The team compared 77 models on 74 benchmarks (61 public, 13 private), with private tests covering 238 clinical tasks from 14 hospitals and institutions. By the authors' numbers, Sage-Med averages 58.26 across 31 public vision benchmarks, against 52.78 for GPT-5.4, 50.99 for the 235B Hulu-Med and 49.18 for Claude Opus 4.6\. On nine held-out private tasks it scores 57.72 against 51.24 for GPT-6.2 Sol, and 95.54% on OmniMedVQA against 82.56%.

The report is equally clear about where it loses. GPT-6.2 Sol leads on MedSG-Bench grounding (58.83 vs 31.73), MMMU-Pro medicine (87.76 vs 74.48) and the ClinHallu hallucination test (86.29 vs 77.48). On text-only MMLU-Pro medicine, Claude Opus 4.6 (84.11) and GPT-6.2 Sol (84.35) are ahead of Sage-Med (80.07). Full tables are on the [team's leaderboard](https://sage-med-preview.github.io/leaderboard.html?ref=globalfeed.ai); no independent evaluation exists yet.

## How to try it

The model card documents a vLLM setup tested on one H200 in BF16 with a 32,768-token context; the first download is about 131 GiB. Install from the [GitHub repo](https://github.com/Sage-Med/Sage-Med-Preview?ref=globalfeed.ai) requirements, then run `vllm serve internlm/Sage-Med-Preview --trust-remote-code --dtype bfloat16 --max-model-len 32768` for an OpenAI-compatible endpoint. The model card does not state a license, so check the repository terms first. The team says the model is meant to assist researchers and healthcare professionals and that clinical use needs expert review. Publishing a recipe this detailed gives hospitals and research groups a path to follow with their own data.

Sources: [Sage-Med-Preview model card](https://huggingface.co/internlm/Sage-Med-Preview?ref=globalfeed.ai), [Sage-Med technical report (arXiv)](https://arxiv.org/abs/2611.34575?ref=globalfeed.ai), [GitHub repository](https://github.com/Sage-Med/Sage-Med-Preview?ref=globalfeed.ai), [Leaderboard](https://sage-med-preview.github.io/leaderboard.html?ref=globalfeed.ai)