xiciyang/inference-quantization ↗★ 1

@xiciyang/inference-quantization

Quantize a model checkpoint and prove it: choose a method (default AWQ+INT4), PTQ-calibrate with a leak-free split, pass an independent accuracy gate and a performance gate through real serving endpoints, auto-degrade on failure, and sign off or roll back — fully audited. 适合需要对模型进行量化处理并进行自动化部署验证的专业人员。

패키지
@xiciyang/inference-quantization
호환성
미검증
Cordis peer 범위
*
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 19.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiciyang/inference-quantization

配置

~/.ai-infra/config/gates.yaml(首次运行生成空模板)

version: 1
max_accuracy_drop_pct: null    # null = 未设置 → 调用时必须显式传参
min_perf_gain_pct: null
near_limit_factor: 0.9
coarse_screen:
  min_samples: 200
  relax_factor: 2.0

风险分级 / 网络策略 / headless 三份沿用 inference-serving 已固化的文件。

插件配置(DSH 行内 config)

root / quantImage / outputRoot / calibrationSamples / calibrationSeed / datasetRepo / datasetConfig / maxDegradeSteps / quantTimeoutMs / evalTimeoutMs / servingPath / headless / modelRoots / containerRuntime / exposeAdminTools / logLevel。

未知键、类型不符、maxDegradeSteps < 1 都会加载期响亮失败。


插件配置(DSH 行内 config)

root / quantImage / outputRoot / calibrationSamples / calibrationSeed / datasetRepo / datasetConfig / maxDegradeSteps / quantTimeoutMs / evalTimeoutMs / servingPath / headless / modelRoots / containerRuntime / exposeAdminTools / logLevel。

未知键、类型不符、maxDegradeSteps < 1 都会加载期响亮失败。