界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

twin_uniform_quantization

twin_uniform_quantization

【开发与工程】Use this skill to apply PTQ4ViT twin uniform quantization to post-softmax or post-GELU activations with range flags.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: twin_uniform_quantization description: Use this skill to apply PTQ4ViT twin uniform quantization to post-softmax or post-GELU activations with range flags.

Twin Uniform Quantization

Use this skill when a recovery or implementation task needs the PTQ4ViT capability described in the module plan. Do not use it to claim full ImageNet accuracy without an actual model, dataset, and evaluation command.

Inputs

  • Numeric calibration tensors or an attempt directory, depending on the script.
  • Explicit bit width, candidate scales, and runtime/source-boundary constraints.

Outputs

  • Deterministic numeric traces suitable for validation.
  • JSON-compatible metadata that downstream recovery can inspect.

Workflow

  1. Read the module contract and pass only bounded local tensors or attempt artifacts.
  2. Run the script in scripts/ or import its pure functions.
  3. Validate outputs with the tests in tests/.
  4. Record commands and artifacts in the Distiller attempt when used for recovery.

Validation

Run python validate_skill_tree.py <skill_dir> --run-tests from the Distiller module-to-skill validator.

Limitations

This skill preserves the PTQ4ViT mechanism but does not bundle pretrained models, ImageNet, or the original repository. Recovery must not read the original repository.

我的收藏