We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6429e4 commit 8a363d3Copy full SHA for 8a363d3
tests/compile/test_fusions_e2e.py
@@ -160,9 +160,13 @@ def test_attn_quant(
160
with caplog_mp_spawn(logging.DEBUG) as log_holder:
161
run_model(compilation_config, model_name, **model_kwargs)
162
163
- assert f"Fused quant onto {attention_fusions} attention nodes" in log_holder.text, (
164
- log_holder.text
+ matches = re.findall(
+ r"\[compilation/fusion_attn.py:\d+] "
165
+ r"Fused quant onto (\d+) attention nodes",
166
+ log_holder.text,
167
)
168
+ assert len(matches) == 1, log_holder.text
169
+ assert int(matches[0]) == attention_fusions
170
171
172
# TODO(luka) test both in nightly
0 commit comments