Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
videogen
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
videogen
Commits
14ae5bdc
Commit
14ae5bdc
authored
Feb 24, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --retry argument to control model retry attempts on failure
parent
2fe62c6f
Pipeline
#227
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
videogen
videogen
+5
-1
No files found.
videogen
View file @
14ae5bdc
...
...
@@ -3325,7 +3325,8 @@ def main(args):
# Store original args for retry
args._auto_mode = True
args._retry_count = 0
args._max_retries = 3 # Maximum number of model retries
# Use --retry argument or default to 3
args._max_retries = getattr(args, '
retry
', 3)
if args.distribute and args.interface:
os.environ["NCCL_SOCKET_IFNAME"] = args.interface
...
...
@@ -4247,6 +4248,9 @@ List TTS voices:
#
Auto
mode
arguments
parser
.
add_argument
(
"--auto"
,
action
=
"store_true"
,
help
=
"Automatic mode: detect generation type and NSFW from prompts, select best models automatically"
)
parser
.
add_argument
(
"--retry"
,
type
=
int
,
default
=
3
,
metavar
=
"COUNT"
,
help
=
"Number of retry attempts with alternative models when a model fails (default: 3, use 0 to disable)"
)
parser
.
add_argument
(
"--prefer-speed"
,
action
=
"store_true"
,
help
=
"In auto mode, prefer faster models over higher quality"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment