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
4 changes: 2 additions & 2 deletions extension/llm/export/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

from executorch.extension.export_util.utils import export_to_edge, save_pte_program

from executorch.extension.llm.export.export_passes import RemoveRedundantPermutes
from executorch.extension.llm.export.export_passes import RemoveRedundantTransposes
from executorch.extension.llm.tokenizer.utils import get_tokenizer
from torch.ao.quantization.quantize_pt2e import convert_pt2e, prepare_pt2e
from torch.ao.quantization.quantizer import Quantizer
Expand Down Expand Up @@ -113,7 +113,7 @@ def __init__(
self.calibration_seq_length = calibration_seq_length
self.calibration_data = calibration_data
self.tokenizer_path = tokenizer_path
self.canonical_passes = [RemoveRedundantPermutes()]
self.canonical_passes = [RemoveRedundantTransposes()]

def set_output_dir(self, output_dir: str) -> "LLMEdgeManager":
"""
Expand Down
2 changes: 1 addition & 1 deletion extension/llm/export/export_passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _normalize_dims(tensor: FakeTensor, dim_0: int, dim_1: int):
return dim_0, dim_1


class RemoveRedundantPermutes(ExportPass):
class RemoveRedundantTransposes(ExportPass):
"""
This pass removes redundant transpose nodes in the graph.
It checks if the next node is also a transpose node and if the two transpose nodes undo each other.
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ addopts =
backends/xnnpack/test/serialization
# extension/
extension/llm/modules/test
extension/llm/export
extension/pybindings/test
# Runtime
runtime
Expand Down
Loading