"test/git@developer.sourcefind.cn:change/sglang.git" did not exist on "99c92ff24bc82bf54d4cdb4106cb3966f3fa31de"
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): ...@@ -653,7 +653,7 @@ class FlaxPreTrainedModel(PushToHubMixin, FlaxGenerationMixin):
**kwargs, **kwargs,
) )
else: else:
model_kwargs = kwargs model_kwargs = kwargs.copy()
if commit_hash is None: if commit_hash is None:
commit_hash = getattr(config, "_commit_hash", 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