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
81d82e4f
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "086718ac6e20ca2e2cfa3aa0f6da9dc7ee34f6c6"
Unverified
Commit
81d82e4f
authored
Nov 23, 2022
by
Younes Belkada
Committed by
GitHub
Nov 23, 2022
Browse files
fix nasty `bnb` bug (#20408)
parent
658e5d8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+1
-1
No files found.
src/transformers/modeling_utils.py
View file @
81d82e4f
...
@@ -2351,7 +2351,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
...
@@ -2351,7 +2351,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
load_in_8bit
=
load_in_8bit
,
load_in_8bit
=
load_in_8bit
,
)
)
cls
.
is_loaded_in_8bit
=
load_in_8bit
model
.
is_loaded_in_8bit
=
load_in_8bit
# make sure token embedding weights are still tied if needed
# make sure token embedding weights are still tied if needed
model
.
tie_weights
()
model
.
tie_weights
()
...
...
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