Skip to content
Back to skills

Activation Calibration

ASecurity

Estimate per-channel activation norms for Wanda outlier-aware pruning from calibration tensors.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill activation_calibration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Activation Calibration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Activation Calibration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-activation-calibration/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-activation-calibration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md1.3 KB
  • scripts/calibration.py1.3 KB
  • tests/test_activation_calibration.py301 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.