Skip to content

Conversation

@bhavika
Copy link
Contributor

@bhavika bhavika commented Mar 14, 2022

What does this PR do?

Uses the @unpack_inputs decorator instead of input_processing for OpenAI (TF). See #16051

Tagging @Rocketknight1 for review!

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?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 14, 2022

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

@bhavika bhavika marked this pull request as ready for review March 14, 2022 00:27
@gante gante self-requested a review March 14, 2022 13:15
Copy link
Contributor

@gante gante left a comment

Choose a reason for hiding this comment

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

Thank you for this one as well :D Same deal as in the other PR, as soon as I get a positive answer for the two points below:

  1. confirm that the tests pass (RUN_SLOW=1 py.test -vv tests/[model_name]/test_modeling_tf_[model_name].py)
  2. address my other comment

output_type=TFBaseModelOutput,
config_class=_CONFIG_FOR_DOC,
)
@unpack_inputs
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as in the other PR -- can I ask you to move it so as to be the top decorator? :) (there are other instances in this file)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thank you for catching this. Done in e6da312

@gante
Copy link
Contributor

gante commented Mar 14, 2022

I've also made the same edit on the PR description :)

@bhavika
Copy link
Contributor Author

bhavika commented Mar 14, 2022

@gante Made changes as you suggested and I'm confirming that the tests pass for RUN_SLOW=1 py.test -vv tests/openai/test_modeling_tf_openai.py

@gante gante merged commit d02bd4f into huggingface:master Mar 14, 2022
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