[Flax] Fix erroneous kwargs being passed to generate config (#21765)
This commit is contained in:
parent
14f33205a7
commit
75bd49ff88
|
@ -653,7 +653,7 @@ class FlaxPreTrainedModel(PushToHubMixin, FlaxGenerationMixin):
|
|||
**kwargs,
|
||||
)
|
||||
else:
|
||||
model_kwargs = kwargs
|
||||
model_kwargs = kwargs.copy()
|
||||
|
||||
if commit_hash is None:
|
||||
commit_hash = getattr(config, "_commit_hash", None)
|
||||
|
|
Loading…
Reference in New Issue