Views
No views yet
This is a base language model, not a chat model. It continues text; it does not answer questions and never stops on its own. For something that responds, use joey00072/ohara-moe-chat-d12.
| Total parameters | 332M |
| Active per token | 85M |
| Sparsity | 3.9x |
| Layers / hidden / heads | 12 / 768 / 6 |
| Context | 2048 |
| Vocabulary | 50,304 |
up (1024,768), gate (1024,768), down (768,1024) = 2.36M each,
18.87M per layer, 226.6M across the model (68% of all parameters).| val bits/byte | dense | MoE |
|---|---|---|
| step 250 | 1.1900 | 1.1703 |
| step 1000 | 1.0370 | 1.0170 |
| step 2000 | 0.9458 | 0.9280 |
| final (2827) | 0.9062 | 0.8887 |
model.safetensors, config.json, tokenizer. config.json records
moe_experts_per_tok, which cannot be recovered from tensor shapes -- without
it the weights load correctly but route with the wrong top-k.1import json
2from safetensors.torch import load_file
3from ohara.models.llama import Config, Llama
4
5cfg = json.load(open("config.json"))
6cfg.pop("architecture"); cfg.pop("iteration")
7model = Llama(Config(**cfg))
8model.load_state_dict(load_file("model.safetensors"), strict=False) # rotary rebuildspython examples/train_sft.py --pretrained-checkpoint moe_d12.pt --moe-experts-per-tok 2DEPTH=12 bash runs/speedrun.sh # then add --moe-num-experts 8 --moe-experts-per-tok 2