Arm backend: Bump to 2026.05 release of tosa-tools#20143
Conversation
Bump the release to 2026.05 and enable the compatibility flag for the serialization to make current and older versions of model-converter being able to deserialize the resulting flatbuffer file. Signed-off-by: Per Åstrand <per.astrand@arm.com> Change-Id: I717d59011bd211e3586e656a8dad62e77a8660dd
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20143
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit c3fe552 with merge base 0d5192c ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
There was a problem hiding this comment.
Pull request overview
Bumps the Arm backend’s tosa-tools dependency to the 2026.05 release and introduces a tosa_dev_mode compile spec flag to enable experimental/dev-version serialization for improved (de)serialization compatibility across tooling versions.
Changes:
- Bump
tosa-toolsfrom2026.2.1to2026.5.0in Arm/VGF dependency sets. - Add
tosa_dev_modetoArmCompileSpec, propagate it through compile-spec filtering, and enable it by default forVgfCompileSpec. - Add the TOSA 1.1 FlatBuffers schema (
tosa_1.1.fbs) and add a unit test ensuringtosa_dev_moderound-trips through compile spec serialization.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Bumps tosa-tools version in the vgf optional dependency set. |
| backends/arm/requirements-arm-tosa.txt | Bumps pinned tosa-tools version for Arm TOSA requirements. |
| backends/arm/common/arm_compile_spec.py | Adds tosa_dev_mode field, (de)serialization support, and setter helper. |
| backends/arm/vgf/compile_spec.py | Enables tosa_dev_mode by default for VGF compile specs. |
| backends/arm/tosa/backend.py | Uses tosa_dev_mode to switch serializer into experimental/dev version mode; propagates flag in filter_tosa_compile_specs. |
| backends/arm/test/misc/test_compile_spec.py | Adds a round-trip test for tosa_dev_mode on VgfCompileSpec. |
| backends/arm/tosa/schemas/tosa_1.1.fbs | Adds the TOSA 1.1 FlatBuffers schema file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| def _set_tosa_dev_mode(self, tosa_dev_mode: bool): | ||
| """Sets whether to enable TOSA software development mode. | ||
|
|
||
| Args: | ||
| tosa_dev_mode: Boolean indicating whether to enable TOSA software development mode. | ||
|
|
||
| """ | ||
| self.tosa_dev_mode = tosa_dev_mode | ||
| return self |
| # backends/arm/requirements-arm-tosa.txt. | ||
| "ethos-u-vela==5.0.0", | ||
| "ml_dtypes==0.5.1", | ||
| "tosa-tools==2026.2.1", |
There was a problem hiding this comment.
I think we should bump this as well?
Summary
Bump the release to 2026.05 and enable the compatibility flag for the serialization to make current and older versions of model-converter being able to deserialize the resulting flatbuffer file.
Test plan
Tested through existing CI.
cc @digantdesai @freddan80 @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani