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 ds model card, rebased #2101

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add ds model card, rebased #2101

wants to merge 6 commits into from

Conversation

bursteratom
Copy link
Collaborator

Description

Continuation of PR#1015,#2094 with rebasing

Motivation and Context

How has this been tested?

Screenshots (if appropriate)

Types of changes

Social Handles (Optional)

@bursteratom bursteratom marked this pull request as ready for review November 25, 2024 01:08
src/axolotl/core/trainer_builder.py Outdated Show resolved Hide resolved
src/axolotl/core/trainer_builder.py Show resolved Hide resolved
src/axolotl/train.py Outdated Show resolved Hide resolved
src/axolotl/train.py Show resolved Hide resolved
@@ -410,10 +426,12 @@ def __init__(
*_args,
bench_data_collator=None,
eval_data_collator=None,
dataset_tag_names=None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

dataset_tag_names isn't used for the base Trainer is it? Only for DPOTrainer?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it is used for both AxolotlTrainer and AxolotlDPOTrainer within def push_to_hub via _sanitize_kwargs_for_ds_tagging

Copy link
Collaborator

@winglian winglian Nov 26, 2024

Choose a reason for hiding this comment

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

I'm not fond of introducing arguments that don't match the original Trainer signature for this case. The call to _sanitize_kwargs_for_ds_tagging should handle the case where the attribute isn't available.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the advice. While trl trainer has an override for def create_model_card over the base transformers trainer, it uses the same def push_to_hub inherited from the base transformers trainer. I changed dataset_tag_names to dataset_tags to match def push_to_hub

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