Skip to content

Ascend/msagent / skills/quantizer/msmodelslim-adapter-verification

msmodelslim-adapter-verification

Verified

为 msModelSlim 适配器执行功能性验证。适用于基础适配器开发完成后,自动执行四步验证(测试模型、全回退量化、权重一致性与可加载/保存、实际量化规则校验)并输出通过/失败结论。

references/dit/fallback_config.yaml

View on GitHub
# DiT 全回退量化模板(apiversion: multimodal_sd_modelslim_v1)
#
# step2 用:include/exclude 全选 → 不量化任何层,只验证「适配器注册 + 量化流程 + 保存」链路。
# 三条硬约束、inference_config 填写详见同目录 README.md。
# 占位符 _CALIB_DATASET_ 由 scripts/step2_run_quantization_dit.py 替换;手工使用请自行替换。

apiversion: multimodal_sd_modelslim_v1

spec:
  dataset: "_CALIB_DATASET_"  # 必填字符串。三种可用形态见 README.md「三条硬约束 #1」

  process:
    - type: "linear_quant"
      qconfig:
        act:
          scope: "per_token"     # int8 → per_token(mxfp8 才用 per_block)
          dtype: "int8"
          symmetric: True
          method: "minmax"
        weight:
          scope: "per_channel"   # int8 → per_channel
          dtype: "int8"
          symmetric: True
          method: "minmax"
      include: ["*"]
      exclude: ["*"]             # 全部回退

  save:
    - type: "mindie_format_saver"  # DiT 用 MindIE-SD(LLM/VLM 是 ascendv1_saver)
      part_file_size: 0            # 0 = 不分文件

  multimodal_sd_config:
    dump_config:
      enable_dump: false           # 全回退不消费校准数据,短路 prepare_calib_data(不走浮点 dump)
      capture_mode: "args"
      dump_data_dir: ""            # 留空 → 默认落到 save_path

    inference_config: {}           # 全回退可留空;step4 必须按目标推理仓补齐(README.md)
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall