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
c019c1d9
Commit
c019c1d9
authored
Mar 14, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add --image-vulkan-device for separate image model GPU selection
parent
1b57ae00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
coderai
coderai
+18
-0
No files found.
coderai
View file @
c019c1d9
...
...
@@ -4270,6 +4270,12 @@ def parse_args():
default=0,
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(
"--whisper-cpp",
type=str,
...
...
@@ -4812,6 +4818,12 @@ def main():
#
Build
kwargs
based
on
available
files
sd_kwargs
=
{
'diffusion_model_path'
:
model_path
}
#
Set
Vulkan
device
for
image
models
image_vulkan_device
=
args
.
image_vulkan_device
if
args
.
image_vulkan_device
is
not
None
else
args
.
vulkan_device
sd_kwargs
[
'main_gpu'
]
=
image_vulkan_device
print
(
f
"Using Vulkan device {image_vulkan_device} for image model"
)
if
clip_l_path
:
sd_kwargs
[
'llm_path'
]
=
clip_l_path
print
(
f
"DEBUG: Adding llm_path to sd_kwargs: {clip_l_path}"
)
...
...
@@ -5312,6 +5324,12 @@ def main():
# Build kwargs based on available files
sd_kwargs = {'
diffusion_model_path
': model_path}
# Set Vulkan device for image models
image_vulkan_device = args.image_vulkan_device if args.image_vulkan_device is not None else args.vulkan_device
sd_kwargs['
main_gpu
'] = image_vulkan_device
print(f"Using Vulkan device {image_vulkan_device} for image model")
if clip_l_path:
sd_kwargs['
llm_path
'] = clip_l_path
print(f"DEBUG: Adding llm_path to sd_kwargs: {clip_l_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