All models

Literature · hongzhouyu

FineMedLM

A medical conversational language model fine-tuned on synthetic clinical data for question answering.

What FineMedLM is

FineMedLM is a medical conversational language model developed by Hongzhou Yu and colleagues. Built by fine-tuning Meta's Llama-3.1-8B architecture, it is designed for health-related text generation and clinical dialogue.

The model is adapted to medical domains using supervised fine-tuning on synthetic dialogue data. It supports both English and Chinese, serving as the foundational fine-tuned checkpoint prior to further preference optimisation in the FineMedLM series.

How it works

FineMedLM is initialised from the meta-llama/Llama-3.1-8B base architecture and trained through supervised fine-tuning (SFT) on the hongzhouyu/FineMed-SFT dataset, which consists of curated synthetic medical interactions.

During inference, the model operates similarly to standard instruction-tuned causal language models. It uses chat templates to handle user prompts alongside a specified system prompt that guides the model to answer queries from the perspective of a medical professional.

Key facts

Base model
meta-llama/Llama-3.1-8B
Architecture
Llama (transformers AutoModelForCausalLM)
Training data
hongzhouyu/FineMed-SFT
Supported languages
English and Chinese
Release year
2025

What you can use it for

Medical Question Answering
Provides responses to user-submitted clinical and health-related questions framed in a professional medical dialogue.
Step-by-Step Multiple Choice Reasoning
Evaluates multiple-choice health examination queries by articulating step-by-step reasoning before concluding with the chosen answer.
Bilingual Clinical Chat
Conducts health-focused conversational interactions in both English and Chinese text.

Run it here

We list this model but cannot run it yet: it has not been test-run here yet.

Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.

Strengths and limits

Good at

  • Trained specifically on curated synthetic medical data designed for supervised fine-tuning.
  • Compatible with standard Llama-3.1-8B-Instruct conversational pipelines and tooling.
  • Supports bilingual medical text generation across English and Chinese.

Watch out for

  • For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
  • Requires a specific provided system prompt to achieve optimal inference outcomes.
  • Does not include the direct preference optimisation (DPO) applied in FineMedLM-o1 for deeper reasoning.

Inputs and outputs

You provide

  • Prompt

    The model continues from here.

You get back

  • The model's completion.

Licence

Check the licence before commercial use · mit

The mit licence carries terms worth reading before you depend on it.

Questions

Can I use FineMedLM commercially?

Check the licence before commercial use. The mit licence carries terms worth reading before you depend on it.

What base architecture does FineMedLM use?

FineMedLM is built upon Meta's Llama-3.1-8B model.

What system prompt is recommended during inference?

Inference yields better results when using the prompt: "You are a helpful professional doctor. The user will give you a medical question, and you should answer it in a professional way."

How does FineMedLM differ from FineMedLM-o1?

FineMedLM is trained solely via supervised fine-tuning on synthetic data, whereas FineMedLM-o1 applies additional direct preference optimisation (DPO) to acquire deeper reasoning capabilities.

How to cite it

Hongzhou Yu, Tianhao Cheng, Ying Cheng, and Rui Feng. FineMedLM-o1: Enhancing the Medical Reasoning Ability of LLM from Supervised Fine-Tuning to Test-Time Training. arXiv:2501.09213, 2025.

Written from FineMedLM's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.