Skip to content

Commit

Permalink
Fix for weights-only load (pytorch#1228)
Browse files Browse the repository at this point in the history
stack-info: PR: pytorch#1228, branch: drisspg/stack/19
  • Loading branch information
drisspg authored and asahni04 committed Nov 7, 2024
1 parent 5836a17 commit 8d7f968
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/prototype/test_low_bit_optim.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
quantize_4bit_with_qmap,
_fp32_to_bf16_sr,
)

from torchao.utils import TORCH_VERSION_AT_LEAST_2_3, TORCH_VERSION_AT_LEAST_2_4, TORCH_VERSION_AT_LEAST_2_6
from torchao.utils import (
TORCH_VERSION_AT_LEAST_2_3,
TORCH_VERSION_AT_LEAST_2_4,
TORCH_VERSION_AT_LEAST_2_6,
)

try:
import bitsandbytes as bnb
Expand Down

0 comments on commit 8d7f968

Please sign in to comment.