Intel arc XPU support (#1033)
* XPU support + install docs * update docs with conda necessary lib
This commit is contained in:
parent
23a4beb069
commit
6945784348
@ -26,6 +26,18 @@ pip install -e .
|
|||||||
|
|
||||||
uv sync --python 3.12
|
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
|
!!! 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.
|
The `compile` option is not supported on windows and macOS, if you want to run with compile, you need to install trition by yourself.
|
||||||
|
@ -26,5 +26,18 @@ pip install -e .
|
|||||||
uv sync --python 3.12
|
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
|
!!! warning
|
||||||
`compile` オプションは Windows と macOS でサポートされていません。compile で実行したい場合は、triton を自分でインストールする必要があります。
|
`compile` オプションは Windows と macOS でサポートされていません。compile で実行したい場合は、triton を自分でインストールする必要があります。
|
||||||
|
@ -26,5 +26,18 @@ pip install -e .
|
|||||||
uv sync --python 3.12
|
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
|
!!! warning
|
||||||
`compile` 옵션은 Windows와 macOS에서 지원되지 않습니다. compile로 실행하려면 triton을 직접 설치해야 합니다.
|
`compile` 옵션은 Windows와 macOS에서 지원되지 않습니다. compile로 실행하려면 triton을 직접 설치해야 합니다.
|
||||||
|
@ -26,5 +26,18 @@ pip install -e .
|
|||||||
uv sync --python 3.12
|
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
|
!!! 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.
|
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.
|
||||||
|
@ -26,5 +26,18 @@ pip install -e .
|
|||||||
uv sync --python 3.12
|
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
|
!!! warning
|
||||||
`compile` 选项在 Windows 和 macOS 上不受支持,如果您想使用 compile 运行,需要自己安装 triton。
|
`compile` 选项在 Windows 和 macOS 上不受支持,如果您想使用 compile 运行,需要自己安装 triton。
|
||||||
|
@ -49,6 +49,9 @@ if __name__ == "__main__":
|
|||||||
if torch.backends.mps.is_available():
|
if torch.backends.mps.is_available():
|
||||||
args.device = "mps"
|
args.device = "mps"
|
||||||
logger.info("mps is available, running on 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():
|
elif not torch.cuda.is_available():
|
||||||
logger.info("CUDA is not available, running on CPU.")
|
logger.info("CUDA is not available, running on CPU.")
|
||||||
args.device = "cpu"
|
args.device = "cpu"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user