Repository navigation
feat: 一键安装 Qwen GPU 组件,并修复本地大图显示与导出 - #178
Merged
2977094657 merged 6 commits intoOct 6, 2026
Merged
2977094657 merged 6 commits into
2977094657 merged 6 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本 PR 合并两项已授权改进:一键安装 Qwen GPU 运行组件,以及本地原图存在时默认显示、导出仍使用缩略图的问题。
普通 CPU 安装包下载 Qwen 模型后,仍提示缺少 GPU 运行组件,用户无法直接启用。本 PR 在语音设置增加“安装 GPU 组件并启用”:下载固定版本的 Windows wheel,校验 SHA-256,解压到应用数据目录,再实际检查 CUDA 运算和模型加载;成功后才切换模型。支持暂停、续传和重启后继续,失败保留原模型选择。
组件仅由语音子进程加载,CPU 安装包继续排除内置 Torch / Transformers;不要求安装系统 Python 或 CUDA Toolkit。保留外置库动态导入所需的标准库,修正冻结进程传递 TorchVersion 导致父进程导入 Torch 的问题。增加安装异常、取消、清单兼容性回归及 Windows/macOS CI。
验证:
详细验收记录见 docs/qwen-gpu-runtime-2026-10-05.md。正式签名安装包未完成验收:本机缺发布签名证书配置,没有关闭签名要求;冻结桌面验收使用仅供本机测试的未签名应用目录。真实音频、转写文本、日志、组件缓存和构建产物均未提交。
跨平台 CI 还暴露了原有 Windows 模型路径在 macOS 上未去掉目录的问题,现已统一分隔符并增加 POSIX 路径语义回归,公开结果继续只包含模型名。完整前端 node 契约 74 项、桌面打包与安装器契约 63 项及 Nuxt 静态构建也已在最新 main 工作树通过。
本地图片质量修复
当 resource 中已有有效 120×120 缓存时,普通显示和导出会直接返回它,预解密也会跳过相同 MD5 的后续原图;手动加载大图才重新查找本地文件。现统一按实际像素面积比较本地变体,原子保存最高分辨率缓存,保护并发读取与导出复制,只跳过已经比较过且未变化的源文件。hardlink 指向其他目录中的缩略图时,首次显示仍会比较当前会话的原图。保留带序号/额外后缀的旧文件名,以当前会话目录的有界索引发现原图。默认修复不会调用 CDN 或递归扫描整个账号。浏览器 URL 更新缓存版本,并通过 ETag 重新验证,避免旧缩略图继续被缓存。
图片验收:
验收记录:本地图片质量验收。真实图片、账号标识、密钥、测试数据库及日志均未提交。修复使用本机实际存在的最高分辨率图片,不承诺恢复已缺失的原图。
最终提交
4ac879cf6699e8a8ee742afe4e8474477c8e6872的 7 项 CI 全部通过:Windows/macOS 图片专项、Windows/macOS Qwen 组件、Windows/macOS 完整 AI/前端构建/冻结后端,以及 Windows Unicode 安装器检查。当前项目已同步图片修复,78 项图片回归及 8 个子测试再次通过。