You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
from transformers import AutoModel
from transformers.cache_utils import StaticCache
model_id = "deepset/roberta-base-squad2"
model = AutoModel.from_pretrained(model_id)
cache = StaticCache(max_batch_size=10, config=model.config)
Output The 'batch_size' attribute of StaticCache is deprecated and will be removed in v4.49. Use the more precisely named 'self.max_batch_size' attribute instead.
Expected behavior
No warning message
The text was updated successfully, but these errors were encountered:
System Info
transformers
version: 4.48.0.dev0Who can help?
@ArthurZucker @zucchini-nlp
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Output
The 'batch_size' attribute of StaticCache is deprecated and will be removed in v4.49. Use the more precisely named 'self.max_batch_size' attribute instead.
Expected behavior
No warning message
The text was updated successfully, but these errors were encountered: