intern-med / README.md
YangShuyun's picture
Upload README.md with huggingface_hub
e58463e verified
|
Raw History Blame Contribute Delete
2.78 kB
metadata
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. 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 | Paper: arXiv: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)

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

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

@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}
}