Unverified Commit 63fb253d authored by James Braza's avatar James Braza Committed by GitHub
Browse files

Fixing `name 'torch' is not defined` in `bitsandbytes` integration (#31243)

Fixed torch definition error
parent 66875ac0
......@@ -332,7 +332,7 @@ def get_keys_to_not_convert(model):
# Copied from PEFT: https://github.com/huggingface/peft/blob/47b3712898539569c02ec5b3ed4a6c36811331a1/src/peft/utils/integrations.py#L41
def dequantize_bnb_weight(weight: torch.nn.Parameter, state=None):
def dequantize_bnb_weight(weight: "torch.nn.Parameter", state=None):
"""
Helper function to dequantize 4bit or 8bit bnb weights.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment