Skip to content

Conversation

@gante
Copy link
Contributor

@gante gante commented Feb 8, 2023

What does this PR do?

TF generation test addition PR 3 (out of ???).

In an effort to move generation integration tests to be framework-agnostic, I'll be adding low-hanging fruit to TF. This PR adds framework-agnostic tests for the signature of .generate(), which means that the TF signature had to be updated 🙃

Please note that this change is backward compatible -- regardless of whether the user was passing .generate(input_ids), .generate(input_ids=input_ids), or (e.g.) .generate(pixel_values=pixel_values), no change on their end is needed.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Feb 8, 2023

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

@gante gante changed the title Generate: TF tests WIP Generate: make TF .generate() signature == PT .generate() signature Feb 8, 2023
@gante gante marked this pull request as ready for review February 8, 2023 21:09
@gante gante requested a review from sgugger February 8, 2023 21:23
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@gante gante merged commit e69f971 into huggingface:main Feb 9, 2023
@gante gante deleted the more_framework_agnostic_test_3 branch February 9, 2023 11:10
@ArthurZucker ArthurZucker mentioned this pull request Feb 24, 2023
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