DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Inference Tuning — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
I

@xiciyang/inference-tuning

Inference Tuning

Root-cause-wall-driven inference tuning plugin: diagnose the bottleneck wall → match the TOP1 intervention → perform closed-loop validation of both performance and accuracy → if successful, output a reusable configuration; if unsuccessful, automatically roll back

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:xiciyang/inference-tuning#dc50aa7638b48106238c7afce1a08a2235bc0b87
READMECompatibilityVersions

Compatibility and provenance

Inference Tuning is published as @xiciyang/inference-tuning and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/19/2026

Versions

0.1.0stable
10/19/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
Apache-2.0
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/19/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseExperimental Inspector@deepseek-ai/dsh-experimental-inspectorExperimental cross-realm CDP hub for Host debugging and Client Runtime inspection

README

@xiciyang/inference-tuning

给模型 + 性能目标 + 精度容忍,找到根因墙、匹配 TOP1 干预、双闭环验证 —— 通过则输出可复用的优化配置,失败则自动回退。

模型 + 性能目标 + 精度容忍
  → 源模型结构预检(是完整模型吗)
  → 经 inference-serving 起基线端点 → 稳态等待 → 基线测量(性能 + 精度)
  → 根因墙诊断(不是搜参数)
  → 每轮:预注册 → 提案候选配置 → 起候选端点 → 双闭环测量
          → 测量成立性(性能四闸 + 精度三闸)→ 门禁判定
          → 接受(固化)/ 回退(丢弃候选并验证原端点仍健康)
          → 干预无效 → **五因反思**(不直接换参数)
  → 不停机判据(达标与预算耗尽都**不**构成停止理由)
  → 收尾:拆解全部自有端点(验证无残留)+ 注册表 + 报告 + 审计哈希链

设计要点

  • 零运行时依赖(只用 Node 内建模块)
  • 根因墙驱动,不是盲搜参数空间:docs/step0/MIGRATION_PLAN.md §三
  • 分子与分母必须来自本机实测:带宽用实测微基准;"每 token 访存字节"由模型文件实际字节数得出; 任何 spec-sheet / theoretical-peak provenance 会被硬拒绝
  • 每堵墙都能自我否证:反推量 > 实测可达 ⇒ 判分母口径有误,而不是"硬件到顶"
  • 单流天花板带证据链:从实测带宽到上限的每一步都标来源,可被独立复核;必须带实现域限定条件才算"上限"
  • 内存分解不拿系数凑:KV/状态缓存按公式算,缺项一律 null + 缺什么;每个扩容杠杆给出具体释放多少字节
  • 主张门禁:报告里每条承重陈述都要带出处等级(实测/推导/推断/假设),规格书峰值是禁用项, 把推断写成结论口吻会被升格检测拦下
  • 预注册与判定:干预执行之前登记假设与否证条件,执行后只判 confirmed / falsified / inconclusive; 事后补写的"预注册"会被时序检查抓出来
  • 仪器自洽:声称的最小效应若小于测量噪声,该仪器原理上看不见它 —— 这属于"测量不成立",不是"没有效应"
  • 门禁独立:阈值必须由调用方传入或写进 gates.yaml,两者都无则拒绝执行
  • 测量成立性双重门禁:性能四闸(聚合口径 / 稳态 / 时滞 / 统计出处)+ 精度三闸(均匀输出 / 无区分力 / 与输入无关)
  • 端点生命周期交给 serving:本包一行 docker 生命周期命令都不发,只经 MCP 请求 serving
  • 只动自己的端点:存量端点一律只读;回退 = 丢弃候选 + 验证原端点仍健康
  • 回滚失败是独立风险档:写 MUST_NOTIFY.json + 审计 + stderr + 可选 webhook

安装

git clone https://github.com/xiciyang/inference-tuning.git
cd inference-tuning && npm pack
dsh plugin --profile <name> add ./xiciyang-inference-tuning-0.1.0.tgz

尚未发布到 npm(npm install -g 暂不可用);用上面的源码打包路径安装。

作为 DSH 插件:dsh plugin --profile web add <tgz>,重启后生效。

依赖:inference-serving(端点生命周期,通过 MCP)。定位顺序: options.servingPath → ~/.ai-infra/config/serving-path.txt → 同级目录 ../inference-serving → node_modules/。

命名空间:工具一律 inference_tuning_*,路由 /__inference_tuning/health。 dsh-tuning-engine(tuner_* / /__tuner/)当前仍可能挂着,两者可共存不冲突。

快速上手

inference-tuning health --json            # 沙箱三级实测 / serving 可达性 / 审计链 / 必叫事件
inference-tuning analyze --json           # 【只读】墙诊断(零风险,不跑实验)
inference-tuning capabilities             # 能力清单与"明确不做"的事
inference-tuning contract                 # 精度回归契约声明

inference-tuning tune /data/models/Qwen2.5-1.5B-Instruct-verified \
    --max-accuracy-drop-pct 5 --min-perf-gain-pct 20 \
    --test-set ~/.ai-infra/state/datasets/.../test.jsonl \
    --params '{"concurrency_capacity":32}'

inference-tuning list --json              # 调优注册表(五要素完整性)
inference-tuning report <runId> --json    # 完整报告(含墙诊断/每轮证据/反思)
inference-tuning audit-verify --json      # 复算审计哈希链

MCP 工具(7 个)

工具档说明
inference_tuning_analyzeR0只读墙诊断
inference_tuning_tuneR2主闭环
inference_tuning_validateR2对一组已有配置做闭环测量
inference_tuning_rollbackR2回退到上一个已接受配置
inference_tuning_get_reportR0读报告
inference_tuning_listR0列注册表
inference_tuning_healthR0健康检查

精度回归契约

精度回归由两份独立实现(本包 endpoint-logprobs、quantization container-forward)互相校验, 契约放在 docs/parity-contract.md(单一事实来源),由 tests/contract/parity-consistency.test.mjs 做三方一致性断言(契约文件 ⇄ 本包 ⇄ 兄弟包)。不一致 → 测试红 → 不允许发布。

配置

输入说明
--engine <id> / options.engineId必填(无默认)。本包不内置任何引擎的默认值;新引擎通过 PARAM_CATALOG 的 flags.<engine> 扩展
--engine-image引擎镜像(固定到 digest 才算可重放)
--max-accuracy-drop-pct / --min-perf-gain-pct门禁阈值;必须显式给,或写进 gates.yaml,两者都无则拒绝执行
--params语义参数(不是引擎 flag);映射成命令行时才使用所选引擎的 flag 表
--test-set精度对比用的固定评测集
params.servingPath / ~/.ai-infra/config/serving-path.txt定位 inference-serving(端点生命周期全部经 MCP,本包不发 docker 命令)

兼容与解耦

  • Node ≥ 20,Linux/macOS,零运行时依赖(只用 Node 内建模块)。
  • 不绑定引擎:未指定引擎时 buildLaunchArgs 抛 E_ENGINE_NOT_SPECIFIED,绝不回落到某个厂商的 flag 表; 未登记的引擎 → 参数全部跳过并记账(skipped 带原因),不会借用别的引擎的 flag。
  • 不绑定硬件:静态规格表只用于提示该测什么,usable: false 时禁止进入任何天花板分母; 未登记的硬件 → 无规格、无提示,只能靠本机微基准产出实测值。统一内存与独立显存分开建模。
  • 不绑定 serving 实现:只经 MCP 契约调用,路径可配置。
  • 已在 DSH 0.2.0-rc.2 上验证;npm test 为本包自有套件(250 项), 跨仓契约套件单独跑:npm run test:contract(需要 inference-contracts 与兄弟包)。

许可

BSD-3-Clause。见 LICENSE。

明确不做

量化(找 inference-quantization)、通用部署(找 inference-serving)、 改变主模型既有量化格式(硬排除)、算子级改动(本轮不纳入)、 现场模式、Wiki、训练/QAT、推理编排。详见 inference-tuning capabilities。