Skip to content

Fix prepare model for compiled hotswap requires grad#3241

Open
BenjaminBossan wants to merge 2 commits into
huggingface:mainfrom
BenjaminBossan:fix-prepare_model_for_compiled_hotswap-requires-grad
Open

Fix prepare model for compiled hotswap requires grad#3241
BenjaminBossan wants to merge 2 commits into
huggingface:mainfrom
BenjaminBossan:fix-prepare_model_for_compiled_hotswap-requires-grad

Conversation

@BenjaminBossan
Copy link
Copy Markdown
Member

There was a bug that after calling prepare_model_for_compiled_hotswap, the requires_grad of the newly created LoRA layer may have a different value from what it was previously. This is now fixed.

There was a bug that after calling prepare_model_for_compiled_hotswap,
the requires_grad of the newly created LoRA layer may have a different
value from what it was previously. This is now fixed.
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@BenjaminBossan BenjaminBossan requested a review from githubnemo May 19, 2026 02:04
Copy link
Copy Markdown
Collaborator

@githubnemo githubnemo left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

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.

3 participants