fix config, #1191
Former-commit-id: 5dbc9b355e85b203cb43ff72589374f0e04be391
This commit is contained in:
@@ -186,7 +186,7 @@ def get_train_args(
|
||||
|
||||
# postprocess model_args
|
||||
model_args.compute_dtype = (
|
||||
torch.bfloat16 if training_args.bf16 else (torch.float16 if training_args.fp16 else torch.float32)
|
||||
torch.bfloat16 if training_args.bf16 else (torch.float16 if training_args.fp16 else None)
|
||||
)
|
||||
model_args.model_max_length = data_args.cutoff_len
|
||||
|
||||
|
||||
Reference in New Issue
Block a user