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

[generate] can instantiate GenerationConfig(cache_implementation="static") #35679

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

gante
Copy link
Member

@gante gante commented Jan 13, 2025

What does this PR do?

See title -- we should be able to instantiate GenerationConfig(cache_implementation="static"), to configure generate calls with static caches. In other words, we shouldn't need any further parameterization, as it can be inferred at inference time.

Fixes #35026

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

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.

Sounds good!

@gante gante merged commit 2818307 into huggingface:main Jan 16, 2025
25 checks passed
@gante gante deleted the fix_35026 branch January 16, 2025 17:04
bursteratom pushed a commit to bursteratom/transformers that referenced this pull request Jan 31, 2025
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.

Stop requiring CacheConfig in GenerationConfig with StaticCache
3 participants