Build and train a LoRA linear layer with frozen base weights and low-rank trainable factors.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add VectorSpaceLab/AREX-Skill --skill lora_linear_update --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Lora Linear Update?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vectorspacelab-lora-linear-update)More formats (shields.io, HTML) on the badges page.
---
name: lora_linear_update
description: Build and train a LoRA linear layer with frozen base weights and low-rank trainable factors.
---
# LoRA Linear Update
Use this skill when implementing the paper's core low-rank adaptation equation for a dense layer. Do not use it to claim full Transformer fine-tuning.
## Inputs
Base matrix `W0`, rank `r`, scaling `alpha`, input/target examples, learning rate, step count.
## Outputs
Forward outputs, loss trace, LoRA factors `A` and `B`, and booleans proving `W0` stayed frozen while `A/B` changed.
## Workflow
1. Validate dimensions and rank.
2. Compute `W0 x + (alpha/r) B A x`.
3. Initialize `A` deterministically and `B` to zero for initial base equivalence.
4. Backpropagate squared-error gradients by hand and update only `A` and `B`.
5. Record loss before and after plus parameter snapshots.
## Validation
Run `python tests/test_lora_linear_update.py` or the Distiller skill validator with `--run-tests`.
## Limitations
This is a mechanism skill, not a replacement for full pretrained language-model training.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。
Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
Django测试策略,包括pytest-django、TDD方法论、factory_boy、模拟、覆盖率以及测试Django REST Framework API。
克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则