Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
75bd49ff
"test/git@developer.sourcefind.cn:change/sglang.git" did not exist on "99c92ff24bc82bf54d4cdb4106cb3966f3fa31de"
Unverified
Commit
75bd49ff
authored
Feb 24, 2023
by
Sanchit Gandhi
Committed by
GitHub
Feb 24, 2023
Browse files
[Flax] Fix erroneous kwargs being passed to generate config (#21765)
parent
14f33205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_flax_utils.py
src/transformers/modeling_flax_utils.py
+1
-1
No files found.
src/transformers/modeling_flax_utils.py
View file @
75bd49ff
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment