Skip to content

Commit 8706830

Browse files
committed
Fix some bad types
1 parent b03ce0e commit 8706830

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bitsandbytes/nn/modules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ class Linear8bitLt(nn.Linear):
658658

659659
def __init__(
660660
self,
661-
input_features,
662-
output_features,
661+
input_features: int,
662+
output_features: int,
663663
bias=True,
664664
has_fp16_weights=True,
665665
memory_efficient_backward=False,
@@ -671,9 +671,9 @@ def __init__(
671671
Initialize Linear8bitLt class.
672672
673673
Args:
674-
input_features (`str`):
674+
input_features (`int`):
675675
Number of input features of the linear layer.
676-
output_features (`str`):
676+
output_features (`int`):
677677
Number of output features of the linear layer.
678678
bias (`bool`, defaults to `True`):
679679
Whether the linear class uses the bias term as well.

bitsandbytes/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def replace_linear(
140140
List of modules names not to convert. Defaults to `lm_head`.
141141
copy_weights (`bool`):
142142
Copy the weights from the old linear module to the new one
143-
post_processing_fun_name (`str`):
143+
post_processing_function (`str`):
144144
A function name of the replacement linear class that is called
145145
after processing.
146146
"""

0 commit comments

Comments
 (0)