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

Tag repos using HFSummaryWriter with 'hf-summary-writer' #2398

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jul 18, 2024

Following recent discussions with @severo. This PR:

  • adds a tag hf-summary-writer to the model card metadata when using HFSummaryWriter (will help with discoverability/analytics)
  • updates the example code snippet to showcase how easy it is to switch to it in a codebase.

See https://huggingface.co/spaces/severo/training-metrics-tab/discussions/1.

@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.

except EntryNotFoundError:
card = ModelCard("")
tags = card.data.get("tags", [])
tags.append("hf-summary-writer")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we check if the tag already exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely! Otherwise we would end up with 10 times the same tag if running a lot of experiments ^^
Addressed in c05857d

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

why not!

@Wauplin Wauplin merged commit 2666d2e into main Jul 19, 2024
14 of 17 checks passed
@Wauplin Wauplin deleted the update-tensorboard-logger branch July 19, 2024 07:37
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.

4 participants