Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compressed_tensors/quantization/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def calculate_range(
:return: tuple endpoints for the given quantization range
"""
if quantization_args.type == QuantizationType.INT:
bit_range = 2**quantization_args.num_bits
bit_range = 2.0**quantization_args.num_bits
q_max = torch.tensor(bit_range / 2 - 1, device=device)
q_min = torch.tensor(-bit_range / 2, device=device)
elif quantization_args.type == QuantizationType.FLOAT:
Expand Down
Loading