Run this model with HF Jobs
Run Saathimed/AxonMed-7B 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/Saathimed/AxonMed-7B. 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/Saathimed/AxonMed-7B 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/Saathimed/AxonMed-7B. 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/Saathimed/AxonMed-7B. 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.
Instructions to use Saathimed/AxonMed-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Saathimed/AxonMed-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Saathimed/AxonMed-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Saathimed/AxonMed-7B") model = AutoModelForCausalLM.from_pretrained("Saathimed/AxonMed-7B", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Saathimed/AxonMed-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Saathimed/AxonMed-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Saathimed/AxonMed-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Saathimed/AxonMed-7B
- SGLang
How to use Saathimed/AxonMed-7B 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 "Saathimed/AxonMed-7B" \ --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": "Saathimed/AxonMed-7B", "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 "Saathimed/AxonMed-7B" \ --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": "Saathimed/AxonMed-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Saathimed/AxonMed-7B with Docker Model Runner:
docker model run hf.co/Saathimed/AxonMed-7B
Download AxonMed_7B_Technical_Report.md from Saathimed/AxonMed-7B: direct link, hf CLI and curl.
- Browser
- Download file 6.43 kB
-
https://huggingface.co/Saathimed/AxonMed-7B/resolve/main/AxonMed_7B_Technical_Report.md
- Command line
-
hf download hf://Saathimed/AxonMed-7B/AxonMed_7B_Technical_Report.md
-
curl -L -o AxonMed_7B_Technical_Report.md https://huggingface.co/Saathimed/AxonMed-7B/resolve/main/AxonMed_7B_Technical_Report.md
AxonMed-7B: Sovereign Clinical Foundation Model via Multi-Stage Curriculum Scaling and Medical o1 Reasoning
Authors: Amrendra Kumar¹ (IIT Patna Alumnus, Founder & CEO, SaathiMed Private Limited)
Affiliation: ¹SaathiMed Research Lab, Motihari, Bihar, India (CIN: U62011BR2025PTC077847)
Model Weights: https://huggingface.co/Saathimed/AxonMed-7B
Abstract
We introduce AxonMed-7B, a specialized, open-weights 7-billion parameter clinical foundation language model designed for high-stakes diagnostic triage, multi-board medical examination reasoning, and sovereign primary care deployment. While massive proprietary models such as Google Med-Gemini (540B) and OpenAI GPT-4 achieve strong performance via extensive pretraining compute and cloud APIs, their deployment remains prohibitively expensive and raises critical patient data-sovereignty concerns in developing healthcare systems. By implementing a five-stage curriculum learning pipeline spanning 249,000+ clinical vignettes—combining the complete Indian AIIMS/NEET-PG MedMCQA corpus (182,822 items), USMLE Step 1/2/3 MedQA (10,178 items), NBME Self-Assessments, PubMedQA biomedical literature synthesis, and 19,704 long-horizon clinical chain-of-thought (<think>) trajectories—AxonMed-7B establishes a new state-of-the-art in the 7B-8B open-weights category. On zero-shot evaluations via EleutherAI's lm-evaluation-harness, AxonMed-7B achieves 61.25% accuracy on MedMCQA and 75.40% accuracy on PubMedQA, outperforming BioMistral-7B (51.80%), Meditron-7B (52.30%), Gemma-7B (52.80%), Meta LLaMA-3-8B (54.10%), and exceeding OpenAI GPT-3.5 Turbo (60.50% / 75.20%) despite utilizing 25× fewer parameters.
1. Introduction
Clinical decision support in emerging healthcare systems requires models that bridge global medical standards (USMLE, Harrison's Internal Medicine) with regional epidemiological realities (tropical infectious diseases, ICMR tuberculosis regimens, National List of Essential Medicines compliance), while operating within edge-compute hospital budgets. Existing open-source 7B-8B medical models often plateau at 51%–54% zero-shot accuracy on broad multi-specialty Indian examinations such as MedMCQA due to domain under-representation and single-stage supervised fine-tuning (SFT) saturation.
AxonMed-7B addresses this bottleneck through three primary contributions:
- Multi-Stage Sovereign-Global Curriculum Progression: Rather than single-pass instruction tuning, we employ progressive cosine-annealed gradient updates across 4,000+ cumulative steps spanning over 249,000 unique medical scenarios.
- Dual-Conditioned Objective Alignment: Alternating between direct token loglikelihood alignment and structured
<think>...</think>differential distractor elimination preserves strict benchmark logit calibration while imparting multi-step reasoning capabilities. - Neuro-Symbolic Guardrail Coupling: Architecture designed for pairing with deterministic clinical calculators (Cockcroft-Gault CrCl, Wells PE Score, CURB-65) and drug-drug interaction ontologies to prevent lethal pharmacological hallucinations.
2. Training Architecture & Progressive Curriculum
AxonMed-7B utilizes Qwen2.5-7B-Instruct quantized to 4-bit NormalFloat (NF4) for memory efficiency during optimization, augmented with full-rank Low-Rank Adaptation (LoRA, $r=32$, $\alpha=32$) applied across all seven linear projection matrices (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj, representing 80.74M trainable parameters or 1.15% of the backbone). All training was executed in bfloat16 precision on a single NVIDIA RTX 6000 Ada Generation GPU (48GB VRAM) with effective batch size $B = 32$.
Stage-by-Stage Progression
| Training Stage | Dataset Composition | Steps | Learning Rate | MedMCQA (0-shot) | PubMedQA (0-shot) |
|---|---|---|---|---|---|
| Stage 0 (Base) | Qwen2.5-7B-Instruct | — | — | 53.55% | 71.40% |
| Stage 1 (AIIMS Direct) | 50,000 MedMCQA Vignettes | 400 | $2\times 10^{-4}$ | 58.71% | 73.80% |
| Stage 2 (Dual-Track) | 75,000 MedMCQA + PubMedQA | 500 | $1.5\times 10^{-4}$ | 60.22% | 72.80% |
| Stage 3 (Global Triad) | USMLE Step 1-3 + MedMCQA + PubMed | 600 | $1.2\times 10^{-4}$ | 60.32% | 75.80% |
| Stage 4 (Full Syllabus) | Full 182.8k MedMCQA + 10.1k USMLE + PubMed | 2,500 | $1.0\times 10^{-4}$ | 61.06% | 74.00% |
| Stage 5 (AxonMed-7B Final) | 19.7k Medical o1 CoT + USMLE + NBME + AIIMS | 600 | $8.0\times 10^{-5}$ | 61.25% | 75.40% |
3. Empirical Results & Comparative Analysis
Evaluations were conducted using lm-evaluation-harness (batch_size=16, n-shot=0) across the entire validation splits of MedMCQA (4,183 questions across 21 specialties) and PubMedQA (500 research synthesis cases).
| Model | Parameters | MedMCQA (0-shot) | PubMedQA (0-shot) |
|---|---|---|---|
| BioMistral-7B | 7B | 51.80% | 74.80% |
| Meditron-7B | 7B | 52.30% | 74.40% |
| Google Gemma-7B | 7B | 52.80% | 71.90% |
| Meta LLaMA-3-8B | 8B | 54.10% | 72.00% |
| OpenAI GPT-3.5 Turbo | ~175B | 60.50% | 75.20% |
| AxonMed-7B (Ours) | 7B | 61.25% | 75.40% |
4. Discussion & Scaling Boundaries
Our experiments confirm two crucial empirical findings in domain-specific LLM scaling:
- Asymptotic 7B Loglikelihood Ceiling: Pushing a dense 7B model past 61% zero-shot accuracy on MedMCQA via pure SFT reveals the physical memorization boundary of 7-billion parameter representations—exceeding all existing peer 7B/8B models by +7.15% to +9.45%.
- System-Level Safety Integration: Bridging the remaining gap to 540B+ cloud models for live hospital workflows is most effectively achieved not through uncalibrated token generation alone, but through deterministic knowledge graph grounding (ICD-11/NLEM) and neuro-symbolic parameter verification.
5. Conclusion
AxonMed-7B demonstrates that carefully engineered, multi-stage curriculum alignment across both Indian and international medical licensing benchmarks enables a single-GPU 7B parameter model to outperform proprietary 175B systems while preserving patient data sovereignty. The model weights and evaluation reproducibility scripts are openly released at https://huggingface.co/Saathimed/AxonMed-7B.