Mobilint NPU Python
Shared runtime support for applications that run MXQ models on Mobilint NPUs or ONNX models through ONNX Runtime.
mblt-npu-python provides the common backend, device-selection rules, Hugging Face
artifact resolution, and model-detail logging used by Mobilint Python packages. It
is a library dependency, rather than an end-user model catalog.
Version 0.0.0 is the initial standalone release.
logging ships here rather than with its only caller because the two are mutually
dependent — npu_backend imports log_model_details, and log_model_details reads
a MobilintNPUBackend's fields.
Installation
pip install mblt-npu-python
This package requires a supported Linux environment with
mobilint-qb-runtime available
and Python 3.10 through 3.12.
Public API
Import the backend from mblt_npu:
from mblt_npu import MobilintNPUBackend
backend = MobilintNPUBackend(
mxq_path="model.mxq",
core_mode="single",
)
backend.create()
try:
backend.launch()
outputs = backend.mxq_model.infer([input_tensor])
finally:
backend.dispose()
MobilintNPUBackend selects the appropriate implementation from
target_device (default: "aries-rb"). "aries-rb" selects
MobilintAriesBackend; "regulus-ra" and "regulus-rb" select
MobilintRegulusBackend. The former generic values "aries" and "regulus"
remain accepted when loading older configurations.
backend_class_for() and BACKEND_CLASSES are available for integrations that
need to inspect the supported targets.
For ONNX inference, install the optional runtime extra and use ONNXBackend:
pip install "mblt-npu-python[onnxruntime]"
from mblt_npu import ONNXBackend
backend = ONNXBackend("model.onnx")
backend.create()
outputs = backend({"images": input_array})
backend.dispose()
ONNXBackend imports onnxruntime only when it creates a session.
Most users should access the backend through a model package such as
mblt-vision-python, which owns
model configuration, preprocessing, and postprocessing.
Testing helpers
The optional test extra provides a shared pytest plugin with NPU options and the
npu_params fixture used by Mobilint package test suites:
pip install "mblt-npu-python[test]"
Import mblt_npu.pytest_plugin from a repository's root tests/conftest.py to
register its options. The plugin is intentionally not auto-registered, so projects
control when those command-line options are exposed.
Support and issues
For installation, runtime, or integration support, visit the Mobilint forum. Report reproducible package issues in the mblt-npu-python issue tracker.
License
Distributed under the BSD 3-Clause License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mblt_npu_python-0.0.0.tar.gz.
File metadata
- Download URL: mblt_npu_python-0.0.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac3d5ba0d45ee7c8eefac1297865b0ff880a1f5adc60400a99566d173b5b2c3b
|
|
| MD5 |
8dd6105bd9a34cb32eb673ff836bb25b
|
|
| BLAKE2b-256 |
dc9ad595e146cc8734965df2adb65aa4a96a3efd26c55628bb2fead6a06cae19
|
Provenance
The following attestation bundles were made for mblt_npu_python-0.0.0.tar.gz:
Publisher:
publish.yml on mobilint/mblt-npu-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mblt_npu_python-0.0.0.tar.gz -
Subject digest:
ac3d5ba0d45ee7c8eefac1297865b0ff880a1f5adc60400a99566d173b5b2c3b - Sigstore transparency entry: 2417348152
- Sigstore integration time:
-
Permalink:
mobilint/mblt-npu-python@618fe65edaec17f78364c5866ca5504691e5a70a -
Branch / Tag:
refs/tags/v0.0.0 - Owner: https://github.com/mobilint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@618fe65edaec17f78364c5866ca5504691e5a70a -
Trigger Event:
release
-
Statement type:
File details
Details for the file mblt_npu_python-0.0.0-py3-none-any.whl.
File metadata
- Download URL: mblt_npu_python-0.0.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5cbc0f6a9de1c78e6bf423d499ceb23aa5f839ecd07afe1343407a525519371
|
|
| MD5 |
dd7e8741f25c8c4e789fe725e2d47fbd
|
|
| BLAKE2b-256 |
a8a20e6f51cf3866bc8c90e72e39d28c8880862de39c6491f198fc9be6198cb6
|
Provenance
The following attestation bundles were made for mblt_npu_python-0.0.0-py3-none-any.whl:
Publisher:
publish.yml on mobilint/mblt-npu-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mblt_npu_python-0.0.0-py3-none-any.whl -
Subject digest:
d5cbc0f6a9de1c78e6bf423d499ceb23aa5f839ecd07afe1343407a525519371 - Sigstore transparency entry: 2417348198
- Sigstore integration time:
-
Permalink:
mobilint/mblt-npu-python@618fe65edaec17f78364c5866ca5504691e5a70a -
Branch / Tag:
refs/tags/v0.0.0 - Owner: https://github.com/mobilint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@618fe65edaec17f78364c5866ca5504691e5a70a -
Trigger Event:
release
-
Statement type: