Estimate per-channel activation norms for Wanda outlier-aware pruning from calibration tensors.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add VectorSpaceLab/AREX-Skill --skill activation_calibration --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Activation Calibration?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vectorspacelab-activation-calibration)More formats (shields.io, HTML) on the badges page.
---
name: activation_calibration
description: Estimate per-channel activation norms for Wanda outlier-aware pruning from calibration tensors.
---
# Activation Calibration
Use this skill when implementing Wanda-style pruning and you need input-channel activation scales before computing weight importance. Do not use it for methods that compare weights only by magnitude.
## Inputs
- A JSON file containing `batches`, a list of 2D numeric arrays shaped samples/tokens by input channels, or one 2D array.
- Optional norm type: `l2` is the Wanda default.
## Outputs
- `activation_norms`: one non-negative scale per input channel.
- Metadata with channel count, row count, norm type, and outlier-channel ranking.
## Workflow
1. Flatten calibration examples across batch/token rows while preserving the final feature dimension.
2. Compute the selected norm independently for every input channel; Wanda uses L2 because it smoothly captures high-magnitude outlier features.
3. Keep zero-norm channels as zero, not NaN or epsilon-inflated values.
4. Save norms and metadata for the row-pruning skill.
## Validation
Run `python tests/test_activation_calibration.py` or validate the skill tree with `--run-tests`.
## Limitations
This skill estimates scales only; it does not choose prune masks or evaluate perplexity.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!