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
0f102700
Commit
0f102700
authored
Mar 14, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove local os import that was causing scope issue
parent
12bedc4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
coderai
coderai
+0
-10
No files found.
coderai
View file @
0f102700
...
...
@@ -4821,11 +4821,6 @@ def main():
#
Set
Vulkan
device
for
image
models
via
GGML_VULKAN_DEVICE
environment
variable
if
args
.
image_vulkan_device
is
not
None
:
import
os
#
Map
Vulkan
device
index
to
GGML_VULKAN_DEVICE
value
#
Device
0
=
first
GPU
,
Device
1
=
second
GPU
,
etc
.
#
GGML_VULKAN_DEVICE
=
0
uses
integrated
GPU
,
GGML_VULKAN_DEVICE
=
1
uses
discrete
GPU
#
For
multiple
GPUs
,
we
need
to
use
VK_ICD_FILENAMES
or
other
methods
os
.
environ
[
'GGML_VULKAN_DEVICE'
]
=
str
(
args
.
image_vulkan_device
)
print
(
f
"Setting GGML_VULKAN_DEVICE={args.image_vulkan_device} for image model"
)
...
...
@@ -5332,11 +5327,6 @@ def main():
# Set Vulkan device for image models via GGML_VULKAN_DEVICE environment variable
if args.image_vulkan_device is not None:
import os
# Map Vulkan device index to GGML_VULKAN_DEVICE value
# Device 0 = first GPU, Device 1 = second GPU, etc.
# GGML_VULKAN_DEVICE=0 uses integrated GPU, GGML_VULKAN_DEVICE=1 uses discrete GPU
# For multiple GPUs, we need to use VK_ICD_FILENAMES or other methods
os.environ['
GGML_VULKAN_DEVICE
'] = str(args.image_vulkan_device)
print(f"Setting GGML_VULKAN_DEVICE={args.image_vulkan_device} for image model")
...
...
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