Update _utils.py
This commit is contained in:
parent
dc39485ec3
commit
1ab912d528
1 changed files with 0 additions and 1 deletions
|
|
@ -404,7 +404,6 @@ pass
|
|||
# =============================================
|
||||
# Weirdly LoraLayer.update_layer downcasts PEFT layers to float16??
|
||||
# For mixed precision, we need it to be in float32 not float16.
|
||||
from packaging import Version
|
||||
from peft import __version__
|
||||
if Version(__version__) < Version("0.12.0"):
|
||||
from peft.tuners.lora.layer import LoraLayer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue