Repository navigation
Model Configuration
Model behavior is controlled by a JSON file parsed by ModelConfig.
The training configuration associated with the documented 38,779,008-parameter SFT run uses the following architecture values. These are exactly the values in the repository's configs/healthcare_moe_single.json, which the commands in this Wiki use.
{
"vocab_size": 30001,
"hidden_size": 384,
"num_layers": 4,
"num_heads": 6,
"num_kv_heads": 2,
"intermediate_size": 768,
"num_experts": 4,
"top_k": 2,
"max_seq_len": 2048,
"rope_theta": 1000000.0,
"attention_mode": "global",
"sliding_window": 4096,
"attention_chunk": 128,
"aux_loss_coef": 0.02,
"gradient_checkpointing": true
}Compatibility contract: The above vocabulary size and architecture are not universal defaults. Confirm that these values match the exact tokenizer and checkpoint being used. Do not edit the tokenizer vocabulary after pretraining without reworking the embedding and checkpoint compatibility.
| Field | Purpose |
|---|---|
vocab_size |
Embedding/output-vocabulary size; must equal tokenizer size |
hidden_size |
Residual stream width |
num_layers |
Number of decoder blocks |
num_heads / num_kv_heads
|
Query-head count and shared KV-head count |
intermediate_size |
Hidden width inside each SwiGLU expert |
num_experts / top_k
|
Available experts and active experts per token |
rope_theta |
RoPE frequency scale |
attention_mode |
global or sliding
|
max_seq_len |
Configured maximum position index, not proof of trained context quality |
aux_loss_coef |
Routing load-balancing regularization coefficient |
gradient_checkpointing |
Recompute selected activations during backward pass |
The repository also contains illustrative larger-scale presets such as healthcare_moe_1b.json and healthcare_mixtral_8x7b.json. They are architecture descriptions, not evidence of trained model weights.
python -c "from mixtral_lab.config import ModelConfig; print(ModelConfig.from_json('configs/healthcare_moe_single.json'))"
python -c "from tokenizers import Tokenizer; t=Tokenizer.from_file('artifacts/healthcare_tokenizer.json'); print(t.get_vocab_size())"Keep one configuration, one tokenizer, and a clear manifest tied to each checkpoint lineage.
Foundations
Data and Training
Operation and Quality
- Checkpoints and Resume
- Evaluation and Validation
- Testing and Reproducibility
- Troubleshooting
- Long Context and Limitations
Architecture diagrams