Vmarcelo49/dsh-local-models0

dsh-local-models

DSH 插件:提供本地模型设置标签页,用于启动和停止与 DSH 宿主进程共存的 llama-server 子进程,并将其注册到模型选择器中。

AI 分析

核心用途是便捷地在本地加载和运行 GGUF 格式的开源模型。适合需要在本地离线运行大模型、微调上下文及草稿头参数的开发者。

包名
dsh-local-models
版本
0.2.0
许可证
MIT
最近更新
2026年9月5日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Vmarcelo49/dsh-local-models

Usage

  1. Choose GGUF… — pick a model file (Home / Models shortcuts, Up navigation).
  2. Tune context, Max MTP head (fixed draft; capped at 3 — deeper collapses at large ctx), thinking level, optional mmproj and MoE settings.
  3. Load model, watch the status card, inspect output via Open terminal.
  4. Register in dsh — the route (default local-) appears in the Models picker.
  5. Alternatively, save profiles and Start router (from profiles) for a multi-model endpoint.

Configuration

VariableDefaultMeaning
LOCAL_MODELS_PORT8080llama-server port
LOCAL_MODELS_BIN~/Projetos/llama.cpp/build/bin/llama-serverserver binary
LOCAL_MODELS_SHORTCUTS/mnt/raid0/GGUFcolon-separated file-browser shortcut dirs (name=path for custom labels)
LOCAL_MODELS_MMPROJ_CPU1vision projector weights in RAM (0 = offload to GPU)
LOCAL_MODELS_ROUTER_MAX1max simultaneously resident router models
LOCAL_MODELS_MAX_IMAGE_BYTES10485760vision image guard
LOCAL_MODELS_IMAGE_PIXEL_BUDGET4194304vision pixel budget
DSH_HOME~/.dshdata dir (local-models/profiles.json, llama-server.log)

Launch flags are fixed to the validated daily config: full offload, -b 2048 -ub 512 -t 4 -np 1, --flash-attn on --kv-unified, --cache-type-k q8_0 --cache-type-v q4_0, MTP --spec-type draft-mtp --spec-draft-n-max N --spec-draft-p-min 0.75 (dropped above 131072 ctx).