Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
b705afb9
Commit
b705afb9
authored
Apr 12, 2025
by
muyangli
Browse files
uses model cpu offload instead of per-layer offload to speedup test ci
parent
e8de2628
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/flux/utils.py
tests/flux/utils.py
+1
-1
No files found.
tests/flux/utils.py
View file @
b705afb9
...
@@ -191,7 +191,7 @@ def run_test(
...
@@ -191,7 +191,7 @@ def run_test(
if
gpu_memory
>
36
*
1024
:
if
gpu_memory
>
36
*
1024
:
pipeline
=
pipeline
.
to
(
"cuda"
)
pipeline
=
pipeline
.
to
(
"cuda"
)
else
:
else
:
pipeline
.
enable_
sequentia
l_cpu_offload
()
pipeline
.
enable_
mode
l_cpu_offload
()
if
len
(
lora_names
)
>
0
:
if
len
(
lora_names
)
>
0
:
for
i
,
(
lora_name
,
lora_strength
)
in
enumerate
(
zip
(
lora_names
,
lora_strengths
)):
for
i
,
(
lora_name
,
lora_strength
)
in
enumerate
(
zip
(
lora_names
,
lora_strengths
)):
...
...
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