yu234567/dsh-llamacpp-studio ↗★ 0
dsh-llamacpp-studio
本地llama.cpp图形化启动台与参数配置 适合需要在本地运行、管理和调试GGUF模型的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yu234567/dsh-llamacpp-studio说明文档
阅读完整 README ↗4. 配置档案
- 「保存配置」写当前表单;
- 「保存为档案」保存整个配置快照,支持多个模型 / 量化 / Router 方案;
- 载入、删除档案;
- 导出 / 导入当前配置 JSON;
- 配置文件路径:
$DSH_HOME/llamacpp-studio/config.json(Windows 默认C:\Users\\.dsh\llamacpp-studio\config.json)。
使用
- 打开侧边栏 llama.cpp 启动台。
- 点 自动检测,确认
llama-server路径和模型目录;也可以手动填。 - 在 模型 页扫描目录,选一个
.gguf;视觉模型再选对应的mmproj。 - 在 快速启动 调整 host / port / ctx / GPU 层数等常用项;需要时到 全部参数 调整。
- 点 启动服务器,等状态变成 运行中。
- 点 打开 Web UI 访问
http://127.0.0.1:8080/;或者把该地址填到 Harness 的 OpenAI 兼容 provider 中。 - 在 运行日志 看加载过程;点 停止服务器 结束进程。
常用场景
单模型 + 视觉
- 启动模式:单模型
- 模型:
...\Qwen2.5-VL-7B-Q4.gguf - mmproj:
...\mmproj-Qwen2.5-VL-7B-f16.gguf - 核心参数:
ctx-size=8192、gpu-layers=all、flash-attn=on
Router 模式(多模型,不重启进程)
- 启动模式:Router(模型目录)
- 模型目录:
E:\models - 在全部参数里按需设置
--models-max、--models-autoload、--no-models-autoload - 注意:Router 模式不传
-m和--mmproj,与 llama.cpp 的 router 语义一致。
多 GPU
gpu-layers=allsplit-mode=layer(或row)tensor-split=3,1main-gpu=0
低显存
gpu-layers设为具体层数- 开启
--fit cache-type-k=q8_0、cache-type-v=q8_0- 需要时把 MoE 权重留在 CPU:
--n-cpu-moe或--cpu-moe