Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLaMA-Factory
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbis-public
LLaMA-Factory
Commits
c00f0771
Commit
c00f0771
authored
1 year ago
by
hiyouga
Browse files
Options
Downloads
Patches
Plain Diff
Update parser.py
parent
5d62a51c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/llmtuner/hparams/parser.py
+3
-3
3 additions, 3 deletions
src/llmtuner/hparams/parser.py
with
3 additions
and
3 deletions
src/llmtuner/hparams/parser.py
+
3
−
3
View file @
c00f0771
...
...
@@ -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.
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment