# Lora Merge Latency

> Merge LoRA low-rank factors into a dense weight and verify deployment-equivalent inference.

- Skill: `yzj623/lora-merge-latency` (Agent Skill)
- Install (CLI): `npx get-skill add yzj623/lora-merge-latency`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yzj623/lora-merge-latency/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: yzj623 (https://skillmd.com/u/yzj623)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/yzj623/lora-merge-latency

---


# LoRA Merge Latency

Use this skill when deploying or validating LoRA without extra inference latency. It consumes a base weight and trained factors and emits a merged dense matrix plus equivalence checks.

## Inputs
`W0`, `A`, `B`, `alpha`, and test inputs.

## Outputs
Merged weight `W`, unmerged-vs-merged maximum error, and optional restored base weight.

## Workflow
Compute `W = W0 + (alpha/r) BA`, run the ordinary dense layer, compare it with the unmerged LoRA forward pass, and record a tight numerical tolerance.

## Validation
Run the included tests or validate the skill tree with tests.

## Limitations
Merging one adapter at a time is appropriate for single-task batches; mixed adapters may require unmerged dynamic routing.

