You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
requirement-check aLoRA fails open on 2/10 plain-language checks even with activation fixed #1707
Once #1699/#1706 fix activation, requirement_check()'s default path silently moves from the LoRA to the aLoRA for requirement-check (the catalog entry carries no adapter_types restriction). The aLoRA's verdicts are measurably worse than the LoRA's, and the two failures it makes both fail open — they report a requirement as satisfied when it plainly isn't.
Evidence
From an earlier diagnostic (mellea-alora-eval, 2026-09-25, granite-4.1-3b, same catalogue pin): ten unambiguous requirements checked against one fixed response.
LoRA: 10/10 correct
aLoRA (activation patched so the invocation sequence matches): 8/10 correct
Both aLoRA misses fail open (score > 0.99, confident "yes"):
"The response is written in French" — against a plain English sentence
"Uses bullet points" — against prose with no bullet points
Fixing activation does not fix this: after patching the prompt so the sequence lands correctly, the French-detection probe barely moved (0.9988 vs 0.9975 — still a confident, wrong "yes"). This was raised during review of #1706, which deliberately ships the activation fix without resolving it (see mellea/backends/adapters/catalog.py's own comment above _CORE_R1_SHA, which asks for this comparison before promoting a previously-non-activating aLoRA to the default path).
To do
Reproduce the 10-item differential on the current pin and confirm the fail-open pattern still holds.
Decide: restrict requirement-check's catalog entry to adapter_types=(AdapterType.LORA,) until verdict quality is addressed, or accept the aLoRA as default with the known gap documented.
If restricting, undo once granitelib ships a requirement-check aLoRA that doesn't regress accuracy/false-pass rate versus the LoRA.
Update: I reran the 10-item differential on the current pin. The fail-open pattern is gone, and it was never the aLoRA's. Closing this.
Where the original numbers came from. The "activation patched" arm in the 2026-09-25 diagnostic patched the io.yaml text so the invocation sequence matched. That was before we found the real loading-path bug (#1685): PEFT only computes aLoRA offsets inside its PeftModel wrapper, and LocalHFBackend was loading adapters onto the bare model, so no prompt-level patch could activate anything. Those scores were the base model's. I checked this directly, with a control run that force-deactivates the adapter at generate time: it reproduces the "aLoRA" column from #1679 to four decimal places on every item, including both fail-opens (French 0.9975, bullets 0.9997).
The rerun. mellea main 246f7ee2f, granitelib-core c4b4fc6ec4 (the #1706 pin bump), granite-4.1-3b and 8b, greedy, one process per arm. This time I audited activation on every call: invocation sequence present in the input ids, plus a spy on ALoraLinearVariant.forward counting alora_offsets delivery.
French 0.0601, bullets 0.0474; offsets reached 1120/1120 variant calls
3b
base (no adapter)
8/10
French 0.9975, bullets 0.9997, the original "aLoRA" numbers
8b
LoRA
10/10
8b
aLoRA
9/10
Scotland 0.5312, a near-threshold miss rather than a confident false pass
8b
base
10/10
I also ran the same set with no mellea anywhere in the path (raw transformers + the classic peft.PeftModel wrapper, same pin, each rung using its own io.yaml instruction). The verdicts match on every comparable item. French comes out at 0.0601 again at 3b, and the 8b Scotland miss lands at exactly 0.5312, so that one is in the weights, not in our prompt assembly or scoring. Granite-switch 4.1 previews agree too: 10/10 at both sizes, with French 0.0601 and bullets 0.0474 at 3b, identical to the aLoRA arm, as you'd expect given the same embedded weights.
What's left of this issue. The aLoRA is a softer judge than the LoRA: pass-side scores run lower (0.78 vs 0.92 on the same item at 3b), and it straddles the threshold on some counting items ("at least 50 words" 0.44 at 3b, Scotland 0.53 at 8b). Worth knowing when picking a rung per size, but it does not produce the confident false passes this issue was filed over. The default path still resolves to the LoRA on main, so I see no case for an adapter_types restriction either.
That closes the first checkbox with a negative result and takes the restrict-or-accept decision with it: there is no fail-open behaviour to guard against.
The harness is ten items around core.requirement_check with the rung forced, plus the activation audit described above. Happy to share the per-item JSON.
Activity
planetf1 commentedon Oct 14, 2026
Update: I reran the 10-item differential on the current pin. The fail-open pattern is gone, and it was never the aLoRA's. Closing this.
Where the original numbers came from. The "activation patched" arm in the 2026-09-25 diagnostic patched the io.yaml text so the invocation sequence matched. That was before we found the real loading-path bug (#1685): PEFT only computes aLoRA offsets inside its
PeftModelwrapper, andLocalHFBackendwas loading adapters onto the bare model, so no prompt-level patch could activate anything. Those scores were the base model's. I checked this directly, with a control run that force-deactivates the adapter at generate time: it reproduces the "aLoRA" column from #1679 to four decimal places on every item, including both fail-opens (French 0.9975, bullets 0.9997).The rerun. mellea main
246f7ee2f, granitelib-corec4b4fc6ec4(the #1706 pin bump), granite-4.1-3b and 8b, greedy, one process per arm. This time I audited activation on every call: invocation sequence present in the input ids, plus a spy onALoraLinearVariant.forwardcountingalora_offsetsdelivery.I also ran the same set with no mellea anywhere in the path (raw transformers + the classic
peft.PeftModelwrapper, same pin, each rung using its own io.yaml instruction). The verdicts match on every comparable item. French comes out at 0.0601 again at 3b, and the 8b Scotland miss lands at exactly 0.5312, so that one is in the weights, not in our prompt assembly or scoring. Granite-switch 4.1 previews agree too: 10/10 at both sizes, with French 0.0601 and bullets 0.0474 at 3b, identical to the aLoRA arm, as you'd expect given the same embedded weights.What's left of this issue. The aLoRA is a softer judge than the LoRA: pass-side scores run lower (0.78 vs 0.92 on the same item at 3b), and it straddles the threshold on some counting items ("at least 50 words" 0.44 at 3b, Scotland 0.53 at 8b). Worth knowing when picking a rung per size, but it does not produce the confident false passes this issue was filed over. The default path still resolves to the LoRA on main, so I see no case for an
adapter_typesrestriction either.That closes the first checkbox with a negative result and takes the restrict-or-accept decision with it: there is no fail-open behaviour to guard against.
The harness is ten items around
core.requirement_checkwith the rung forced, plus the activation audit described above. Happy to share the per-item JSON.