Run this model with HF Jobs

Run OpenMedZoo/intern-med on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/OpenMedZoo/intern-med. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/OpenMedZoo/intern-med on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/OpenMedZoo/intern-med. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/OpenMedZoo/intern-med. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="OpenMedZoo/intern-med", trust_remote_code=True)
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForImageTextToText
model = AutoModelForImageTextToText.from_pretrained("OpenMedZoo/intern-med", trust_remote_code=True, device_map="auto")
Quick Links

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}
}
Downloads last month
46
Safetensors
Model size
36B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Paper for OpenMedZoo/intern-med