Skip to content
Back to skills

Cofi Recovery Experiment

ASecurity

Run a bounded CoFi proxy experiment that exercises masks, sparsity regularization, distillation, pruning summaries, and validation logs.

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

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 cofi_recovery_experiment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cofi Recovery Experiment?

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

Security grade badge for Cofi Recovery Experiment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cofi-recovery-experiment/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cofi-recovery-experiment)

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: cofi_recovery_experiment
description: Run a bounded CoFi proxy experiment that exercises masks, sparsity regularization, distillation, pruning summaries, and validation logs.
---

# cofi_recovery_experiment

Use this skill when reconstructing the CoFi structured-pruning method or a mechanism-faithful reduced recovery. Do not use it as evidence for full GLUE/SQuAD reproduction unless it is embedded in a real pretrained-model training pipeline.

## Inputs

- Small Python lists or JSON-compatible dictionaries describing model layers, masks, states, sparsity budgets, or proxy batches.
- For recovery, an attempt directory where logs and result files can be written.

## Outputs

- Deterministic dictionaries containing mask composition, sparsity penalties, layer alignments, losses, parameter updates, or recovery traces.
- The scripts never read the original CoFi source repository.

## Workflow

1. Import the script from `scripts/` or invoke it through a recovery harness with the skill `scripts` directories on `PYTHONPATH`.
2. Validate all inputs are tiny, explicit, and JSON-compatible.
3. Execute the CoFi mechanism represented by this module and save any diagnostics needed by downstream recovery.
4. For proxy recovery, clearly mark the run as reduced and keep full-model training booleans false.

## Validation

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

## Limitations

This skill captures reusable CoFi mechanisms and deterministic tests. It is not a replacement for full BERT fine-tuning, GLUE/SQuAD preprocessing, or GPU latency benchmarking.

Files in this skill

  • SKILL.md1.6 KB
  • scripts/run_cofi_proxy.py3.9 KB
  • tests/test_cofi_recovery_experiment.py489 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.