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
b08f41e6
Unverified
Commit
b08f41e6
authored
Jul 24, 2023
by
Younes Belkada
Committed by
GitHub
Jul 24, 2023
Browse files
[`8bit`] Fix 8bit corner case with Blip2 8bit (#25047)
fix 8bit corner case with Blip2 8bit
parent
3611fc90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/utils/bitsandbytes.py
src/transformers/utils/bitsandbytes.py
+1
-1
No files found.
src/transformers/utils/bitsandbytes.py
View file @
b08f41e6
...
...
@@ -273,7 +273,7 @@ def get_keys_to_not_convert(model):
return
[]
# otherwise they have an attached head
list_modules
=
list
(
model
.
named_
children
())
list_modules
=
list
(
model
.
named_
parameters
())
list_last_module
=
[
list_modules
[
-
1
][
0
]]
# add last module together with tied 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