Text Generation
Transformers
Safetensors
English
apertus
medical
clinical
healthcare
meditron
fully-open
medical-llm
conversational
Instructions to use EPFLiGHT/Apertus-70B-MeditronFO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EPFLiGHT/Apertus-70B-MeditronFO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EPFLiGHT/Apertus-70B-MeditronFO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EPFLiGHT/Apertus-70B-MeditronFO") model = AutoModelForCausalLM.from_pretrained("EPFLiGHT/Apertus-70B-MeditronFO") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use EPFLiGHT/Apertus-70B-MeditronFO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EPFLiGHT/Apertus-70B-MeditronFO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EPFLiGHT/Apertus-70B-MeditronFO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EPFLiGHT/Apertus-70B-MeditronFO
- SGLang
How to use EPFLiGHT/Apertus-70B-MeditronFO with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "EPFLiGHT/Apertus-70B-MeditronFO" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EPFLiGHT/Apertus-70B-MeditronFO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "EPFLiGHT/Apertus-70B-MeditronFO" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EPFLiGHT/Apertus-70B-MeditronFO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EPFLiGHT/Apertus-70B-MeditronFO with Docker Model Runner:
docker model run hf.co/EPFLiGHT/Apertus-70B-MeditronFO
Add model card
Browse files
README.md
CHANGED
|
@@ -26,7 +26,7 @@ This model is part of the **Fully Open Meditron** family — the first end-to-en
|
|
| 26 |
|
| 27 |
- 📄 **Paper:** *Fully Open Meditron: An Auditable Pipeline for Clinical LLMs*
|
| 28 |
- 💻 **Code:** [github.com/EPFLiGHT/FullyOpenMeditron](https://github.com/EPFLiGHT/FullyOpenMeditron)
|
| 29 |
-
- 📚 **Collection:** [
|
| 30 |
- 🗂️ **Training corpus:** [EPFLiGHT/fully-open-meditron](https://huggingface.co/datasets/EPFLiGHT/fully-open-meditron)
|
| 31 |
|
| 32 |
## Performance
|
|
@@ -82,22 +82,10 @@ Full hyperparameters are in Appendix I of the paper.
|
|
| 82 |
|
| 83 |
It is **not validated for clinical deployment, individual patient advice, autonomous decision-making, or any other deployment-adjacent use.** Conduct independent domain-specific safety evaluation before any such use.
|
| 84 |
|
| 85 |
-
## Limitations
|
| 86 |
-
|
| 87 |
-
- Inherits limitations of the training corpus: ~64% of items are synthetic, generated by a single teacher model (gpt-oss-120b), introducing model-specific stylistic and reasoning biases.
|
| 88 |
-
- Decontamination is syntactic (n-gram and token alignment) rather than semantic, leaving open the possibility of paraphrased leakage.
|
| 89 |
-
- Some general-purpose instruction-following capability is degraded relative to the base model — a tradeoff common to medical-specialist fine-tuning.
|
| 90 |
-
- Predominantly English; non-English clinical content is underrepresented.
|
| 91 |
-
- Inherits geographic and demographic biases of the source datasets, partially mitigated by AfriMed-QA inclusion.
|
| 92 |
-
- May produce confidently incorrect outputs (hallucinations).
|
| 93 |
-
|
| 94 |
## Citation
|
| 95 |
|
| 96 |
```bibtex
|
| 97 |
-
|
| 98 |
-
title={Fully Open Meditron: An Auditable Pipeline for Clinical LLMs},
|
| 99 |
-
author={Theimer-Lienhard, Xavier and El-Amin, Mushtaha and Elhassan, Fay and Vaidya, Sahaj and Cartier-Negadi, Victor and Sasu, David and Klein, Lars and Hartley, Mary-Anne},
|
| 100 |
-
year={2026}
|
| 101 |
}
|
| 102 |
```
|
| 103 |
|
|
|
|
| 26 |
|
| 27 |
- 📄 **Paper:** *Fully Open Meditron: An Auditable Pipeline for Clinical LLMs*
|
| 28 |
- 💻 **Code:** [github.com/EPFLiGHT/FullyOpenMeditron](https://github.com/EPFLiGHT/FullyOpenMeditron)
|
| 29 |
+
- 📚 **Collection:** [MeditronFO](https://huggingface.co/collections/EPFLiGHT/meditronfo)
|
| 30 |
- 🗂️ **Training corpus:** [EPFLiGHT/fully-open-meditron](https://huggingface.co/datasets/EPFLiGHT/fully-open-meditron)
|
| 31 |
|
| 32 |
## Performance
|
|
|
|
| 82 |
|
| 83 |
It is **not validated for clinical deployment, individual patient advice, autonomous decision-making, or any other deployment-adjacent use.** Conduct independent domain-specific safety evaluation before any such use.
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
## Citation
|
| 86 |
|
| 87 |
```bibtex
|
| 88 |
+
todo
|
|
|
|
|
|
|
|
|
|
| 89 |
}
|
| 90 |
```
|
| 91 |
|