-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Offloaded cache: fix generate #34921
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool thanks!
@property | ||
def batch_size(self): | ||
logger.warning_once( | ||
f"The 'batch_size' attribute of {self.__class__.__name__} is deprecated and will be removed in " | ||
"v4.49. Use the more precisely named 'self.max_batch_size' attribute instead." | ||
) | ||
return self.max_batch_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, let's make sure all our codes uses max_batch_size as logger warning is incompatible with compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I check the generation files and the repo, seems like all changes are done already. Plus the compile tests on llama still pass
* fix cache impl * require_torch_gpu * fix mamba * fix copies
* fix cache impl * require_torch_gpu * fix mamba * fix copies
What does this PR do?
Fixes #34718 and adds tests. Also had to fix some inconsistencies in the code so that the test passes for all models, for ex using
max_batch_size
instead ofbatch_size
in all cache classes