Skip to content

Commit aebf42e

Browse files
authored
Update comments for xnnpack partitioner
Differential Revision: D93900109 Pull Request resolved: #17645
1 parent 43ee3f9 commit aebf42e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/models/llama/export_llama_lib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,8 @@ def _get_xnnpack_partitioners(llm_config: LlmConfig) -> Optional[List[Partitione
11711171
"""Get XNNPACK partitioners for multimethod_lora export."""
11721172
partitioners = []
11731173

1174+
# Order matters here, dynamic quantization should be applied first when
1175+
# both xnnpack and xnnpack_extended_ops are enabled.
11741176
if llm_config.backend.xnnpack.enabled:
11751177
partitioners.append(
11761178
get_xnnpack_partitioner(dynamic_quant_only_partitioner=True)

0 commit comments

Comments
 (0)