Skip to content
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

change metadata key from finetuned_from to base_model #1803

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Conversation

@julien-c julien-c requested a review from Wauplin November 6, 2023 11:06
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 6, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Looks good! I don't expect it to break anything in the wild.

@Wauplin Wauplin merged commit 4c93d89 into main Nov 6, 2023
12 of 16 checks passed
@Wauplin Wauplin deleted the base_model branch November 6, 2023 12:09
@julien-c julien-c requested a review from davanstrien November 6, 2023 12:43
@julien-c
Copy link
Member Author

julien-c commented Nov 6, 2023

@LysandreJik had a good question: is the model card template used from transformers? (which could be a breaking change)

i don't remember

@julien-c
Copy link
Member Author

julien-c commented Nov 6, 2023

(context: huggingface/transformers#24528 (comment))

@Wauplin
Copy link
Contributor

Wauplin commented Nov 6, 2023

@LysandreJik had a good question: is the model card template used from transformers? (which could be a breaking change)

I'm not aware of such a use no. AFAIK only skops and diffusers uses the template programmatically and both of them don't have a finetune_from/base_model argument.


For transformers, I found this file modelcard.py that implements a "model card builder" from scratch. Good reminder that we should most probably align on this.

@LysandreJik
Copy link
Member

cc @muellerzr on aligning on this between the two libraries eventually

@julien-c
Copy link
Member Author

julien-c commented Nov 6, 2023

For diffusers, it's weird that they don't use a base_model, they're supposed to output it in their model card no? cc @patrickvonplaten maybe

@Wauplin
Copy link
Contributor

Wauplin commented Nov 6, 2023

@julien-c
Copy link
Member Author

julien-c commented Nov 6, 2023

maybe raise this question in a diffusers slack channel

@Wauplin
Copy link
Contributor

Wauplin commented Nov 6, 2023

(link to -internal- thread)

Copy link
Member

@davanstrien davanstrien left a comment

Choose a reason for hiding this comment

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

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.

5 participants