Repository navigation
fix(finetune): merge refuses PEFT zero-match, missing lora_alpha, partial and no-op merges (PMAT-7023) - #7066
Conversation
…and no-op merges (#7023) Count and resolve PEFT lora_A/lora_B.weight adapter names, require lora_alpha instead of defaulting to 16.0, refuse when any adapter LoRA tensor matched no base tensor, and refuse when no weight changed. Four must-fire tests added. Pmat-Ticket: PMAT-7023 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
§13.11 rung 1 — quorum shadow verdict Shadow mode: this records a verdict and merges nothing. A refusal |
|
Non-author review at 138046c: FAIL (lane agy Gemini, model "Gemini 4 Carbon (High)", read from the lane log). Not armed. Blocking:
Three earlier attempts ended in errors (bad model id, lane blind, interrupted) and are not counted. A new review is needed after the fix. 🤖 Generated with Claude Code |
…ora_b and shape-mismatched pairs, tests pin each hunk (PMAT-7023) Pmat-Ticket: PMAT-7023 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Review at head b4dffdc (harness lanes, non-author): 1 PASS (claude-sonnet-5-5, same family as the fix author) and 1 FAIL (gemini-4-carbon-high). Blocking: the shape guard compares only flat element counts, so a transposed pair on a non-square base or a rank mismatch still merges with exit 0; the zero-match refusal and several name-mapping branches stay green when reverted. Not armed. A fix is in work; lanes re-run on the new head. |
…sts pin each branch (PMAT-7023) Pmat-Ticket: PMAT-7023 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
quorum-review (AD-04): NOT agreed (auto_merge: checked=true was_armed=false disarmed=false) {
"ticket": "PMAT-7023",
"head": "799c4ab5e84f8ea8abb2889b4c56d4cb9191a7b5",
"width": 3,
"executor": "agy",
"agreed": false,
"auto_merge": {
"checked": true,
"was_armed": false,
"disarmed": false,
"note": "auto-merge not armed"
},
"lanes": [
{
"lane": 1,
"verdict": "NO-VERDICT",
"findings": 0
},
{
"lane": 2,
"verdict": "NO-VERDICT",
"findings": 0
},
{
"lane": 3,
"verdict": "PASS",
"findings": 2
}
]
} |
|
Review round at 799c4ab (harness quorum runner, 3 seats): not agreed. The claude-haiku-5-5 seat (model measured) returned PASS with no blocking finding. Both gemini-4-carbon-high seats returned no verdict (quota 429), and the fallback chain had no further non-author seat. One PASS is below this PR's two-lane bar, so it is not armed. 🤖 Generated with Claude Code |
|
quorum-review (AD-04): NOT agreed (auto_merge: checked=true was_armed=false disarmed=false) {
"ticket": "PMAT-7023",
"head": "799c4ab5e84f8ea8abb2889b4c56d4cb9191a7b5",
"width": 3,
"executor": "agy",
"agreed": false,
"auto_merge": {
"checked": true,
"was_armed": false,
"disarmed": false,
"note": "auto-merge not armed"
},
"lanes": [
{
"lane": 1,
"verdict": "PASS",
"findings": 4
},
{
"lane": 2,
"verdict": "PASS",
"findings": 3
},
{
"lane": 3,
"verdict": "PASS",
"findings": 3
}
]
} |
|
Review round at 799c4ab (harness quorum runner): PASS, 3 of 3 lanes, no blocking finding. Lanes measured: claude-opus-5-5-high x2 (agy), claude-haiku-5-5. None is the author's model id. 🤖 Generated with Claude Code |
What
apr finetune mergeno longer writes a wrong merge with exit 0.base_model.model.<stem>.lora_A.weight/.lora_B.weight) are resolved; an adapter with zero matches is refused and no output file is left.lora_alphais refused (was: silent default 16.0, two sites).crates/apr-cli/src/commands/finetune_display_next_validate.rs(+81) andfinetune_tests.rs(+121). No workflow, gate, script or contract change.Measured (build host, scratch copy of the branch at 138046c)
peft_adapter_zero_match_refused,missing_lora_alpha_refused,partial_merge_refused,unchanged_merge_refused.cargo test -p apr-cli --lib finetune83 passed, 0 failed.cargo clippy -p apr-cli --lib -- -D warnings0;cargo fmt --all -- --check0.Not measured
finetunefilter ran, not the fullapr-clilib suite; CI is its first full run.ont-delta: none (refusals added to an existing verb; no surface, contract or ontology row changes)
Closes #7023
Pmat-Ticket: PMAT-7023
🤖 Generated with Claude Code