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
7f5168c2
Commit
7f5168c2
authored
Mar 14, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove --image-vulkan-device - not supported by stable-diffusion-cpp
parent
f4034d4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
coderai
coderai
+1
-14
No files found.
coderai
View file @
7f5168c2
...
@@ -4270,12 +4270,7 @@ def parse_args():
...
@@ -4270,12 +4270,7 @@ def parse_args():
default=0,
default=0,
help="Vulkan GPU device ID to use for Whisper audio transcription (default: 0). Only used when using Vulkan backend.",
help="Vulkan GPU device ID to use for Whisper audio transcription (default: 0). Only used when using Vulkan backend.",
)
)
parser.add_argument(
"--image-vulkan-device",
type=int,
default=None,
help="Vulkan GPU device ID to use for image generation models (default: same as --vulkan-device). Use --vulkan-list-devices to see available devices",
)
parser.add_argument(
parser.add_argument(
"--whisper-cpp",
"--whisper-cpp",
type=str,
type=str,
...
@@ -4755,10 +4750,6 @@ def main():
...
@@ -4755,10 +4750,6 @@ def main():
print
(
f
"llama.cpp load error: {llama_error}"
)
print
(
f
"llama.cpp load error: {llama_error}"
)
print
(
f
"Trying stable-diffusion-cpp-python fallback..."
)
print
(
f
"Trying stable-diffusion-cpp-python fallback..."
)
#
Try
stable
-
diffusion
-
cpp
-
python
as
fallback
#
Try
stable
-
diffusion
-
cpp
-
python
as
fallback
#
Set
Vulkan
device
BEFORE
importing
stable_diffusion_cpp
if
args
.
image_vulkan_device
is
not
None
:
os
.
environ
[
'GGML_VULKAN_DEVICE'
]
=
str
(
args
.
image_vulkan_device
)
print
(
f
"Setting GGML_VULKAN_DEVICE={args.image_vulkan_device} for image model"
)
try
:
try
:
from
stable_diffusion_cpp
import
StableDiffusion
from
stable_diffusion_cpp
import
StableDiffusion
...
@@ -5260,10 +5251,6 @@ def main():
...
@@ -5260,10 +5251,6 @@ def main():
print(f"llama.cpp load error: {llama_error}")
print(f"llama.cpp load error: {llama_error}")
print(f"Trying stable-diffusion-cpp-python fallback...")
print(f"Trying stable-diffusion-cpp-python fallback...")
# Try stable-diffusion-cpp-python as fallback
# Try stable-diffusion-cpp-python as fallback
# Set Vulkan device BEFORE importing stable_diffusion_cpp
if args.image_vulkan_device is not None:
os.environ['
GGML_VULKAN_DEVICE
'] = str(args.image_vulkan_device)
print(f"Setting GGML_VULKAN_DEVICE={args.image_vulkan_device} for image model")
try:
try:
from stable_diffusion_cpp import StableDiffusion
from stable_diffusion_cpp import StableDiffusion
...
...
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