deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:princepainter/dsh-gpu-cleanup
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个 DeepSeek Harness(DSH)Web UI 插件:在对话页右上角(Session log 按钮旁)添加一个 「释放显存」 按钮,一键卸载本地 Ollama(及任意 OpenAI 兼容服务)已加载的模型,把 GPU 显存腾出来给 ComfyUI / SDXL / 其他 GPU 任务使用。
典型场景:用 DSH 跑完一个本地模型任务后,模型仍驻留在显存里,直接去开 ComfyUI 会 OOM。点一下按钮即可卸载,无需重启 DSH。
A DeepSeek Harness Web UI plugin that adds a "Release GPU" button next to the Session log button, unloading local Ollama (and any OpenAI-compatible) models on demand to free VRAM for ComfyUI / SDXL and other GPU workloads.
settings.yaml 读取 provider 配置,自动识别 Ollama 端点(含 :11434 端口或名字含 ollama)http://127.0.0.1:11434dsh plugin --profile web add github:princepainter/dsh-gpu-cleanup
mkdir -p ~/.dsh/profiles/node_modules/@princepainter
cd ~/.dsh/profiles/node_modules/@princepainter
git clone https://github.com/princepainter/dsh-gpu-cleanup.git
然后在 ~/.dsh/profiles/web/cordis.patch.yml 里注册插件:
- insert:
- id: gpu-cleanup
name: '@princepainter/dsh-gpu-cleanup'
安装后重启 DSH,然后 强制刷新(Ctrl+Shift+R)浏览器页面,即可在对话页右上角看到「释放显存」按钮。
http://127.0.0.1:3080)done_reason=unload,显存即已释放插件调用 Ollama 的 API 卸载模型:
# 1. 查询当前已加载的模型
GET http://127.0.0.1:11434/api/ps
# 2. 对每个模型发送卸载请求(keep_alive: 0 = 立即卸载)
POST http://127.0.0.1:11434/api/generate
{ "model": "qwen3.8-27b:latest", "keep_alive": 0 }
# => { "done": true, "done_reason": "unload" }
Ollama 返回 done_reason: "unload" 即代表模型已从显存卸载。
本插件遵循 DSH 的「一切皆插件」架构,是一个 dual-face 包:
| 文件 | 作用 |
|---|---|
lib/index.js |
Node 端占位(host half),保证 Cordis loader 可导入 |
lib/client.js |
浏览器端(client half),渲染按钮并注入到 conversation.session.header.utilities slot |
lib/invariant.js |
Invariant 占位,满足 DSH dual-face 协议 |
按钮通过 DSH 的 slot 系统注入,与官方「Session log」按钮同属 conversation.session.header.utilities slot,风格自动保持一致。
v0.1.0-rc.6(开发者预览版)CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。