Skip to content

Commit 962027a

Browse files
authored
Update partitioner_lib.py
1 parent 184b020 commit 962027a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extension/llm/export/partitioner_lib.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ def _validate_ios_version() -> None:
158158
op_linear_quantizer_config=op_linear_quantizer_config,
159159
)
160160

161-
take_over_mutable_buffer = minimum_deployment_target >= ct.target.iOS18
161+
# ExecuTorch does not build CoreML delegate runtime to handle state
162+
# when using OSS scripts, so we define take_over_mutable_buffer = False,
163+
# even when target is iOS18
164+
# take_over_mutable_buffer = minimum_deployment_target >= ct.target.iOS18
165+
take_over_mutable_buffer = False
162166
return CoreMLPartitioner( # pyre-fixme[16]
163167
compile_specs=compile_specs,
164168
take_over_mutable_buffer=take_over_mutable_buffer,

0 commit comments

Comments
 (0)