Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
8706830f
Commit
8706830f
authored
Mar 13, 2024
by
Aarni Koskela
Browse files
Fix some bad types
parent
b03ce0e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
bitsandbytes/nn/modules.py
bitsandbytes/nn/modules.py
+4
-4
bitsandbytes/utils.py
bitsandbytes/utils.py
+1
-1
No files found.
bitsandbytes/nn/modules.py
View file @
8706830f
...
...
@@ -658,8 +658,8 @@ class Linear8bitLt(nn.Linear):
def
__init__
(
self
,
input_features
,
output_features
,
input_features
:
int
,
output_features
:
int
,
bias
=
True
,
has_fp16_weights
=
True
,
memory_efficient_backward
=
False
,
...
...
@@ -671,9 +671,9 @@ class Linear8bitLt(nn.Linear):
Initialize Linear8bitLt class.
Args:
input_features (`
str
`):
input_features (`
int
`):
Number of input features of the linear layer.
output_features (`
str
`):
output_features (`
int
`):
Number of output features of the linear layer.
bias (`bool`, defaults to `True`):
Whether the linear class uses the bias term as well.
...
...
bitsandbytes/utils.py
View file @
8706830f
...
...
@@ -140,7 +140,7 @@ def replace_linear(
List of modules names not to convert. Defaults to `lm_head`.
copy_weights (`bool`):
Copy the weights from the old linear module to the new one
post_processing_fun
_name
(`str`):
post_processing_fun
ction
(`str`):
A function name of the replacement linear class that is called
after processing.
"""
...
...
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