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
3c310897
Unverified
Commit
3c310897
authored
Jun 05, 2023
by
Kaede Fujisaki
Committed by
GitHub
Jun 05, 2023
Browse files
Fix typo in doc comment of BitsAndBytesConfig (#23978)
parent
539e2281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/utils/quantization_config.py
src/transformers/utils/quantization_config.py
+2
-2
No files found.
src/transformers/utils/quantization_config.py
View file @
3c310897
...
@@ -74,9 +74,9 @@ class BitsAndBytesConfig:
...
@@ -74,9 +74,9 @@ class BitsAndBytesConfig:
bnb_4bit_compute_dtype (`torch.dtype` or str, *optional*, defaults to `torch.float32`):
bnb_4bit_compute_dtype (`torch.dtype` or str, *optional*, defaults to `torch.float32`):
This sets the computational type which might be different than the input time. For example, inputs might be
This sets the computational type which might be different than the input time. For example, inputs might be
fp32, but computation can be set to bf16 for speedups.
fp32, but computation can be set to bf16 for speedups.
bnb_4bit_quant_type (`str`, {fp4,
f
n4}, defaults to `fp4`):
bnb_4bit_quant_type (`str`, {fp4, n
f
4}, defaults to `fp4`):
This sets the quantization data type in the bnb.nn.Linear4Bit layers. Options are FP4 and NF4 data types
This sets the quantization data type in the bnb.nn.Linear4Bit layers. Options are FP4 and NF4 data types
which are specified by `fp4` or `
f
n4`.
which are specified by `fp4` or `n
f
4`.
bnb_4bit_use_double_quant (`bool`, *optional*, defaults to `False`):
bnb_4bit_use_double_quant (`bool`, *optional*, defaults to `False`):
This flag is used for nested quantization where the quantization constants from the first quantization are
This flag is used for nested quantization where the quantization constants from the first quantization are
quantized again.
quantized again.
...
...
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