Intel arc XPU support (#1033)

* XPU support + install docs

* update docs with conda necessary lib
This commit is contained in:
Nacholmo 2025-06-12 06:13:02 -03:00 committed by GitHub
parent 23a4beb069
commit 6945784348
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 67 additions and 0 deletions

View File

@ -26,6 +26,18 @@ pip install -e .
uv sync --python 3.12
```
### Intel Arc XPU support
```bash
conda create -n fish-speech python=3.12
conda activate fish-speech
conda install libstdcxx -c conda-forge
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu
pip install -e .
```
!!! warning
The `compile` option is not supported on windows and macOS, if you want to run with compile, you need to install trition by yourself.

View File

@ -26,5 +26,18 @@ pip install -e .
uv sync --python 3.12
```
### Intel Arc XPU 対応
```bash
conda create -n fish-speech python=3.12
conda activate fish-speech
conda install libstdcxx -c conda-forge
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu
pip install -e .
```
!!! warning
`compile` オプションは Windows と macOS でサポートされていません。compile で実行したい場合は、triton を自分でインストールする必要があります。

View File

@ -26,5 +26,18 @@ pip install -e .
uv sync --python 3.12
```
### Intel Arc XPU 지원
```bash
conda create -n fish-speech python=3.12
conda activate fish-speech
conda install libstdcxx -c conda-forge
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu
pip install -e .
```
!!! warning
`compile` 옵션은 Windows와 macOS에서 지원되지 않습니다. compile로 실행하려면 triton을 직접 설치해야 합니다.

View File

@ -26,5 +26,18 @@ pip install -e .
uv sync --python 3.12
```
### Suporte para Intel Arc XPU
```bash
conda create -n fish-speech python=3.12
conda activate fish-speech
conda install libstdcxx -c conda-forge
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu
pip install -e .
```
!!! warning
A opção `compile` não é suportada no Windows e macOS, se você quiser executar com compile, precisa instalar o triton por conta própria.

View File

@ -26,5 +26,18 @@ pip install -e .
uv sync --python 3.12
```
### Intel Arc XPU 支持
```bash
conda create -n fish-speech python=3.12
conda activate fish-speech
conda install libstdcxx -c conda-forge
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu
pip install -e .
```
!!! warning
`compile` 选项在 Windows 和 macOS 上不受支持,如果您想使用 compile 运行,需要自己安装 triton。

View File

@ -49,6 +49,9 @@ if __name__ == "__main__":
if torch.backends.mps.is_available():
args.device = "mps"
logger.info("mps is available, running on mps.")
elif torch.xpu.is_available():
args.device = "xpu"
logger.info("XPU is available, running on XPU.")
elif not torch.cuda.is_available():
logger.info("CUDA is not available, running on CPU.")
args.device = "cpu"