--- 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 /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": ""}, {"role": "user", "content": ""}, ], temperature=0.0, ) print(resp.choices[0].message) ``` ### Transformers ```python from transformers import AutoModelForImageTextToText, AutoProcessor model = AutoModelForImageTextToText.from_pretrained( "/intern-med", torch_dtype="bfloat16", device_map="auto", trust_remote_code=True, ) processor = AutoProcessor.from_pretrained("/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} } ```