Skip to content

Commit 0bda668

Browse files
committed
Update
[ghstack-poisoned]
2 parents 9cdcde6 + 1d34be9 commit 0bda668

4 files changed

Lines changed: 40 additions & 19 deletions

File tree

.ci/scripts/wheel/test_linux.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# LICENSE file in the root directory of this source tree.
88

99
import platform
10+
import sys
1011
import tempfile
1112
from pathlib import Path
1213

@@ -58,15 +59,22 @@
5859
with tempfile.TemporaryDirectory() as work_dir:
5960
test_cpp_sdk.run_tests(Path(work_dir))
6061

61-
test_base.run_tests(
62-
model_tests=[
63-
test_base.ModelTest(
64-
model=Model.Mv3,
65-
backend=Backend.XnnpackQuantizationDelegation,
66-
),
62+
model_tests = [
63+
test_base.ModelTest(
64+
model=Model.Mv3,
65+
backend=Backend.XnnpackQuantizationDelegation,
66+
),
67+
]
68+
# The wheel declares coremltools only below 3.14, because that release publishes no build for
69+
# it, so on 3.14 this case would fail on the missing import rather than exercise Core ML.
70+
if sys.version_info < (3, 14):
71+
model_tests.append(
6772
test_base.ModelTest(
6873
model=Model.Mv3,
6974
backend=Backend.CoreMlExportOnly,
70-
),
71-
]
72-
)
75+
)
76+
)
77+
else:
78+
print("Skipping the Core ML case: coremltools has no Python 3.14 build")
79+
80+
test_base.run_tests(model_tests=model_tests)

.ci/scripts/wheel/test_macos.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,30 @@
66
# This source code is licensed under the BSD-style license found in the
77
# LICENSE file in the root directory of this source tree.
88

9+
import sys
10+
911
import test_base
1012
from examples.models import Backend, Model
1113

1214
if __name__ == "__main__":
1315
test_base.test_cmsis_nn_install()
1416

15-
test_base.run_tests(
16-
model_tests=[
17-
test_base.ModelTest(
18-
model=Model.Mv3,
19-
backend=Backend.XnnpackQuantizationDelegation,
20-
),
17+
model_tests = [
18+
test_base.ModelTest(
19+
model=Model.Mv3,
20+
backend=Backend.XnnpackQuantizationDelegation,
21+
),
22+
]
23+
# The wheel declares coremltools only below 3.14, because that release publishes no build for
24+
# it, so on 3.14 this case would fail on the missing import rather than exercise Core ML.
25+
if sys.version_info < (3, 14):
26+
model_tests.append(
2127
test_base.ModelTest(
2228
model=Model.Mv3,
2329
backend=Backend.CoreMlExportAndTest,
24-
),
25-
]
26-
)
30+
)
31+
)
32+
else:
33+
print("Skipping the Core ML case: coremltools has no Python 3.14 build")
34+
35+
test_base.run_tests(model_tests=model_tests)

devtools/etdump/etdump_flatcc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class ETDumpGen : public ::executorch::runtime::EventTracer {
7474
public:
7575
ETDumpGen(::executorch::runtime::Span<uint8_t> buffer = {nullptr, (size_t)0});
7676
~ETDumpGen() override;
77+
void clear_builder();
7778

7879
void create_event_block(const char* name) override;
7980
virtual ::executorch::runtime::EventTracerEntry start_profiling(

requirements-examples.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
datasets == 3.6.0 # 4.0.0 deprecates trust_remote_code and load scripts. For now pin to 3.6.0
44
timm == 1.0.7
55
torchsr == 1.0.4
6-
torchtune @ git+https://github.com/pytorch/torchtune.git@3c1872ace149f03ef4ffec765d3f0a5fd0399497
6+
# torchtune caps pyarrow below 21, and no pyarrow in that range ships a cp314 wheel,
7+
# so pip falls back to the sdist and its Arrow C++ build fails. Skip it on 3.14 until
8+
# torchtune relaxes the cap; nothing that needs torchtune runs on 3.14 yet.
9+
torchtune @ git+https://github.com/pytorch/torchtune.git@3c1872ace149f03ef4ffec765d3f0a5fd0399497 ; python_version < "3.14"
710
transformers == 5.0.0rc1

0 commit comments

Comments
 (0)