File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -658,8 +658,8 @@ class Linear8bitLt(nn.Linear):
658
658
659
659
def __init__ (
660
660
self ,
661
- input_features ,
662
- output_features ,
661
+ input_features : int ,
662
+ output_features : int ,
663
663
bias = True ,
664
664
has_fp16_weights = True ,
665
665
memory_efficient_backward = False ,
@@ -671,9 +671,9 @@ def __init__(
671
671
Initialize Linear8bitLt class.
672
672
673
673
Args:
674
- input_features (`str `):
674
+ input_features (`int `):
675
675
Number of input features of the linear layer.
676
- output_features (`str `):
676
+ output_features (`int `):
677
677
Number of output features of the linear layer.
678
678
bias (`bool`, defaults to `True`):
679
679
Whether the linear class uses the bias term as well.
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def replace_linear(
140
140
List of modules names not to convert. Defaults to `lm_head`.
141
141
copy_weights (`bool`):
142
142
Copy the weights from the old linear module to the new one
143
- post_processing_fun_name (`str`):
143
+ post_processing_function (`str`):
144
144
A function name of the replacement linear class that is called
145
145
after processing.
146
146
"""
You can’t perform that action at this time.
0 commit comments