Skip to content

Commit

Permalink
Update _utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhanchen committed Oct 28, 2024
1 parent 2dfdba3 commit 5541ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unsloth/models/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,8 @@ def patch_compiling_bitsandbytes():
import peft.tuners.lora.bnb
peft.tuners.lora.bnb.Linear4bit.forward = \
torch._disable_dynamo(peft.tuners.lora.bnb.Linear4bit.forward)
peft.tuners.lora.bnb.Linear8bit.forward = \
torch._disable_dynamo(peft.tuners.lora.bnb.Linear8bit.forward)
peft.tuners.lora.bnb.Linear8bitLt.forward = \
torch._disable_dynamo(peft.tuners.lora.bnb.Linear8bitLt.forward)
return
pass
# =============================================
Expand Down

0 comments on commit 5541ab4

Please sign in to comment.