Remove explicit definition of cfg.inference

This commit is contained in:
Angainor Development
2023-06-10 19:06:10 +02:00
committed by GitHub
parent bd3b537344
commit c2508987a6

View File

@@ -182,9 +182,6 @@ def train(
if cfg.bf16:
cfg.fp16 = True
cfg.bf16 = False
# Store inference mode into cfg when passed via args
cfg.inference = True if "inference" in kwargs else cfg.get("inference", False)
# load the tokenizer first
tokenizer_config = cfg.tokenizer_config or cfg.base_model_config