Instructions to use iamarvind/ayurveda-helper with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use iamarvind/ayurveda-helper with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("iamarvind/ayurveda-helper") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use iamarvind/ayurveda-helper with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "iamarvind/ayurveda-helper" --prompt "Once upon a time"
- Atomic Chat
Ayurveda Helper
Sarvam-M (24B) adapted to Ayurveda in Hindi and English with LoRA domain-adaptive pretraining, trained on a single MacBook Pro (M4 Pro, 48 GB) with MLX.
🚧 Training in progress (LoRA run on 19,600 chunks, ~2 days on an M4 Pro). Weights and final scores will be uploaded here when the run and evaluation finish. Baseline results below are final.
Results — BhashaBench-Ayur (14,963 questions, zero-shot, log-likelihood, acc_norm %)
| Model | All | English | Hindi |
|---|---|---|---|
| AyurParam 2.9B (BharatGen) | 32.6 | 33.6 | 30.8 |
| Sarvam-M 24B 4-bit (base) | 36.0 | 39.1 | 30.8 |
| Ayurveda Helper (this model) | training… | training… | training… |
Key finding so far
Sarvam-M beats AyurParam by 3.4 points overall (McNemar p < 1e-15), but the entire gain is in English (+5.5). On Hindi both models score 30.8% — this run targets that Hindi gap (≈70% of training text is Hindi).
Training
- Base:
sarvamai/sarvam-m(Apache-2.0), quantised to 4-bit with MLX - LoRA: 16 layers, rank 8, lr 1e-5, batch 1, 1 epoch, max length 1,024 (0.08% of weights trained)
- Data: 19600 text chunks (~1,500 chars each), ~70% Hindi. Mix: sangraha_hi: 4051, wiki_en: 6000, fineweb2_hi: 2949, wiki_hi: 7000
- Sources: Hindi + English Wikipedia (CC BY-SA 4.0); Hindi documents mined from AI4Bharat Sangraha (CC BY 4.0) and FineWeb-2 with an Ayurveda keyword-density filter.
- Decontamination: 116 chunks removed that shared any 8-word sequence with a BhashaBench-Ayur question + answer; exam-paper-like pages excluded.
How to use (once weights are uploaded)
pip install mlx-lm
mlx_lm.generate --model iamarvind/ayurveda-helper --prompt "आयुर्वेद में त्रिदोष क्या हैं?"
Or search for it in LM Studio (Apple Silicon) and download.
Limitations
- Not medical advice. Do not use for diagnosis or treatment.
- Trained on raw text only (no instruction/chat tuning): answers may read like textbook continuations.
- Evaluated only on multiple-choice questions.
- Web-mined text may contain errors and unverified health claims.
Credits
Sarvam AI (base model), AI4Bharat (Sangraha), Hugging Face (FineWeb-2), Wikipedia contributors, BharatGen (BhashaBench-Ayur, AyurParam).
Model tree for iamarvind/ayurveda-helper
Base model
mistralai/Mistral-Small-3.1-24B-Base-2503