Memory-efficient inference for small mixture-of-experts models on consumer hardware.
- LRU expert cache
- Memory-mapped weight loading
- Top-2 routing
- Aux-loss-free router balancing
- Streaming from NVMe
- CPU and GPU support
- PyTorch
- NumPy
pip install -e .
python -m moestream.inference --model ./checkpoints/model
python -m moestream.benchmark --model ./checkpoints/modelsrc/
└── moestream/
├── __init__.py
└── cache/
tests/
├── __init__.py
└── test_smoke.py
MIT