mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-12-16 17:40:09 +08:00
This commit migrates the project from using NVIDIA CUDA to Intel XPU for GPU acceleration, based on the PyTorch 2.9 release. Key changes include: - Replaced `torch.cuda` with `torch.xpu` for device checks, memory management, and distributed training. - Updated device strings from "cuda" to "xpu" across the codebase. - Switched the distributed training backend from "nccl" to "ccl" for Intel GPUs. - Disabled custom CUDA kernels in the `BigVGAN` module by setting `use_cuda_kernel=False`. - Updated `requirements.txt` to include `torch==2.9` and `intel-extension-for-pytorch`. - Modified CI/CD pipelines and build scripts to remove CUDA dependencies and build for an XPU target.
34 lines
958 B
YAML
34 lines
958 B
YAML
name: Build and Upload Windows Package
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
date:
|
|
description: "Date suffix (optional)"
|
|
required: false
|
|
default: ""
|
|
suffix:
|
|
description: "Package name suffix (optional)"
|
|
required: false
|
|
default: ""
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
env:
|
|
MODELSCOPE_USERNAME: ${{ secrets.MODELSCOPE_USERNAME }}
|
|
MODELSCOPE_TOKEN: ${{ secrets.MODELSCOPE_TOKEN }}
|
|
HUGGINGFACE_USERNAME: ${{ secrets.HUGGINGFACE_USERNAME }}
|
|
HUGGINGFACE_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
|
|
DATE_SUFFIX: ${{ github.event.inputs.date }}
|
|
PKG_SUFFIX: ${{ github.event.inputs.suffix }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run Build and Upload Script
|
|
shell: pwsh
|
|
run: |
|
|
Move-Item .github/build_windows_packages.ps1 ../build_windows_packages.ps1
|
|
../build_windows_packages.ps1 |