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
c2ef12d3
Commit
c2ef12d3
authored
Feb 26, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce VRAM estimation overhead from 50% to 25%
parent
30b322a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
videogen.py
videogen.py
+3
-3
No files found.
videogen.py
View file @
c2ef12d3
...
@@ -4211,10 +4211,10 @@ def select_best_model(gen_type, models, vram_gb=24, prefer_quality=True, return_
...
@@ -4211,10 +4211,10 @@ def select_best_model(gen_type, models, vram_gb=24, prefer_quality=True, return_
}
}
# Check VRAM compatibility using base model requirements
# Check VRAM compatibility using base model requirements
# LoRAs and fine-tuned weights add
significant
overhead
# LoRAs and fine-tuned weights add overhead
#
Conservative estimate: base VRAM + 2GB + 50
% for weights/tensors/loras
#
Estimate: base VRAM + 2GB + 25
% for weights/tensors/loras
base_vram
=
parse_vram_estimate
(
base_model_info
.
get
(
"vram"
,
"~10 GB"
))
base_vram
=
parse_vram_estimate
(
base_model_info
.
get
(
"vram"
,
"~10 GB"
))
vram_est
=
base_vram
+
2
+
(
base_vram
*
0.
50
)
# Base + 2GB + 50
%
vram_est
=
base_vram
+
2
+
(
base_vram
*
0.
25
)
# Base + 2GB + 25
%
if
allow_bigger_models
:
if
allow_bigger_models
:
# If allowing bigger models, check if VRAM + 75% of available RAM is sufficient
# If allowing bigger models, check if VRAM + 75% of available RAM is sufficient
available_ram
=
get_available_ram_gb
()
available_ram
=
get_available_ram_gb
()
...
...
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