mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 06:12:50 +08:00
fix arg check
Former-commit-id: 9cb1f119a4757c4fd2dc6db9335589d94f6ab5eb
This commit is contained in:
parent
a437424381
commit
d5d3b2a42f
@ -108,7 +108,11 @@ def get_train_args(
|
|||||||
logger.warning("`dev_ratio` is incompatible with `streaming`. Disabling development set.")
|
logger.warning("`dev_ratio` is incompatible with `streaming`. Disabling development set.")
|
||||||
data_args.dev_ratio = 0
|
data_args.dev_ratio = 0
|
||||||
|
|
||||||
assert not (training_args.max_steps == -1 and data_args.streaming), "Please specify `max_steps` in streaming mode."
|
assert not (training_args.max_steps == -1 and data_args.streaming), \
|
||||||
|
"Please specify `max_steps` in streaming mode."
|
||||||
|
|
||||||
|
assert training_args.evaluation_strategy == "no" or (not data_args.streaming), \
|
||||||
|
"Streaming mode does not support evaluation currently."
|
||||||
|
|
||||||
training_args.optim = "adamw_torch" if training_args.optim == "adamw_hf" else training_args.optim # suppress warning
|
training_args.optim = "adamw_torch" if training_args.optim == "adamw_hf" else training_args.optim # suppress warning
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user