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

Deprecated kwargs in _get_config method for model generation with caching #198

Open
sabilmakbar opened this issue Feb 11, 2025 · 0 comments · May be fixed by #199
Open

Deprecated kwargs in _get_config method for model generation with caching #198

sabilmakbar opened this issue Feb 11, 2025 · 0 comments · May be fixed by #199

Comments

@sabilmakbar
Copy link

sabilmakbar commented Feb 11, 2025

Cache kwargs max_batch_size alr deprecated since HF ver 4.46.1
https://github.com/huggingface/transformers/blob/v4.46.1/src/transformers/cache_utils.py#L319

This Is related to this part of the faulty code:

cache_kwargs = {
"config": self.config.decoder,
"max_batch_size": max_batch_size,
"max_cache_len": max_cache_len,
"device": self.device,
"dtype": cache_dtype,
}
self._cache = cache_cls(**cache_kwargs)

when testing on this snippet:
https://github.com/huggingface/parler-tts/blob/main/INFERENCE.md#compilation

Only need to fix the name from max_batch_size to batch_size, can open the PR too if needed

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 a pull request may close this issue.

1 participant