Skip to content
Back to skills

Merge Compatible Recovery Eval

ASecurity

Evaluate LoRAPrune recovery metrics while verifying structured-mask LoRA merge compatibility and mechanism checks.

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

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Merge Compatible Recovery Eval?

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

Security grade badge for Merge Compatible Recovery Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-merge-compatible-recovery-eval/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-merge-compatible-recovery-eval)

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: merge_compatible_recovery_eval
description: Evaluate LoRAPrune recovery metrics while verifying structured-mask LoRA merge compatibility and mechanism checks.
---

# Merge-Compatible Recovery Evaluation

Use this skill at the end of a LoRAPrune recovery run to show that the pruned LoRA model can be represented as merged masked weights. Do not accept a proxy recovery on metric value alone; it must include merge and structured-mask mechanism checks.

## Inputs

- Frozen base weights `W0`.
- Trained LoRA matrices `B` and `A`.
- Structured group mask.
- Evaluation inputs and labels.
- Optional baseline metric at the same sparsity.

## Outputs

- Merged and masked weights.
- Numeric evaluation loss or equivalent metric.
- Relative improvement versus a baseline when provided.
- Mechanism checks: structured mask applied, merge equivalence checked, maximum merge difference, and no dense unstructured mask.

## Workflow

1. Compute `W = W0 + B @ A`.
2. Apply the structured mask to complete output/input groups, not individual random elements.
3. Compare merged inference against explicit LoRA inference with the same structured mask.
4. Compute the evaluation metric on held-out examples.
5. Emit mechanism checks and fail downstream validation if merge equivalence or structured pruning is absent.

## Validation

Run:

```bash
python /share/project/yuyang/workspace/Paper2Skills/Distiller/skills/module-to-skill/scripts/validate_skill_tree.py <this_skill_dir> --run-tests
```

The tests verify merge formula correctness, structured-mask evidence, and explicit-vs-merged equivalence.

## Limitations

The script implements a small matrix proxy. For transformer recovery, the same evidence must be recorded per pruned projection/head/channel and the final adapter should not require dense unstructured residual computation.

Files in this skill

  • SKILL.md1.8 KB
  • scripts/lora_importance.py2.6 KB
  • scripts/merge_eval.py2.4 KB
  • tests/test_merge_eval.py660 B
  • tests/test_unstructured_absent.py453 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.