Add warning for trust_remote_code

This commit is contained in:
NanoCode012
2023-05-28 00:46:56 +09:00
committed by GitHub
parent cb18856fc2
commit 2824423d10

View File

@@ -18,6 +18,9 @@ def validate_config(cfg):
if not cfg.load_in_8bit and cfg.adapter == "lora":
logging.warning("We recommend setting `load_in_8bit: true` for LORA finetuning")
if cfg.trust_remote_code:
logging.warning("`trust_remote_code` is set to true. Please make sure that you reviewed the remote code/model.")
# TODO
# MPT 7b