MUMU-DADA/dsh-cot-translate ↗★ 0
dsh-cot-translate
Display-layer translation of DSH reasoning with local-model-first translation and multilingual UI. 适合需要将思考过程翻译为中文,且偏好本地轻量模型推理的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MUMU-DADA/dsh-cot-translate本地模型加速配置(推荐)
本地推理使用 llama.cpp 官方免安装二进制文件 llama-server——无需安装器、没有系统托盘图标、不开机自启、删文件夹即卸载:
- 下载运行环境:前往 ggml-org/llama.cpp Releases 下载对应系统的压缩包(例如 Windows 显卡推荐下载 Vulkan 版
llama-*-bin-win-vulkan-x64.zip,仅约 35MB,无需安装庞大的 CUDA 工具包),解压到:- Windows:
%USERPROFILE%\tools\llama.cpp\ - macOS / Linux:
~/tools/llama.cpp/
- Windows:
- 准备模型文件:
- 默认保底模型位于
/models/Hy-MT2-1.8B-Q4_K_M.gguf(约 1.08GB,来自 tencent/Hy-MT2-1.8B-GGUF);如果缺失,可以直接在插件设置页点击「下载」或「更新」。 - 在设置页下载的其它可选模型(1.8B Q8 / 7B Q4)会自动存放在
~/.dsh/cot-translate/models/。
- 默认保底模型位于
- 全自动按需启动:你不需要手动去跑命令行启动服务。当需要翻译时,插件会自动在后台无窗口拉起
llama-server(带--no-webui参数,默认监听127.0.0.1:28457)。在主流 10GB 级独显上,1.8B 模型热调用仅需约 50ms/段。
默认不会联网:本机没有可用模型时,插件直接显示原文。只有你在设置页显式开启「允许在线翻译(Google)」后,才会用免费的 Google 翻译兜底。