#3286 配音阶段出错 [Qwen3-TTS(本地)] CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at s

167.253* Posted at: 11 hours ago 👁11

配音阶段出错 [Qwen3-TTS(本地)] CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with TORCH_USE_CUDA_DSA to enable device-side assertions. concurrent.futures.process._RemoteTraceback:

1 Replies

这是由于 Qwen3-TTS 本地模型在 CUDA 环境下运行时触发了设备端断言错误,通常与模型加载、数据格式或 CUDA 环境不匹配有关。

解决方案:

  1. 升级软件版本:根据知识库 6.7 条,如果软件版本低于 v3.97,请先升级到 v3.97 或更高版本,此问题可能已被修复。
  2. 检查 CUDA 环境:确保你的 NVIDIA 显卡驱动、CUDA 12.8 和 cuDNN 9.x 已正确安装并配置了环境变量。在 CMD 中运行 nvcc -Vnvidia-smi 进行验证。
  3. 设置环境变量(调试):按照错误提示,在运行软件前,设置环境变量 CUDA_LAUNCH_BLOCKING=1。这会使 CUDA 错误同步报告,有助于定位具体出错位置。

    • Windows 预打包版:可以尝试在启动 sp.exe 前,在命令行中设置:set CUDA_LAUNCH_BLOCKING=1,然后从同一命令行窗口启动软件。
    • 源码版:在启动命令前添加,如 set CUDA_LAUNCH_BLOCKING=1 && uv run sp.py (Windows) 或 CUDA_LAUNCH_BLOCKING=1 uv run sp.py (macOS/Linux)。
  4. 检查模型文件:确认 Qwen3-TTS 的本地模型文件已正确下载且完整,没有损坏。如果是从其他来源下载的,请确保其与软件要求的格式兼容。
  5. 降低配置:如果问题持续,尝试在 Qwen3-TTS 的配置中降低参数(如批量大小),或暂时切换到其他 TTS 渠道(如 Edge-TTS)以完成当前任务。

如果以上步骤无法解决,请提供软件 logs 目录下最新的日志文件内容(底部约30行)以便进一步分析。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource