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
e35fd018
Commit
e35fd018
authored
Mar 10, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error message when GGUF loading fails
Tell user to update llama.cpp instead of falling back to diffusers.
parent
963aa5d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
coderai
coderai
+14
-2
No files found.
coderai
View file @
e35fd018
...
...
@@ -4594,7 +4594,13 @@ def main():
print
(
f
"GGUF image model loaded successfully: {original_model_name}"
)
except
Exception
as
llama_error
:
print
(
f
"llama.cpp load error: {llama_error}"
)
print
(
f
"Will try loading image model on first request instead"
)
print
(
f
"This usually means llama.cpp does not support this model architecture."
)
print
(
f
"Try updating llama.cpp: pip install llama-cpp-python --upgrade"
)
print
(
f
"Or rebuild with latest ggml:"
)
print
(
f
" pip install llama-cpp-python --force-reinstall --no-cache-dir
\\
"
)
print
(
f
" CMAKE_ARGS=
\"
-DGGML_VULKAN=ON
\"
\\
"
)
print
(
f
" FORCE_CMAKE=1"
)
print
(
f
"Image model will load on first request"
)
else
:
print
(
f
"Could not load GGUF image model: no valid model path"
)
...
...
@@ -4992,7 +4998,13 @@ def main():
print(f"GGUF image model loaded successfully: {original_model_name}")
except Exception as llama_error:
print(f"llama.cpp load error: {llama_error}")
print(f"Will try loading image model on first request instead")
print(f"This usually means llama.cpp does not support this model architecture.")
print(f"Try updating llama.cpp: pip install llama-cpp-python --upgrade")
print(f"Or rebuild with latest ggml:")
print(f" pip install llama-cpp-python --force-reinstall --no-cache-dir \\")
print(f" CMAKE_ARGS=\"-DGGML_VULKAN=ON\" \\")
print(f" FORCE_CMAKE=1")
print(f"Image model will load on first request")
else:
print(f"Could not load GGUF image model: no valid model path")
...
...
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