Tutel

(โ˜… 1,010)

Tutel MoE: Optimized Mixture-of-Experts Library, Support GptOss/DeepSeek/Kimi-K2/Qwen3 using FP8/NVFP4/MXFP4

  • .gitignore
  • CODE_OF_CONDUCT.md
  • figure.svg
  • LICENSE
  • MANIFEST.in
  • README.md
  • SECURITY.md
  • setup.py
  • SUPPORT.md

๐Ÿš€ Installation Guide

1. Get the code
git clone https://github.com/microsoft/Tutel

Downloads the entire project code from GitHub to your computer.

cd Tutel

Moves into the project folder you just downloaded.

2. Python

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
> pip3 install -U "huggingface_hub[cli]" --upgrade

Installs the Python libraries listed in requirements.txt (or similar).

> python3 -m tutel.examples.oai_request_stream --url '0.0.0.0:8000' --prompt 'Write a Python code of the Quicksort algorithm.'

Runs the Python script (or module).

python3 -m torch.distributed.run --nproc_per_node=8 -m tutel.examples.bandwidth_test --size_mb=256

Runs the Python script (or module).

python3 -m tutel.examples.helloworld --dtype=float32

Runs the Python script (or module).

python3 -m tutel.examples.helloworld --dtype=float32 --use_tensorcore

Runs the Python script (or module).

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation