计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
progressive_lora_pruning_loop【效率与协作】Run LoRAPrune's iterative LoRA optimization, moving-average importance update, and progressive structured mask schedule.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when recovering or implementing the central LoRAPrune algorithm after you have a LoRA-guided element importance function and a structured group masker. Do not use it as evidence for LoRAPrune unless it performs an actual optimizer step on LoRA parameters and records a trace.
(x, y) or equivalent model batches.W0.B and A.params_before, params_after, and optimizer_step_executed fields.Gbar_t = lambda * Gbar_{t-1} + (1-lambda) * Ghat_t.A and B.The included deterministic tests run a tiny regression loop and check optimizer execution, monotonic pruning, and the moving-average recurrence.
python /share/project/yuyang/workspace/Paper2Skills/Distiller/skills/module-to-skill/scripts/validate_skill_tree.py <this_skill_dir> --run-tests
The script uses a small list-based linear model for bounded recovery. For real LLMs, replace the analytic gradient code with framework autograd while retaining the same trace fields and LoRA-only-gradient boundary.