Skip to content

Conversation

@jheitmann
Copy link
Contributor

What does this PR do?

This pull request updates the run_summarization.py script in the PyTorch implementation to fix the default value of source_prefix. Currently, the default value is set to "", which can be misleading when fine-tuning T5 models. This PR sets the default value to None, aligning it with other implementations and ensuring that users are prompted with a warning when not providing a source prefix.

Fixes #26653

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Indeed LGTM!

@ArthurZucker ArthurZucker merged commit 3eceaa3 into huggingface:main Oct 10, 2023
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@jheitmann jheitmann deleted the fix-source-prefix-default branch January 18, 2024 16:03
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.

Fix source_prefix default value in run_summarization.py

3 participants