--- title: Epode MoE family emoji: 馃幖 short_description: Sparse MoE LLMs, 0.5B to 7B, base + chat, from scratch colorFrom: indigo colorTo: blue sdk: static pinned: false --- # Epode **Sparse mixture-of-experts language models, 0.5B to 7B parameters, trained from scratch on a small compute budget, in base and chat versions.** A final-year project at the School of Computer Science, University of Birmingham. | | | |---|---| | **Chat models** | [Note 0.5B](https://huggingface.co/epode-ai/Note-0.5B-Instruct) 路 [Verse 1B](https://huggingface.co/epode-ai/Verse-1B-Instruct) 路 [Canto 3.3B](https://huggingface.co/epode-ai/Canto-3.3B-Instruct) 路 [Saga 7B](https://huggingface.co/epode-ai/Saga-7B-Instruct) | | **Base models** | [Note 0.5B](https://huggingface.co/epode-ai/Note-0.5B-Base) 路 [Verse 1B](https://huggingface.co/epode-ai/Verse-1B-Base) 路 [Canto 3.3B](https://huggingface.co/epode-ai/Canto-3.3B-Base) 路 Saga 7B (not released separately) | | **Collections** | [Epode MoE Instruct](https://huggingface.co/collections/Epode/epode-moe-instruct-6b0c83cce9f55342c4795a73) 路 [Epode MoE Base](https://huggingface.co/collections/Epode/epode-moe-base-6b01d7a611bad297ae7f59e3) 路 [Early dense models](https://huggingface.co/collections/Epode/early-dense-models-6b0c83d57044f891324b6d42) 路 [Other projects](https://huggingface.co/collections/Epode/other-projects-6b0c83d654d233d3f59d6e0a) | --- ## Chat models (Instruct) Greedy decoding, native chat format, the model's own stop tokens; our own harness. | Model | Total / active | IFEval (prompt strict) | Multi-turn constraints (MTC) | Multi-IF | Natural stop | GSM8K (chat) | HumanEval+ | MBPP+ | |---|---|--:|--:|--:|--:|--:|--:|--:| | [Note 0.5B](https://huggingface.co/epode-ai/Note-0.5B-Instruct) | 0.49B / 0.17B | 47.1 | 35.4 | 37.4 | 99.0 | 6.6 | 14.0 | 20.1 | | [Verse 1B](https://huggingface.co/epode-ai/Verse-1B-Instruct) | 1.12B / 0.31B | 49.0 | 60.0 | 43.0 | 98.3 | 25.5 | 22.0 | 35.7 | | [Canto 3.3B](https://huggingface.co/epode-ai/Canto-3.3B-Instruct) | 3.30B / 0.87B | 58.4 | 55.4 | 48.9 | 98.3 | 47.8 | 38.4 | 45.8 | | **[Saga 7B](https://huggingface.co/epode-ai/Saga-7B-Instruct)** | 6.93B / 1.39B | **70.8** | **79.2** | **57.0** | **99.0** | **68.7** | **47.0** | **53.2** | Post-training: supervised fine-tuning, on-policy preference optimisation against repetition and non-stopping, and rounds of preference optimisation with a verifiable instruction-following reward. Details are in each model card. ## Base models | Model | Total / active params | Tokens | avg8 | MMLU | MMLU-Pro | GSM8K | HumanEval | MBPP | |---|---|---|--:|--:|--:|--:|--:|--:| | [Note 0.5B](https://huggingface.co/epode-ai/Note-0.5B-Base) | 0.49B / 0.17B | 47B | 58.44 | 35.66 | 11.79 | 5.00 | 15.24 | 6.80 | | [Verse 1B](https://huggingface.co/epode-ai/Verse-1B-Base) | 1.12B / 0.31B | 54B | 63.05 | 41.08 | 12.62 | 20.62 | 14.63 | 15.80 | | [Canto 3.3B](https://huggingface.co/epode-ai/Canto-3.3B-Base) | 3.30B / 0.87B | 112B | 67.35 | 47.22 | 19.44 | 42.68 | 18.90 | 30.80 | | **Saga 7B** (base of Saga-7B-Instruct) | 6.93B / 1.39B | 106B | **70.89** | **55.38** | **32.87** | **65.35** | **34.76** | **44.60** | ![Epode Saga 7B against public base models of the same size tier](https://huggingface.co/spaces/Epode/README/resolve/main/bars_saga.png) Saga 7B base compared with public base models of 6.4B to 7.3B total parameters; every bar comes from the same harness. --- ## Architecture | | | |---|---| | Layers | Sparse MoE blocks: sigmoid-routed experts plus one shared expert | | Attention | Sliding-window layers interleaved with global-attention layers | | Output | Logit soft-cap | | Code | One shared `modeling_epode.py` for all four sizes | | Serving | A hand-written inference engine, and a vLLM plugin for evaluation | ## Quick start ```python from transformers import AutoModelForCausalLM, AutoTokenizer model_id = "epode-ai/Canto-3.3B-Base" # once the repositories are public tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True, torch_dtype="bfloat16", device_map="auto") print(tok.decode(model.generate(**tok("The theory of evolution", return_tensors="pt").to(model.device), max_new_tokens=60)[0])) ``` These are base (completion) models. For chat, use the Instruct models; each Instruct card has a chat example. ## Evaluation - **Harness**: lm-eval 0.4.13, full test sets, greedy decoding. - **avg8**: the mean of eight 0-shot commonsense and science tasks (HellaSwag, ARC-Challenge, ARC-Easy, PIQA, WinoGrande, BoolQ, OpenBookQA, SciQ). - **Other benchmarks**: - MMLU and MMLU-Pro; - GSM8K, 8-shot chain-of-thought; - HumanEval and MBPP (plus their "+" variants), pass@1. ## License and status - **License**: CC BY-NC 4.0, for research use. - **Status**: the model repositories stay private until the project is submitted. --- ## Other models on this account Not part of the Epode MoE family: - **[Early dense models](https://huggingface.co/collections/Epode/early-dense-models-6b0c83d57044f891324b6d42)** - [Prelude-1B-Base](https://huggingface.co/epode-ai/Prelude-1B-Base): a dense Llama-style model with 1.10B parameters, pretrained from scratch on 20B tokens on one NVIDIA L20. - [Lyric-135M](https://huggingface.co/epode-ai/Lyric-135M): 134.5M parameters, about 13B tokens, with continued pretraining and SFT. - Both use a different evaluation harness, so their numbers cannot be compared with the tables above. - **[Other projects](https://huggingface.co/collections/Epode/other-projects-6b0c83d654d233d3f59d6e0a)**: multimodal, video, classification, fine-tunes and datasets.