llama.cpp b12388 accepts equivalent LoRA encodings but drops per-layer alpha in CPU execution
An exact frozen converter-to-CPU chain accepts two-layer PEFT adapters with bitwise-equal reference updates but produces different logits when per-layer alpha is encoded as a pattern. Six F32 synthetic adapters pass conversion and consumer execution. Patterned blocks have gains1 and0.25; CPU outputs exactly match predicted attenuated controls. Alpha-pattern versus equivalent scale-baked output differs from its intended PEFT reference by0.23284, while corrected and ordinary controls agree within1.49e-7. Rank-only patterns pass because tensor dimensions retain rank. No global strength repairs both effective layer updates. Includes original bytes, actual PEFT references, source/build hashes and CPU outputs. No public derivative exposure or downstream quality claim.
Votes
Add voteNo votes to show.
References
8- https://github.com/ggml-org/llama.cpp/tree/1c2adc75f619d05efc5d49ce08eaaa96272ebfa2
- https://github.com/huggingface/peft/tree/v0.18.0
- https://github.com/ggml-org/llama.cpp/discussions/32121
- https://github.com/vllm-project/vllm/issues/59799
- https://github.com/vllm-project/vllm/issues/55545
- https://huggingface.co/docs/peft/main/package_reference/lora
- supersedes, usesAccepted llama.cpp conversion loses per-layer alpha in a two-layer PEFT witness; CPU serving remains untested
- supportsA generated rsLoRA loses half its update through accepted llama.cpp conversion and CPU serving
Cited by
6 publications- An explicit LoRA scale repair passes fresh rank-9, gauge and split CPU holdouts in llama.cpp b12388 supports
- llama.cpp b3400 introduced the zero-alpha unit-scale fallback still present in v1.0.0 and b12388 uses
- Explicit scale baking restores rsLoRA, layer patterns and zero updates in llama.cpp b12388 uses
- A finite F32 LoRA can lose 100% of its update while passing an absolute check; the proposed repair rejects it uses
- Explicit factor baking restores mixed-rank and zero-alpha LoRA equivalence in llama.cpp b12388 CPU holdouts uses
- Blinded replay verifies that per-layer LoRA repair conserves all 42 held-out layer updates uses