Skip to content

Keep failed ROAD safe merges from changing base layers - #3691

Open
Robertboy18 wants to merge 1 commit into
huggingface:mainfrom
Robertboy18:fix-road-safe-merge-atomicity
Open

Keep failed ROAD safe merges from changing base layers#3691
Robertboy18 wants to merge 1 commit into
huggingface:mainfrom
Robertboy18:fix-road-safe-merge-atomicity

Conversation

@Robertboy18

Copy link
Copy Markdown
Contributor

I noticed the same safe-merge ordering issue fixed for LoRA in #3611 also exists in ROAD. The regular layer writes the transformed weight before checking the transformed bias, while the 4-bit and 8-bit paths don't check the transformed bias at all.

This computes and validates both candidates before committing either one, and adds regression coverage for the regular, 4-bit, and 8-bit paths.

I ran the full ROAD test subset, all seven ROAD GPU tests on an A100, and the Ruff formatting/lint checks :)

Copilot AI lite review requested due to automatic review settings September 8, 2026 05:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants