Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
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
coderai
Commits
84345e4d
Commit
84345e4d
authored
Mar 14, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug logging for loadall mode preloading
parent
7d953711
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
coderai
coderai
+5
-0
No files found.
coderai
View file @
84345e4d
...
@@ -4707,6 +4707,7 @@ def main():
...
@@ -4707,6 +4707,7 @@ def main():
multi_model_manager.set_load_mode(load_mode)
multi_model_manager.set_load_mode(load_mode)
# Pre-load models based on mode
# Pre-load models based on mode
print(f"
DEBUG
:
load_mode
at
line
4710
=
'{load_mode}'
")
if load_mode == "
loadall
":
if load_mode == "
loadall
":
# Load all models into VRAM up to full capacity, then offload to CPU RAM
# Load all models into VRAM up to full capacity, then offload to CPU RAM
print("
\
n
===
Load
All
Mode
===
")
print("
\
n
===
Load
All
Mode
===
")
...
@@ -4716,6 +4717,7 @@ def main():
...
@@ -4716,6 +4717,7 @@ def main():
print(f"
Pre
-
loading
main
text
model
:
{
model_names
[
0
]}
")
print(f"
Pre
-
loading
main
text
model
:
{
model_names
[
0
]}
")
# Load image model (first one only in loadall mode currently)
# Load image model (first one only in loadall mode currently)
print(f"
DEBUG
:
image_models
check
at
line
4718
:
{
image_models
}
")
if image_models:
if image_models:
print(f"
Pre
-
loading
image
model
:
{
image_models
[
0
]}
")
print(f"
Pre
-
loading
image
model
:
{
image_models
[
0
]}
")
...
@@ -4967,6 +4969,7 @@ def main():
...
@@ -4967,6 +4969,7 @@ def main():
print
(
f
" Image model will load on first request"
)
print
(
f
" Image model will load on first request"
)
#
Load
audio
model
#
Load
audio
model
print
(
f
"DEBUG: audio_models check at line 4970: {audio_models}"
)
if
audio_models
:
if
audio_models
:
print
(
f
"Pre-loading audio model: {audio_models[0]}"
)
print
(
f
"Pre-loading audio model: {audio_models[0]}"
)
...
@@ -5012,7 +5015,9 @@ def main():
...
@@ -5012,7 +5015,9 @@ def main():
#
Pre
-
load
first
audio
model
at
startup
if
:
#
Pre
-
load
first
audio
model
at
startup
if
:
#
-
Using
loadall
or
loadswap
mode
,
OR
#
-
Using
loadall
or
loadswap
mode
,
OR
#
-
No
main
model
is
specified
(
only
audio
model
configured
)
#
-
No
main
model
is
specified
(
only
audio
model
configured
)
print
(
f
"DEBUG: load_mode at line 5015 = '{load_mode}', model_names = {model_names}, audio_models = {audio_models}"
)
should_preload
=
load_mode
in
(
"loadall"
,
"loadswap"
)
or
(
not
model_names
and
audio_models
)
should_preload
=
load_mode
in
(
"loadall"
,
"loadswap"
)
or
(
not
model_names
and
audio_models
)
print
(
f
"DEBUG: should_preload = {should_preload}"
)
#
Initialize
whisper
-
server
if
specified
#
Initialize
whisper
-
server
if
specified
if
args
.
whisper_server
:
if
args
.
whisper_server
:
...
...
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