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
2ea0c3d6
Commit
2ea0c3d6
authored
Apr 12, 2025
by
muyangli
Browse files
fix the number of steps of the memory test
parent
efca5106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/flux/test_flux_memory.py
tests/flux/test_flux_memory.py
+1
-1
No files found.
tests/flux/test_flux_memory.py
View file @
2ea0c3d6
...
@@ -38,7 +38,7 @@ def test_flux_schnell_memory(use_qencoder: bool, cpu_offload: bool, memory_limit
...
@@ -38,7 +38,7 @@ def test_flux_schnell_memory(use_qencoder: bool, cpu_offload: bool, memory_limit
pipeline
=
pipeline
.
to
(
"cuda"
)
pipeline
=
pipeline
.
to
(
"cuda"
)
pipeline
(
pipeline
(
"A cat holding a sign that says hello world"
,
width
=
1024
,
height
=
1024
,
num_inference_steps
=
50
,
guidance_scale
=
0
"A cat holding a sign that says hello world"
,
width
=
1024
,
height
=
1024
,
num_inference_steps
=
4
,
guidance_scale
=
0
)
)
memory
=
torch
.
cuda
.
max_memory_reserved
(
0
)
/
1024
**
3
memory
=
torch
.
cuda
.
max_memory_reserved
(
0
)
/
1024
**
3
assert
memory
<
memory_limit
assert
memory
<
memory_limit
...
...
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