返回排行榜

dvmazur/mixtral-offloading

Python

Run Mixtral-8x7B models in Colab or consumer desktops

colab-notebookdeep-learninggoogle-colablanguage-modelllmmixture-of-expertsoffloadingpytorchquantization
Star 增长趋势
Star
2.3k
Forks
226
周增长
Issues
21
1k2k
2023年12月2024年10月2025年9月2026年7月
制品库PyPIpip install mixtral-offloading
README

Mixtral 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 Open In Colab

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
相关仓库
DrewThomasson/ebook2audiobook

Generate audiobooks from e-books, voice cloning & 1158+ languages!

PythonPyPIApache License 2.0audiobooksdocker
19.6k1.6k
camenduru/stable-diffusion-webui-colab

stable diffusion webui colab

Jupyter NotebookThe Unlicensestable-diffusionstable-diffusion-web-ui
15.9k2.6k
advimman/lama

🦙 LaMa Image Inpainting, Resolution-robust Large Mask Inpainting with Fourier Convolutions, WACV 2022

Jupyter NotebookApache License 2.0inpaintinginpainting-methods
advimman.github.io/lama-project/
10.1k1.1k
Charmve/computer-vision-in-action

A computer vision closed-loop learning platform where code can be run interactively online. 学习闭环《计算机视觉实战演练:算法与应用》中文电子书、源码、读者交流社区(持续更新中 ...) 📘 在线电子书 https://charmve.github.io/computer-vision-in-action/ 👇项目主页

Jupyter NotebookOthertutorialcharmve
charmve.github.io/L0CV-web
2.9k405
6drf21e/ChatTTS_colab

🚀 一键部署(含离线整合包)!基于 ChatTTS ,支持流式输出、音色抽卡、长音频生成和分角色朗读。简单易用,无需复杂安装。

PythonPyPIchatttscolab-notebook
2.6k324
camenduru/text-generation-webui-colab

A colab gradio web UI for running Large Language Models

Jupyter NotebookThe Unlicensecolabcolab-notebook
2.1k357
Curt-Park/rainbow-is-all-you-need

Rainbow is all you need! A step-by-step tutorial from DQN to Rainbow

PythonPyPIMIT Licensepytorchreinforcement-learning
2k353
trekhleb/machine-learning-experiments

🤖 Interactive Machine Learning experiments: 🏋️models training + 🎨models demo

Jupyter NotebookMIT Licensemachine-learningjavascript
trekhleb.dev/machine-learning-experiments/
1.8k330
tugstugi/dl-colab-notebooks

Try out deep learning models online on Google Colab

Jupyter Notebookcolab-notebookdeep-learning
1.8k460
yoshitomo-matsubara/torchdistill

A coding-free framework built on PyTorch for reproducible deep learning studies. PyTorch Ecosystem. 🏆26 knowledge distillation methods presented at TPAMI, CVPR, ICLR, ECCV, NeurIPS, ICCV, AAAI, etc are implemented so far. 🎁 Trained models, training logs and configurations are available for ensuring the reproducibiliy and benchmark.

PythonPyPIMIT Licenseknowledge-distillationpytorch
yoshitomo-matsubara.net/torchdistill/
1.6k145
camenduru/text-to-video-synthesis-colab

Text To Video Synthesis Colab

Jupyter NotebookThe Unlicensecolabcolab-notebook
1.5k184
fraunhoferportugal/tsfel

An intuitive library to extract features from time series.

PythonPyPIBSD 3-Clause "New" or "Revised" Licensefeature-extractionclassification
tsfel.readthedocs.io
1.1k156