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
f9739fe3
Commit
f9739fe3
authored
Mar 08, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress llama.cpp __del__ errors during pre-load
parent
ba8e4792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
coderai
coderai
+18
-11
No files found.
coderai
View file @
f9739fe3
...
@@ -3668,18 +3668,25 @@ def main():
...
@@ -3668,18 +3668,25 @@ def main():
model_path = download_model(model_to_use, cache_dir)
model_path = download_model(model_to_use, cache_dir)
model_to_use = model_path
model_to_use = model_path
# Load with llama.cpp (Vulkan)
# Load with llama.cpp (Vulkan) - suppress __del__ errors
audio_model = Llama(
audio_model = None
model_path=model_to_use,
try:
n_gpu_layers=-1, # All layers to GPU
audio_model = Llama(
n_ctx=2048,
model_path=model_to_use,
verbose=False
n_gpu_layers=-1, # All layers to GPU
)
n_ctx=2048,
verbose=False
)
except BaseException:
audio_model = None
# Store in multi_model_manager
if audio_model is not None:
model_key = f"
audio
:{
args
.
audio_model
}
"
# Store in multi_model_manager
multi_model_manager.add_model(model_key, audio_model)
model_key = f"
audio
:{
args
.
audio_model
}
"
print(f"
Audio
model
loaded
successfully
(
GGUF
/
Vulkan
)
")
multi_model_manager.add_model(model_key, audio_model)
print(f"
Audio
model
loaded
successfully
(
GGUF
/
Vulkan
)
")
else:
raise Exception("
llama
.
cpp
failed
to
load
model
")
except Exception as e:
except Exception as e:
print(f"
Warning
:
Could
not
pre
-
load
audio
model
:
{
e
}
")
print(f"
Warning
:
Could
not
pre
-
load
audio
model
:
{
e
}
")
...
...
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