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

add config to model card #1005

Merged
merged 11 commits into from
Dec 28, 2023
Merged

add config to model card #1005

merged 11 commits into from
Dec 28, 2023

Conversation

hamelsmu
Copy link
Collaborator

@hamelsmu hamelsmu commented Dec 27, 2023

This saves the axolotl config directly to the model card like this:

(I have tested the push to HF Hub)

EDIT: I changed this to be collapsible which is collapsed by default, since it is at the very top it might otherwise annoy people who are trying to market their models.

image

@@ -12,6 +12,7 @@
from accelerate.logging import get_logger
from datasets import Dataset
from optimum.bettertransformer import BetterTransformer
from pkg_resources import get_distribution # type: ignore
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@winglian mypy hates this specific import, and wants a special package to be installed. I wrestled with it for a while, but made a judgement call that ignoring this with mypy is ok

@winglian winglian merged commit 85dd4d5 into main Dec 28, 2023
4 checks passed
@winglian winglian deleted the save-config branch December 28, 2023 03:25
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.

None yet

2 participants