Paligemma: fix static cache test (#33941)
* fix * not flaky anymore + style
This commit is contained in:
committed by
GitHub
parent
38f9f10dd9
commit
612065efeb
@@ -881,9 +881,7 @@ class DummyModel(DummyPreTrainedModel):
|
||||
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
||||
|
||||
if (input_ids is None) ^ (inputs_embeds is not None):
|
||||
raise ValueError(
|
||||
"You must specify exactly one of input_ids or inputs_embeds"
|
||||
)
|
||||
raise ValueError("You must specify exactly one of input_ids or inputs_embeds")
|
||||
|
||||
if self.gradient_checkpointing and self.training and use_cache:
|
||||
logger.warning_once(
|
||||
|
||||
Reference in New Issue
Block a user