Skip to content

Commit ce30368

Browse files
committed
feat: doubao support
1 parent 9174df9 commit ce30368

File tree

19 files changed

+327
-464
lines changed

19 files changed

+327
-464
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
artifact_suffix: macos-arm64
2727

2828
# macOS Intel
29-
- os: macos-13 # Use macos-13 for Intel as per original config
29+
- os: macos-15-intel # Use macos-13 for Intel as per original config
3030
arch: x64
3131
os_build_arg: mac
3232
addon_name: addon-macos-x64.node
@@ -78,23 +78,23 @@ jobs:
7878
cuda_opt: 'generic'
7979
artifact_suffix: windows-x64-cuda1220-generic
8080

81-
# Windows CUDA 12.4.1 optimized
81+
# Windows CUDA 12.4.0 optimized
8282
- os: windows-2022
8383
arch: x64
8484
os_build_arg: win
85-
addon_name: addon-windows-cuda-1241-optimized.node
86-
cuda_version: '12.4.1'
85+
addon_name: addon-windows-cuda-1240-optimized.node
86+
cuda_version: '12.4.0'
8787
cuda_opt: 'optimized'
88-
artifact_suffix: windows-x64-cuda1241-optimized
88+
artifact_suffix: windows-x64-cuda1240-optimized
8989

90-
# Windows CUDA 12.4.1 generic
90+
# Windows CUDA 12.4.0 generic
9191
- os: windows-2022
9292
arch: x64
9393
os_build_arg: win
94-
addon_name: addon-windows-cuda-1241-generic.node
95-
cuda_version: '12.4.1'
94+
addon_name: addon-windows-cuda-1240-generic.node
95+
cuda_version: '12.4.0'
9696
cuda_opt: 'generic'
97-
artifact_suffix: windows-x64-cuda1241-generic
97+
artifact_suffix: windows-x64-cuda1240-generic
9898

9999
steps:
100100
- name: Check out Git repository

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
因为本人使用的是苹果芯片,缺少 window CUDA 的开发环境,对于 CUDA 的支持,开发测试都存在较多场景无法兼顾的情况。
5050

51-
- 目前提供了 CUDA 11.8.0 和 12.2.0 及 12.4.1 版本的编译,是通过 github action 自动编译的,可能存在环境的兼容问题
51+
- 目前提供了 CUDA 11.8.0 和 12.2.0 及 12.4.0 版本的编译,是通过 github action 自动编译的,可能存在环境的兼容问题
5252
- 要启用 CUDA,需要确定自己的电脑支持 CUDA, 并安装了 CUDA toolkit. [CUDA download](https://developer.nvidia.com/cuda-downloads)
5353
- CUDA toolkit 的版本理论上是向后兼容,请根据你显卡支持的版本,选择合适的版本
5454
- 如果下载 generic 使用有问题,可以下载 optimized 版本,这个版本是针对各个系列显卡的优化版本,兼容性更强
@@ -96,7 +96,7 @@ SmartSub 现在支持为每个 AI 翻译服务配置自定义参数,让您能
9696
| 系统 | 芯片 | 显卡 | 下载安装包 |
9797
| ------- | ----- | ----------------------- | ---------------------- |
9898
| Windows | x64 | CUDA >= 11.8.0 < 12.0.0 | windows-x64_cuda11.8.0 |
99-
| Windows | x64 | CUDA >= 12.4.1 | windows-x64_cuda12.4.1 |
99+
| Windows | x64 | CUDA >= 12.4.0 | windows-x64_cuda12.4.0 |
100100
| Windows | x64 | CUDA >= 12.2.0 | windows-x64_cuda12.2.0 |
101101
| Windows | x64 | 无 CUDA | windows-x64_no_cuda |
102102
| Mac | Apple | 支持 CoreML | mac-arm64 |

README_EN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ This application retains all the features of the original [VideoSubtitleGenerato
4949

5050
Because I use an Apple Silicon chip, I lack a Windows CUDA development environment. For CUDA support, there are many scenarios that are difficult to cover both in development and testing.
5151

52-
- Currently, CUDA 11.8.0 and 12.4.1 versions are provided through GitHub Actions, which may have compatibility issues with the environment
52+
- Currently, CUDA 11.8.0 and 12.4.0 versions are provided through GitHub Actions, which may have compatibility issues with the environment
5353
- To enable CUDA, you need to determine if your computer supports CUDA and has installed the CUDA toolkit. [CUDA download](https://developer.nvidia.com/cuda-downloads)
54-
- The version of the CUDA toolkit theoretically supports backward compatibility. Please choose the appropriate 11.8.0 or 12.4.1 version based on your graphics card support
54+
- The version of the CUDA toolkit theoretically supports backward compatibility. Please choose the appropriate 11.8.0 or 12.4.0 version based on your graphics card support
5555
- If you have problems downloading generic usage, you can download optimized Version, which is optimized for better compatibility across a variety of graphics card families
5656

5757
## Core ML support
@@ -96,7 +96,7 @@ Please download the appropriate package based on your computer's system, chip, a
9696
| System | Chip | Graphics Card | Download Package |
9797
| ------- | ----- | ----------------------- | ---------------------- |
9898
| Windows | x64 | CUDA >= 11.8.0 < 12.0.0 | windows-x64_cuda11.8.0 |
99-
| Windows | x64 | CUDA >= 12.0.0 | windows-x64_cuda12.4.1 |
99+
| Windows | x64 | CUDA >= 12.0.0 | windows-x64_cuda12.4.0 |
100100
| Windows | x64 | CUDA >= 12.2.0 | windows-x64_cuda12.2.0 |
101101
| Windows | x64 | no CUDA | windows-x64_no_cuda |
102102
| Mac | Apple | support CoreML | mac-arm64 |

docs/docs/advanced/hardware-acceleration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ title: 硬件加速
3232
| -------------------------- | ----------------------- | ---------------- |
3333
| **windows-x64_cuda11.8.0** | CUDA >= 11.8.0 < 12.0.0 | 较老的显卡或系统 |
3434
| **windows-x64_cuda12.2.0** | CUDA >= 12.2.0 | 较新的显卡和系统 |
35-
| **windows-x64_cuda12.4.1** | CUDA >= 12.4.1 | 最新的显卡和系统 |
35+
| **windows-x64_cuda12.4.0** | CUDA >= 12.4.0 | 最新的显卡和系统 |
3636

3737
:::tip 通用版本与优化版本
3838

docs/docs/download.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import TabItem from '@theme/TabItem';
2121
<div className="col col--6" style={{marginBottom: '1rem'}}>
2222
<div className="card">
2323
<div className="card__header">
24-
<h3>Windows (NVIDIA CUDA 12.4.1+)</h3>
24+
<h3>Windows (NVIDIA CUDA 12.4.0+)</h3>
2525
</div>
2626
<div className="card__body">
27-
<p>适用于 Windows x64 系统,需 NVIDIA 显卡及 CUDA Toolkit 12.4.1 或更高版本。</p>
27+
<p>适用于 Windows x64 系统,需 NVIDIA 显卡及 CUDA Toolkit 12.4.0 或更高版本。</p>
2828
</div>
2929
<div className="card__footer">
3030
<a href="https://github.com/buxuku/SmartSub/releases/download/v2.3.7/SmartSub_Windows_2.3.7_x64_12.4.1_optimized.exe" className="button button--primary button--block">

docs/docs/intro/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ title: 下载与安装
2828
| 系统 | 芯片 | 显卡 | 下载安装包 |
2929
| ------- | ----- | ----------------------- | ---------------------- |
3030
| Windows | x64 | CUDA >= 11.8.0 < 12.0.0 | windows-x64_cuda11.8.0 |
31-
| Windows | x64 | CUDA >= 12.4.1 | windows-x64_cuda12.4.1 |
31+
| Windows | x64 | CUDA >= 12.4.0 | windows-x64_cuda12.4.0 |
3232
| Windows | x64 | CUDA >= 12.2.0 | windows-x64_cuda12.2.0 |
3333
| Windows | x64 | 无 CUDA | windows-x64_no_cuda |
3434
| Mac | Apple | 支持 CoreML | mac-arm64 |

main/helpers/cudaUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function checkCudaSupport() {
2727
logMessage(`cudaVersion: ${cudaVersion}`, 'info');
2828
// 根据CUDA版本选择合适的addon
2929
if (cudaVersion >= 12.0) {
30-
return '12.4.1';
30+
return '12.4.0';
3131
} else if (cudaVersion >= 11.8) {
3232
return '11.8.0';
3333
}

main/helpers/providerManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
import { store } from './store';
77
import { logMessage } from './logger';
88

9-
const CURRENT_PROVIDER_VERSION = 10; // 添加了structuredOutput字段,需要更新版本号
9+
const CURRENT_PROVIDER_VERSION = 11; // 添加了structuredOutput字段,需要更新版本号
1010

1111
export async function getAndInitializeProviders(): Promise<Provider[]> {
1212
try {

0 commit comments

Comments
 (0)