Unverified Commit 75bd49ff authored by Sanchit Gandhi's avatar Sanchit Gandhi Committed by GitHub
Browse files

[Flax] Fix erroneous kwargs being passed to generate config (#21765)

parent 14f33205
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment