Skip to content

[training] show how metadata stuff should be incorporated in training scripts. #11707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 16, 2025

Conversation

sayakpaul
Copy link
Member

@sayakpaul sayakpaul commented Jun 13, 2025

What does this PR do?

Since #11324 is merged now, we can safely inject metadata into safetensor files when training LoRAs.

Linoy, let's propagate this to other important scripts?

@a-r-r-o-w for awareness.

@sayakpaul sayakpaul requested a review from linoytsaban June 13, 2025 10:01
@HuggingFaceDocBuilderDev

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.

Copy link
Collaborator

@linoytsaban linoytsaban left a comment

Choose a reason for hiding this comment

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

LGTM! Only thing is I wonder if we should add some check to the user input for alpha? perhaps adding a warning/info that when alpha != rank, if alpha < rank, the effect of the lora weights is downscaled and vise versa if alpha > rank the effect is upscaled and if they want to maintain a 1 scale factor they should set alpha==rank?

@sayakpaul
Copy link
Member Author

Good point. I believe that could be documented in the READMEs.

@sayakpaul sayakpaul merged commit f0dba33 into main Jun 16, 2025
16 checks passed
@sayakpaul sayakpaul deleted the metadata-training-lora branch June 16, 2025 11:12
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