dvmazur/mixtral-offloading
dvmazur/mixtral-offloading has 2,334 GitHub stars and 226 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-04 21:49 UTC. Last push 2024-04-08.
Run Mixtral-8x7B models in Colab or consumer desktops
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalMixtral offloading
This project implements efficient inference of Mixtral-8x7B models.
How does it work?
In summary, we achieve efficient inference of Mixtral-8x7B models through a combination of techniques:
- Mixed quantization with HQQ. We apply separate quantization schemes for attention layers and experts to fit the model into the combined GPU and CPU memory.
- MoE offloading strategy. Each expert per layer is offloaded separately and only brought pack to GPU when needed. We store active experts in a LRU cache to reduce GPU-RAM communication when computing activations for adjacent tokens.
For more detailed information about our methods and results, please refer to our tech-report.
Running
To try this demo, please use the demo notebook: ./notebooks/demo.ipynb or
For now, there is no command-line script available for running the model locally. However, you can create one using the demo notebook as a reference. That being said, contributions are welcome!
Work in progress
Some techniques described in our technical report are not yet available in this repo. However, we are actively working on adding support for them in the near future.
Some of the upcoming features are:
- Support for other quantization methods
- Speculative expert prefetching
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,297 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,525 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,239 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
144,962 stars