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

Pass use_cache in kwargs for GPTNeoX #30538

Conversation

zucchini-nlp
Copy link
Member

What does this PR do?

If we pass in use_cache when generating with GPT NeoX in the current main, it will not be used and will be overriden by model config's use_cache. This PR passes in user-defined use_cache when preparing inputs for generation

Other generative models all support user-defined use_cache kwarg already. Tests in generation/test_utils.py are passing

@zucchini-nlp zucchini-nlp requested a review from gante April 29, 2024 11:37
@zucchini-nlp zucchini-nlp marked this pull request as ready for review April 29, 2024 11:37
@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.

@gante gante requested a review from amyeroberts April 29, 2024 14:03
Copy link
Member

@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 noticing and fixing it!

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@zucchini-nlp zucchini-nlp merged commit c712d05 into huggingface:main Apr 30, 2024
20 checks passed
eigen2017 pushed a commit to eigen2017/transformers that referenced this pull request Apr 30, 2024
itazap pushed a commit that referenced this pull request May 14, 2024
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