Ascend/msagent / skills/quantizer/msmodelslim-anti-outlier-adapt
msmodelslim-anti-outlier-adapt
Verified在基础模型适配完成后,按算法适配并安装 Adapter 接口,依据目标模型真实 forward 生成并验证 final-logits patch,执行单算法 msModelSlim 离群值抑制变换、官方计算图提取和浮点 logits 门禁。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.4 KB |
| references/architecture-analysis.md | markdown | 1.8 KB |
| references/audit-report.md | markdown | 763 B |
| references/interface-quick-reference.md | markdown | 14.4 KB |
| references/quarot-adaptation.md | markdown | 1.3 KB |
| references/smoothing-adaptation.md | markdown | 1.5 KB |
| references/topology-patterns.md | markdown | 806 B |
| references/validation.md | markdown | 6.0 KB |
| scripts/apply_one_anti_outlier.py | script | 43.5 KB |
| scripts/compare_final_logits.py | script | 31.3 KB |
| scripts/validate_anti_outlier_interfaces.py | script | 8.1 KB |
references/smoothing-adaptation.md
View on GitHub# Smoothing-family 图关系参考
接口方法和可复制的最小实现先看
[interface-quick-reference.md](interface-quick-reference.md);本文件只补充 Smooth 系列的拓扑核对项。
参考各 processor 接口需要表达的图关系:
| Processor | 接口 |
|---|---|
| `flex_smooth_quant`, `flex_awq_ssz` | `FlexSmoothQuantInterface` |
| `iter_smooth` | `IterSmoothInterface` |
| `smooth_quant` | `SmoothQuantInterface` |
| `oasq` | `OASQInterface` |
从官方 `ComputationGraph` 分析 norm-linear、OV、up-down、linear-linear 或有充分理由的
non-fusion 关系。
官方计算图核对应覆盖:
- 接口所需关系是否可由当前拓扑表达;
- 代表性 source/target 对及支持的 subgraph 类型;
- 从源码推导的 channel dimension 和专用元数据;
- 独立定义的共享输入、dense、routed expert 和 shared expert 覆盖范围;
- 重复/冲突条目以及 include/exclude 的效果;
- 无法静态确认的动态关系与限制。
本阶段固定适配默认 smoothing 算法:完成必要 `AdapterConfig` 映射、调用对应 processor,
并按 `validation.md` 比较变换前后浮点模型最终 logits。不得追加线性量化 processor,也
不得生成 Practice。
默认配置从 msModelSlim 自带 `expert_experience.yaml` 的同名 `*_default` 模板读取。
`flex_awq_ssz_default.qconfig` 是该算法内部调用真实 quantizer 估计平滑误差的必填参数;
保留它不等于运行 `linear_quant`,独立校验的前后模型仍均为浮点模型。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |