Do not generate non-verified kernels

This commit is contained in:
Po Yen Chen
2025-04-20 07:17:35 +00:00
committed by felix
parent 2632baa05b
commit 60ab71d780
2 changed files with 2 additions and 0 deletions

View File

@@ -541,6 +541,7 @@ def get_fwd_blobs(kernel_filter : Optional[str], receipt, mask_impl) -> Tuple[Fm
cond = dtype in ['fp16', 'bf16']
cond &= mode == 'group'
cond &= pipeline.F_vlayout == 'row'
cond &= ((pipeline.F_logits == 't' and pipeline.F_bias == 'no') or pipeline.F_logits == 'f')
cond &= pipeline.F_squant == 'f'
if not cond:
continue

View File

@@ -738,6 +738,7 @@ def get_fwd_splitkv_blobs(kernel_filter : Optional[str], receipt, mask_impl) ->
cond = dtype in ['fp16', 'bf16']
cond &= mode == "group"
cond &= pipeline.F_vlayout == 'row'
cond &= ((pipeline.F_logits == 't' and pipeline.F_bias == 'no') or pipeline.F_logits == 'f')
cond &= pipeline.F_squant == 'f'
if not cond:
continue