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
df5505ae
Commit
df5505ae
authored
Apr 12, 2025
by
muyangli
Browse files
pytest test multiple batches
parent
c00fb4b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
tests/flux/test_multiple_batch.py
tests/flux/test_multiple_batch.py
+26
-0
No files found.
tests/flux/test_multiple_batch.py
0 → 100644
View file @
df5505ae
import
pytest
from
nunchaku.utils
import
get_precision
,
is_turing
from
.utils
import
run_test
@
pytest
.
mark
.
skipif
(
is_turing
(),
reason
=
"Skip tests due to using Turing GPUs"
)
@
pytest
.
mark
.
parametrize
(
"height,width,attention_impl,cpu_offload,expected_lpips,batch_size"
,
[
(
1024
,
1024
,
"nunchaku-fp16"
,
False
,
0.126
,
2
),
(
1920
,
1080
,
"flashattn2"
,
False
,
0.141
,
4
),
],
)
def
test_int4_schnell
(
height
:
int
,
width
:
int
,
attention_impl
:
str
,
cpu_offload
:
bool
,
expected_lpips
:
float
,
batch_size
:
int
):
run_test
(
precision
=
get_precision
(),
height
=
height
,
width
=
width
,
attention_impl
=
attention_impl
,
cpu_offload
=
cpu_offload
,
expected_lpips
=
expected_lpips
,
batch_size
=
batch_size
,
)
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