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
d3d67441
Commit
d3d67441
authored
Feb 25, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix auto mode model selection issues
parent
0a02552e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
videogen
videogen
+12
-2
No files found.
videogen
View file @
d3d67441
...
...
@@ -3753,12 +3753,22 @@ def select_best_model(gen_type, models, vram_gb=24, prefer_quality=True, return_
# Check VRAM compatibility using base model requirements
# LoRAs add a small overhead (~1-2GB)
vram_est = parse_vram_estimate(base_model_info.get("vram", "~10 GB")) + 2
if vram_est > vram_gb
* 1.1: # Allow 10% margin
if vram_est > vram_gb
: # No margin - only allow models that fit within available VRAM
continue
# Get capabilities from base model
base_caps = detect_model_type(base_model_info)
# Check if base model supports the required generation type
if gen_type_str == "t2v" and not base_caps["t2v"]:
continue
elif gen_type_str == "i2v" and not base_caps["i2v"]:
continue
elif gen_type_str == "t2i" and not base_caps["t2i"]:
continue
elif gen_type_str == "i2i" and not base_caps["i2i"]:
continue
# Score the LoRA
score = 0
reasons = []
...
...
@@ -3895,7 +3905,7 @@ def select_best_model(gen_type, models, vram_gb=24, prefer_quality=True, return_
# Non-LoRA model handling (original logic)
# Check VRAM compatibility
vram_est = parse_vram_estimate(info.get("vram", "~10 GB"))
if vram_est > vram_gb
* 1.1: # Allow 10% margin
if vram_est > vram_gb
: # No margin - only allow models that fit within available VRAM
continue
# Check model capabilities
...
...
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