Merge pull request #86 from OpenAccess-AI-Collective/NanoCode012-warning-remote-code
Feat: Add warning for `trust_remote_code`
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user