CoolFace
Apppublic

dipeshmajithia/Mirror-80M-MoE-Chat

sourceHugging Facecc-by-4.0updated 8mo agoView on Hugging Face
2likes
App README

Mirror-MoE-80M

A Sparse Mixture-of-Experts language model optimized for edge devices.

MetricValue
Total Parameters81M
Active Parameters37M (2.2x sparse)
Experts16 Sparse + 1 Shared Anchor
Context512 tokens
Speed (Apple M4)111 tokens/sec

๐Ÿ”ฅ Key Features

  • โ€”Extreme Efficiency: Only 37M parameters compute per token
  • โ€”Mobile-Ready: Runs at 100+ tok/s on Apple Silicon
  • โ€”Dual-Model Selector: Switch instantly between Hybrid (Chat) and Elite (Reasoning) modes in the UI.

๐Ÿ“ฆ Model Selection

select the desired model from the dropdown:

  • โ€”Hybrid: Best for general chat and fact retrieval.
  • โ€”Elite: Best for logic puzzles, math, and instruction following.
FileBest For
mirror_ai_hybrid.safetensorsGeneral Chat + Fact Retrieval
mirror_ai_elite.safetensorsLogic + Instruction Following

๐Ÿ“Š Benchmarks

BenchmarkMirror-MoE-80MPythia-70MRandom
PIQA53.6%56%50%
ARC-Easy32.2%37%25%
HellaSwag25.6%26%25%
Mirror-MoE achieves Pythia-70M-level PIQA with half the compute (37M vs 70M active params).

๐Ÿš€ Quick Start

Apple Silicon (MLX)

bash
pip install mlx tokenizers
python inference.py

PyTorch (CPU/CUDA)

bash
pip install torch safetensors tokenizers
python inference_pytorch.py

๐Ÿ“ Files

FileDescription
mirror_ai_hybrid.safetensorsHybrid model weights (309MB)
mirror_ai_elite.safetensorsElite model weights (309MB)
custom_bpe_32k.jsonBPE tokenizer (32k vocab)
model.pyMLX architecture
model_pytorch.pyPyTorch architecture
inference.pyMLX inference script
inference_pytorch.pyPyTorch inference script

๐Ÿ—๏ธ Architecture

MirrorTransformer (81M total)
โ”œโ”€โ”€ Embedding (16M)
โ”œโ”€โ”€ 8x TransformerBlock
โ”‚   โ”œโ”€โ”€ Attention (RoPE)
โ”‚   โ””โ”€โ”€ MoE Layer
โ”‚       โ”œโ”€โ”€ Shared Expert (512-dim, always active)
โ”‚       โ””โ”€โ”€ 16 Sparse Experts (256-dim, Top-2 routing)
โ””โ”€โ”€ Output Head (16M)

๐Ÿ“œ Citation

Research Paper

[Read the Full Paper on Zenodo](https://zenodo.org/records/18473273)

bibtex
@misc{mirror2026moe,
  title={Mirror-MoE-80M: Anchor-Stabilized Granular Mixture of Experts for Low-Resource Training},
  author={Dipesh Majithia},
  year={2026},
  publisher={Zenodo},
  doi={10.5281/zenodo.18473273},
  url={https://zenodo.org/records/18473273}
}

โš ๏ธ Disclaimer

This is a research model. Outputs may be incorrect or biased. Not for production use without additional safety measures.

๐Ÿ“„ License

CC BY 4.0 - Free to use with attribution to MirrorAI / Dipesh Majithia