Skip to content
Back to skills

Lora Parameter Freezing

ASecurity

Apply LoRA parameter freezing and compact checkpoint filtering for reduced adaptation experiments and audits.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Lora Parameter Freezing?

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

Security grade badge for Lora Parameter Freezing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-lora-parameter-freezing/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-lora-parameter-freezing)

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

SKILL.md
---
name: lora_parameter_freezing
description: Apply LoRA parameter freezing and compact checkpoint filtering for reduced adaptation experiments and audits.
---

# LoRA Parameter Freezing and Checkpointing

Use this skill when a recovery or implementation must prove that only LoRA adaptation parameters are trained or stored. It is useful for reduced experiments, model audits, and checkpoint construction. Do not use it to mutate a shared environment or to import the original repository during recovery.

## Inputs
- Named parameter metadata or a dictionary of parameter payloads.
- Bias policy: `none`, `lora_only`, or `all`.
- Optional expected parameter-count budget from the module plan.

## Outputs
- A map from parameter name to trainable/frozen status.
- A compact state dictionary containing LoRA parameters and permitted biases only.
- Evidence that frozen backbone weights are excluded from optimizer and checkpoint payloads.

## Workflow
1. Mark every name containing `lora_` as trainable.
2. Keep non-LoRA weights frozen under the default `none` bias policy.
3. Include biases only when the explicit policy permits them.
4. Save checkpoints from the filtered LoRA state dictionary rather than full model parameters.
5. Record counts for total parameters, trainable parameters, and checkpoint entries.

## Validation
Run the included tests or `python scripts/parameter_freezing.py --input <fixture.json>`. Tests assert backbone exclusion, LoRA inclusion, and default freezing behavior.

## Limitations
This skill models parameter names and checkpoint filtering deterministically; it does not depend on PyTorch tensors or optimizer objects.

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…