Fix recommendation condition
This commit is contained in:
@@ -12,8 +12,8 @@ def validate_config(cfg):
|
|||||||
assert cfg.load_in_8bit is False
|
assert cfg.load_in_8bit is False
|
||||||
assert cfg.load_4bit is False
|
assert cfg.load_4bit is False
|
||||||
assert cfg.load_in_4bit is True
|
assert cfg.load_in_4bit is True
|
||||||
if cfg.load_in_8bit and cfg.adapter == "lora":
|
if not cfg.load_in_8bit and cfg.adapter == "lora":
|
||||||
logging.warning("we recommend setting `load_in_8bit: true`")
|
logging.warning("We recommend setting `load_in_8bit: true` for LORA finetuning")
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
# MPT 7b
|
# MPT 7b
|
||||||
|
|||||||
Reference in New Issue
Block a user