--- id: tosa-tools version: "2026.5.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # tosa-tools — TOSA Tools: serialization library, reference model, optional MLIR translator License: permissive · Maintenance: active · Downloads: 133.5K/mo ## What it is and what it does TOSA Tools is a composite toolkit implementing the Tensor Operator Set Architecture specification from Arm. It bundles three main components: a reference implementation of TOSA operators, serialization methods for reading and writing TOSA graphs in flatbuffer format, and an optional MLIR translator that converts between TOSA's MLIR dialect and serialized representations. The package is published on PyPI and installs as prebuilt wheels for supported platforms, or can be built from source with a C/C++ toolchain. The toolkit is designed for developers working with TOSA-based machine learning workflows—particularly those integrating TOSA into compiler toolchains, validating operator implementations, or translating between different IR representations. It depends on numpy, flatbuffers, jsonschema, ml-dtypes, and semver for core functionality, and optionally integrates with LLVM/MLIR for translation tasks. Use it for: - Serialize and deserialize TOSA operator graphs for interchange between ML frameworks and compiler backends - Validate TOSA operator implementations using the reference model against specification compliance - Translate TOSA MLIR dialect representations to and from flatbuffer serialized forms in compiler pipelines - Integrate TOSA support into custom ML compiler toolchains requiring standardized operator semantics - Test and debug TOSA graph transformations and optimizations before deployment ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. TOSA Tools provides serialization, reference implementation, and optional MLIR translation for the Tensor Operator Set Architecture specification, enabling you to read, write, and work with TOSA graphs and operators. Yes, if you are working with TOSA in a compiler, ML framework, or operator validation context. The package is actively maintained, permissively licensed, supports current Python versions, and has no known vulnerabilities. Install friction is moderate due to native compilation, but prebuilt wheels are available for common platforms. Not necessary for general ML work outside the TOSA ecosystem. ## Install pip install tosa-tools uv add tosa-tools poetry add tosa-tools ## Installing tosa-tools Before you install: Medium install friction due to compiled native components requiring a C/C++ toolchain. Package is actively maintained with recent releases and supports Python 3.10–3.13 across Linux (x86_64, aarch64), Windows, and macOS platforms, though some platforms are experimental. License in practice: Licensed under Apache-2.0 (permissive), allowing broad commercial and private use with minimal restrictions beyond attribution and liability disclaimers. Quickstart: python -m pip install tosa-tools import tosa.serialization as tosa_ser # Load a TOSA flatbuffer file graph = tosa_ser.TosaGraph() # Use graph for serialization or reference model operations Requires Python 3.10 or later; building from source requires a working C/C++ toolchain and CMake 3.18+. MLIR translator component requires a compatible LLVM/MLIR build. Verify before relying: - Whether prebuilt wheels cover all target platforms or if source compilation is often needed in practice - Performance characteristics and scalability limits for large TOSA graphs - Maturity and stability of experimental platform support (Windows, macOS, aarch64) ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 133.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags TOSA serialization library, tensor operator set architecture, TOSA graph tools, MLIR TOSA translation, TOSA reference model, flatbuffer tensor serialization, TOSA specification implementation, tensor-ir, mlir, compiler-tools [View on SkillFed](https://skillfed.io/packages/tosa-tools) · [View on PyPI](https://pypi.org/project/tosa-tools/)