Skip to content

Commit b8f0fa6

Browse files
committed
up
1 parent eb22885 commit b8f0fa6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/models/voxtral_realtime/export_voxtral_rt.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ def _linear_bias_decomposition(input, weight, bias=None):
379379

380380
def lower_to_executorch(programs, metadata, backend="xnnpack"):
381381
"""Lower exported programs to ExecuTorch."""
382+
transform_passes = None
383+
382384
if backend == "xnnpack":
383385
from executorch.backends.xnnpack.partition.xnnpack_partitioner import (
384386
XnnpackDynamicallyQuantizedPartitioner,
@@ -434,15 +436,18 @@ def lower_to_executorch(programs, metadata, backend="xnnpack"):
434436
partitioner[key] = [CudaPartitioner(compile_specs)]
435437
elif backend == "mlx":
436438
from executorch.backends.mlx.partitioner import MLXPartitioner
439+
from executorch.backends.mlx.passes import get_default_passes
437440

438441
print("\nLowering to ExecuTorch with MLX...")
439442
partitioner = {key: [MLXPartitioner()] for key in programs}
443+
transform_passes = get_default_passes()
440444
else:
441445
print("\nLowering to ExecuTorch (portable)...")
442446
partitioner = []
443447

444448
et_prog = to_edge_transform_and_lower(
445449
programs,
450+
transform_passes=transform_passes,
446451
partitioner=partitioner,
447452
compile_config=EdgeCompileConfig(
448453
_check_ir_validity=False,

0 commit comments

Comments
 (0)