项目文件夹

文件
wehub-resource-sync eec33d25b2
Build Wheel / build (3.11) (push) Failing after 1s
Build Wheel / build (3.12) (push) Failing after 0s
pre-commit / pre-commit (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:29:08 +08:00

1.5 KiB

--8<-- [start:requirements]

  • GPU: Moore Threads GPU with MUSA SDK installed (validated on MTT S5000)

--8<-- [end:requirements]

--8<-- [start:set-up-using-python]

vLLM-Omni for MUSA requires building from source. Pre-built wheels are not currently available.

!!! note MUSA platform requires vLLM-MUSA to be installed first.

--8<-- [start:pre-built-wheels]

--8<-- [end:pre-built-wheels]

--8<-- [start:build-wheel-from-source]

Prerequisites

  • MUSA SDK: Download from MUSA SDK Download
  • torchada: CUDA→MUSA compatibility layer for PyTorch (pip install torchada)
  • mthreads-ml-py: MTML Python bindings (pip install mthreads-ml-py)
  • MATE: MUSA AI Tensor Engine (GitHub)

Installation of vLLM-MUSA

git clone https://github.com/MooreThreads/vllm-musa.git
cd vllm-musa
git checkout v0.18.0-dev
pip install . --no-build-isolation -v

Installation of vLLM-Omni

git clone https://github.com/vllm-project/vllm-omni.git
cd vllm-omni
VLLM_OMNI_TARGET_DEVICE=musa pip install -e . --no-build-isolation

For Gradio demos:

pip install -e '.[demo]' --no-build-isolation

Environment Variables

export MUSA_VISIBLE_DEVICES=0,1
export VLLM_WORKER_MULTIPROC_METHOD=spawn
export VLLM_MUSA_CUSTOM_OP_USE_NATIVE=false

--8<-- [end:build-wheel-from-source]

--8<-- [start:build-docker]

--8<-- [end:build-docker]

--8<-- [start:pre-built-images]

--8<-- [end:pre-built-images]