Skip to content
Snippets Groups Projects
Commit c00f0771 authored by hiyouga's avatar hiyouga
Browse files

Update parser.py

parent 5d62a51c
Branches
No related tags found
No related merge requests found
......@@ -174,9 +174,6 @@ def get_train_args(args: Optional[Dict[str, Any]] = None) -> _TRAIN_CLS:
):
raise ValueError("Distributed training does not support layer-wise GaLore.")
if finetuning_args.use_galore and training_args.deepspeed is not None:
raise ValueError("GaLore is incompatible with DeepSpeed yet.")
if (
finetuning_args.use_badam
and finetuning_args.badam_mode == "layer"
......@@ -184,6 +181,9 @@ def get_train_args(args: Optional[Dict[str, Any]] = None) -> _TRAIN_CLS:
):
raise ValueError("Layer-wise BAdam does not yet support distributed training, use ratio-wise BAdam.")
if (finetuning_args.use_galore or finetuning_args.use_badam) and training_args.deepspeed is not None:
raise ValueError("GaLore and BAdam are incompatible with DeepSpeed yet.")
if model_args.infer_backend == "vllm":
raise ValueError("vLLM backend is only available for API, CLI and Web.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment