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 bitsandbytes/backends/triton/kernels_4bit.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def dequantize_fp4_tree(val, absmax):
branch2 = tl.where(
second_bit,
tl.where(first_bit, 1.0, 0.66666667), # 1011, 1010
tl.where(first_bit, 0.00520833, 0.0), # 1001, 1000
tl.where(first_bit, 0.005208333333, 0.0), # 1001, 1000
)
out = tl.where(third_bit, branch1, branch2)
return out * sign * absmax
Expand Down
Loading