Repository navigation
Home
MedSparse Healthcare was formerly published as Mixtral Healthcare; old links redirect.
End-to-end implementation of a Mixtral-style sparse Mixture-of-Experts (MoE) causal language model built from random weights with PyTorch, healthcare-domain pretraining, full-parameter medical supervised fine-tuning (SFT), checkpointing and evaluation.
This Wiki documents the implementation in the source repository and complements its README.
Healthcare publications (Hugging Face)
│
▼
Corpus audit → eligibility screening → healthcare BPE tokenizer
│
▼
Random initialization → sparse MoE next-token pretraining
│
▼
Stage 1 checkpoint (model + optimizer + architecture metadata)
│
├───────────────┐
▼ ▼
Medical QA instructions Validation / review
│
▼
Full-parameter completion-only SFT (new optimizer)
│
▼
Stage 2 checkpoint → evaluation → human-reviewed limitations
| Topic | Documentation |
|---|---|
| Installation and project setup | Getting Started |
| Decoder, RoPE, GQA, RMSNorm, MoE routing | Architecture |
| Model profiles and configuration semantics | Model Configuration |
| Corpora, licensing and filtering | Datasets and Governance |
| Healthcare BPE and token compatibility | Tokenizer |
| Random-initialized Stage 1 | Pretraining from Scratch |
| Full-weight Stage 2 | Medical SFT |
| Saving, loading and continuation | Checkpoints and Resume |
| Quality measurement and safeguards | Evaluation and Validation |
| Tests and repeatability | Testing and Reproducibility |
| Experimental context claims | Long Context and Limitations |
| Known failure modes | Troubleshooting |
| Source code navigation | Repository Map |
The repository contains Mixtral-style architecture code, not official Mixtral weights or a reproduction of the original model's training run. The supplied single-process training profile has 38,779,008 total parameters according to its reported SFT log. The repository also contains larger model configuration examples; configuration presence alone does not establish pretrained weights, successful large-scale training, or medical competence.
The documented example schedule is 5,000 optimizer steps of Stage 1 pretraining followed by 2,000 optimizer steps of full-parameter medical SFT. These are workflow parameters; completion and metrics should always be established from saved manifests/checkpoints and evaluation records.
Medical safety: A language-model training pipeline is not a diagnostic device. Cross-entropy, perplexity, and software tests do not demonstrate clinical validity. Do not use model output for clinical decisions without qualified human review and appropriate validation.
- High-Level Design (HLD) — end-to-end healthcare pretraining and SFT workflow
- Low-Level Design (LLD) — native decoder, attention, MoE and optimizer
Foundations
Data and Training
Operation and Quality
- Checkpoints and Resume
- Evaluation and Validation
- Testing and Reproducibility
- Troubleshooting
- Long Context and Limitations
Architecture diagrams