Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tests/openvino/test_exporters_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ class OVCLIExportTestCase(unittest.TestCase):
"whisper",
"f8e4m3",
"--dataset librispeech --num-samples 1 --smooth-quant-alpha 0.9 --trust-remote-code",
{"encoder": 8, "decoder": 12, "decoder_with_past": 11}
{"encoder": 9, "decoder": 13, "decoder_with_past": 12}
if is_transformers_version("<=", "4.36.0")
else {"encoder": 8, "decoder": 12, "decoder_with_past": 25},
else {"encoder": 9, "decoder": 14, "decoder_with_past": 25},
(
{"encoder": {"f8e4m3": 8}, "decoder": {"f8e4m3": 11}, "decoder_with_past": {"f8e4m3": 9}}
if is_transformers_version("<=", "4.36.0")
Expand All @@ -231,7 +231,7 @@ class OVCLIExportTestCase(unittest.TestCase):
"f8e4m3",
"--dataset wikitext2 --smooth-quant-alpha 0.9 --trust-remote-code",
{
"model": 13,
"model": 15,
},
{
"model": {"f8e4m3": 16},
Expand All @@ -243,7 +243,7 @@ class OVCLIExportTestCase(unittest.TestCase):
"nf4_f8e4m3",
"--dataset wikitext2 --num-samples 1 --group-size 16 --trust-remote-code --ratio 0.5",
{
"model": 14,
"model": 16,
},
{
"model": {"f8e4m3": 11, "nf4": 5},
Expand All @@ -255,7 +255,7 @@ class OVCLIExportTestCase(unittest.TestCase):
"nf4_f8e5m2",
"--dataset wikitext2 --num-samples 1 --group-size 16 --trust-remote-code --sym --ratio 0.5",
{
"model": 14,
"model": 16,
},
{
"model": {"f8e5m2": 11, "nf4": 5},
Expand All @@ -267,7 +267,7 @@ class OVCLIExportTestCase(unittest.TestCase):
"int4_f8e4m3",
"--dataset wikitext2 --num-samples 1 --group-size 16 --trust-remote-code --sym --ratio 0.5",
{
"model": 14,
"model": 16,
},
{
"model": {"f8e4m3": 11, "int4": 5},
Expand All @@ -279,7 +279,7 @@ class OVCLIExportTestCase(unittest.TestCase):
"int4_f8e5m2",
"--dataset wikitext2 --num-samples 1 --group-size 16 --trust-remote-code",
{
"model": 13,
"model": 15,
},
{
"model": {"f8e5m2": 2, "int4": 28},
Expand Down Expand Up @@ -309,7 +309,7 @@ class OVCLIExportTestCase(unittest.TestCase):
"f8e5m2",
"--dataset laion/220k-GPT4Vision-captions-from-LIVIS --num-samples 1 --trust-remote-code",
{
"unet": 174,
"unet": 198,
"vae_decoder": 0,
"vae_encoder": 0,
"text_encoder": 0,
Expand All @@ -329,7 +329,7 @@ class OVCLIExportTestCase(unittest.TestCase):
"f8e4m3",
"--dataset laion/filtered-wit --num-samples 1 --trust-remote-code",
{
"unet": 79,
"unet": 87,
"vae_decoder": 0,
"vae_encoder": 0,
"text_encoder": 0,
Expand Down
20 changes: 10 additions & 10 deletions tests/openvino/test_quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
class OVQuantizerTest(unittest.TestCase):
SUPPORTED_ARCHITECTURES_TORCH_MODEL = (
(OVModelForSequenceClassification, "bert", 32, 35),
(OVModelForCausalLM, "gpt2", 41 if is_transformers_version("<", "4.42.0") else 31, 22),
(OVModelForCausalLM, "gpt2", 31, 22),
)
# TODO (nikita-savelyevv): Extend for OVModelForSpeechSeq2Seq and OVStableDiffusionPipeline
SUPPORTED_ARCHITECTURES_OV_MODEL = (
Expand All @@ -146,7 +146,7 @@ class OVQuantizerTest(unittest.TestCase):
dtype="f8e4m3",
),
{
"model": 13,
"model": 15,
},
{
"model": {"f8e4m3": 16},
Expand All @@ -171,7 +171,7 @@ class OVQuantizerTest(unittest.TestCase):
num_samples=1,
),
{
"model": 7,
"model": 8,
},
{
"model": {"f8e4m3": 8, "nf4": 2},
Expand All @@ -196,7 +196,7 @@ class OVQuantizerTest(unittest.TestCase):
num_samples=1,
),
{
"model": 7,
"model": 8,
},
{
"model": {"f8e5m2": 8, "nf4": 2},
Expand All @@ -212,7 +212,7 @@ class OVQuantizerTest(unittest.TestCase):
num_samples=1,
),
{
"model": 14,
"model": 16,
},
{
"model": {"f8e4m3": 11, "int4": 10},
Expand All @@ -228,7 +228,7 @@ class OVQuantizerTest(unittest.TestCase):
num_samples=1,
),
{
"model": 13,
"model": 15,
},
{
"model": {"f8e5m2": 2, "int4": 28},
Expand All @@ -245,7 +245,7 @@ class OVQuantizerTest(unittest.TestCase):
trust_remote_code=True,
),
{
"unet": 174,
"unet": 198,
"vae_decoder": 0,
"vae_encoder": 0,
"text_encoder": 0,
Expand All @@ -269,7 +269,7 @@ class OVQuantizerTest(unittest.TestCase):
trust_remote_code=True,
),
{
"unet": 79,
"unet": 87,
"vae_decoder": 0,
"vae_encoder": 0,
"text_encoder": 0,
Expand Down Expand Up @@ -1454,7 +1454,7 @@ class OVPipelineQuantizationTest(unittest.TestCase):
}
),
{
"model": 14,
"model": 16,
},
{
"model": {"f8e4m3": 11, "nf4": 5},
Expand All @@ -1478,7 +1478,7 @@ class OVPipelineQuantizationTest(unittest.TestCase):
}
),
{
"unet": 112,
"unet": 124,
"vae_decoder": 0,
"vae_encoder": 0,
"text_encoder": 0,
Expand Down