Run this model with HF Jobs
Run xtools-at/SmolLM3-3B-Medical-Reasoning 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 to fine-tune https://huggingface.co/xtools-at/SmolLM3-3B-Medical-Reasoning. 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/xtools-at/SmolLM3-3B-Medical-Reasoning 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.
Instructions to use xtools-at/SmolLM3-3B-Medical-Reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xtools-at/SmolLM3-3B-Medical-Reasoning with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("xtools-at/SmolLM3-3B-Medical-Reasoning", device_map="auto") - Notebooks
- Google Colab
- Kaggle
SmolLM3-3B Medical Reasoning
LoRA fine-tune of SmolLM3-3B for medical reasoning.
- Finetuned from model: K0D3IN/SmolLM3-3B-Instruct-heretic
- Dataset used: FreedomIntelligence/medical-o1-reasoning-SFT
Training params
- 16bit LoRA fine-tune on Tesla T4 16GB GPU
- 1.1 epochs on 2000 random entries of the dataset + 2% eval set
- 4096 context length; learning rate 2e-4
- rank: 16; alpha: 32; dropout: 0.01; targeting all modules
- optimizer: AdamW 8-bit; LR scheduler: linear
- batch size: 4; grad accum: 8, weight decay: 0.001
- result: training loss 1.36; evaluation loss 1.44
Example use
System prompt:
You're an expert at medical reasoning and diagnosis.
User prompt:
A 48-year-old woman has been experiencing intermittent nausea, decreased appetite, and increasing weakness and fatigue. She has a history of kidney stones and an elevated calcium level of 12.9 mg/dL, along with elevated nocturnal blood pressure. Given these symptoms and lab findings, what abnormality is most likely to be found upon further hormonal evaluation?
Model tree for xtools-at/SmolLM3-3B-Medical-Reasoning
Base model
HuggingFaceTB/SmolLM3-3B-Base