Views
No views yet
tokens → Embedding → Prelude → [Recurrent Block × r] → Coda → LM Head → logits| Component | Source Paper | Description |
|---|---|---|
| SandwichBlock | Huginn (arXiv:2502.05171) | Pre-norm Attn + Pre-norm MLP + Post-norm for recurrent stability |
| LTI Injection | Parcae (arXiv:2604.12946) | Stable state mixing with guaranteed ρ(Ā) < 1 |
| Linear Injection | Huginn | Concatenate state + input, project down |
| Multi-Latent Attention | DeepSeek-V2 (arXiv:2405.04434) | Compressed KV cache (87.5% reduction) |
| Sparse MoE | DeepSeek-V3 | Top-K routed + shared always-active experts |
| Truncated BPTT | Huginn §3.3 | Only backprop through last K recurrence steps |
| Poisson-Lognormal Sampling | Huginn §3.3 | Variable depth per training sample |
| Variant | Params | n_embd | Recurrence | Extensions |
|---|---|---|---|---|
mythos_tiny | 12M | 256 | μ=4 | LTI only |
mythos_140m | 140M | 768 | μ=8 | LTI only |
mythos_370m | 370M | 1024 | μ=8 | LTI only |
mythos_770m | 770M | 1280 | μ=8 | LTI only |
mythos_1b | ~1B | 1536 | μ=16 | LTI + MoE |
mythos_3b | ~3.5B | 2560 | μ=32 | LTI + MLA + MoE |
1from open_mythos_hf import OpenMythosForCausalLM, mythos_tiny
2
3# Create a model
4config = mythos_tiny()
5model = OpenMythosForCausalLM(config)
6
7# Forward pass
8import torch
9input_ids = torch.randint(0, 32000, (1, 128))
10output = model(input_ids=input_ids, labels=input_ids)
11print(f"Loss: {output.loss.item():.4f}")
12print(f"Recurrence steps: {output.num_steps}")python train_mythos.py --variant 140m --max_steps 5000 --batch_size 8| Bug | Original | Fix |
|---|---|---|
| Tokenizer → non-existent model | openai/gpt-oss-20b | Use gpt2 (valid HF tokenizer) |
torch = "2.11.0" | Non-existent version | Compatible with PyTorch 2.x |
mythos_7b missing | Referenced but not defined | Removed from README |
_tied_weights_keys | Wrong format for transformers 5.6+ | Dict format |
load_tokenizer / get_vocab_size | Exported but undefined | Removed from __all__ |
| No tests | None | Full test suite |