File size: 2,783 Bytes
ee628a8
 
 
 
 
 
 
 
 
 
 
 
 
 
e58463e
ee628a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e58463e
 
 
 
 
 
 
 
 
ee628a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
library_name: transformers
license: apache-2.0
pipeline_tag: image-text-to-text
tags:
  - medical
  - healthcare
  - clinical-reasoning
---

# Intern-Med

**Intern-Med** is a medical-domain large language model built upon [Intern-S2-Preview](https://huggingface.co/internlm/Intern-S2-Preview). It strengthens medical knowledge and clinical reasoning, and produces explicit multi-stage structured reasoning (checklist-style chain-of-thought) in thinking mode, while preserving the general and mathematical capabilities of the base model.

**GitHub**: [OpenMedZoo/intern-med](https://github.com/OpenMedZoo/intern-med) | **Paper**: [arXiv:2611.37274](https://arxiv.org/abs/2611.37274)

## Usage

The model ships custom code, so `trust_remote_code=True` is required. It supports both text-only and multimodal (image) inputs; the weights are in bfloat16.

### vLLM (recommended)

```python
from openai import OpenAI

# Serving example:
#   vllm serve <path-or-repo>/intern-med \
#       --trust-remote-code --reasoning-parser qwen3 --max-model-len 8192

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")

resp = client.chat.completions.create(
    model="intern-med",
    messages=[
        {"role": "system", "content": "<your system prompt>"},
        {"role": "user", "content": "<your question>"},
    ],
    temperature=0.0,
)
print(resp.choices[0].message)
```

### Transformers

```python
from transformers import AutoModelForImageTextToText, AutoProcessor

model = AutoModelForImageTextToText.from_pretrained(
    "<path-or-repo>/intern-med", torch_dtype="bfloat16",
    device_map="auto", trust_remote_code=True,
)
processor = AutoProcessor.from_pretrained("<path-or-repo>/intern-med", trust_remote_code=True)
```

## Recommended decoding

- Greedy / low-temperature decoding works best for structured reasoning and benchmark-style tasks.
- Thinking mode: use a reasoning parser (e.g. `--reasoning-parser qwen3` in vLLM) to separate the reasoning trace from the final answer.

## Disclaimer

Intern-Med is a research model. Its outputs are for informational purposes only and **do not constitute medical advice, diagnosis, or treatment**. Always consult a qualified healthcare professional.

## License

Apache 2.0. This model is derived from Intern-S2-Preview; please also comply with the base model's license terms.

## Citation

```bibtex
@misc{yang2026internmed,
  title={Intern-Med: Step-Level Credit Assignment for Medical Reasoning},
  author={Shuyun Yang and Rongzhao Zhang and Tao Yang and Yiran Wang and Xiangyu Li and Lantian Zhang and Lu Lu and Yun Zhong and Jinru Ding and Mouxiao Bian and Yi Fu and Zhao Jin and Ming Hu and Yirong Chen and Jie Xu},
  year={2026},
  eprint={2611.37274},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}
```