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
ebfa6892
Commit
ebfa6892
authored
Mar 15, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert VK_ICD_FILENAMES - user will set in startup script
parent
3367d957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
coderai
coderai
+0
-26
No files found.
coderai
View file @
ebfa6892
...
...
@@ -3675,8 +3675,6 @@ async def create_image_generation(request: ImageGenerationRequest):
if use_cuda:
print(f"Using CUDA backend for sd.cpp image generation")
# Disable Vulkan to force CUDA only
os.environ['
VK_ICD_FILENAMES
'] = '
/
dev
/
null
'
else:
print(f"Using Vulkan backend for sd.cpp image generation")
...
...
@@ -5253,18 +5251,6 @@ def main():
try
:
from
stable_diffusion_cpp
import
StableDiffusion
#
Disable
Vulkan
to
force
CUDA
only
for
sd
.
cpp
when
using
nvidia
backend
image_backend
=
getattr
(
global_args
,
'image_backend'
,
'auto'
)
backend
=
getattr
(
global_args
,
'backend'
,
'auto'
)
use_cuda
=
(
backend
==
'nvidia'
or
backend
==
'cuda'
or
image_backend
==
'nvidia'
or
image_backend
==
'cuda'
)
if
use_cuda
:
print
(
f
"Using CUDA backend for sd.cpp image generation"
)
#
Disable
Vulkan
to
force
CUDA
only
os
.
environ
[
'VK_ICD_FILENAMES'
]
=
'/dev/null'
else
:
print
(
f
"Using Vulkan backend for sd.cpp image generation"
)
#
Initialize
model_key
to
None
first
so
Python
knows
it
exists
model_key
=
None
...
...
@@ -5811,18 +5797,6 @@ def main():
try:
from stable_diffusion_cpp import StableDiffusion
# Disable Vulkan to force CUDA only for sd.cpp when using nvidia backend
image_backend = getattr(global_args, '
image_backend
', '
auto
')
backend = getattr(global_args, '
backend
', '
auto
')
use_cuda = (backend == '
nvidia
' or backend == '
cuda
' or
image_backend == '
nvidia
' or image_backend == '
cuda
')
if use_cuda:
print(f"Using CUDA backend for sd.cpp image generation")
# Disable Vulkan to force CUDA only
os.environ['
VK_ICD_FILENAMES
'] = '
/
dev
/
null
'
else:
print(f"Using Vulkan backend for sd.cpp image generation")
# Initialize model_key to avoid unbound variable error
model_key = None
...
...
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