Mobilint SDK qb Runtime Library : qbruntime
qbruntime is runtime library for Mobilint NPU products. Runtime Library is required to run inference on Mobilint NPUs using precompiled or custom models.
IMPORTANT: Please refer to official documentation for installing driver before using runtime library.
Prerequisites
Currently, pip installation is limited to below Ubuntu environments. For other environment, please refer to official documentation.
- Ubuntu: 20.04 / 22.04 / 24.04
- Python: 3.8 / 3.9 / 3.10 / 3.11 / 3.12
- numpy
Installation
You may install python runtime library with following command
pip install mobilint-qb-runtime
For C++ library installation or downloading library from mobilint distribution site, please refer to official documentation.
Inference process
Running inference on Mobilint's NPU using the qbruntime runtime library involves four essential steps:
- Initialize the NPU device.
- Load the compiled model (MXQ file).
- Upload model to the NPU device.
- Run inference with user input.
Step 1: Accelerator
The Accelerator object represents the NPU device to be used. It abstracts a single device identified by the number appended to the device name (e.g., /dev/aries0 -> acc1, /dev/aries2 -> acc2). If no specific number is provided, NPU device 0 is used by default.
acc = qbruntime.Accelerator(0)
Step 2: Model
The Model object represents a model contained in an MXQ file. Upon creation, it immediately reads the MXQ file and stores the relevant information.
model = qbruntime.Model(MXQ_FILE_PATH)
Step 3: Pass Model information to the Accelerator
Pass the information with the {doxylink}mobilint::Model::launch(Accelerator & acc) method of Model object. It then uses the Accelerator object to run inference using this model.
Step 4: Run inference using passed Model information and input data
Get the input data and run inference using the mobilint::Model::infer() method of Model object.
model = qbruntime.Model(MXQ_FILE_PATH)
result = model.infer([INPUT])
Inference Scenario
## Python example
import qbruntime
MXQ_PATH = "path/to/mxq.mxq"
acc = qbruntime.Accelerator() ## Step 1
model = qbruntime.Model(MXQ_PATH) ## Step 2
model.launch(acc) ## Step 3
## Some preprocessing for input data
result = model.infer(preprocessed_input) ## Step 4
Metadata
Release files for mobilint-qb-runtime 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 28.5 MB
Release files / mobilint_qb_runtime-1.5.0-cp314-cp314-win_amd64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
19be9ddf05ced396fff3d399f5842ba660928f2f51c4e37e10eb793adab84ed9
|
|
BLAKE2b-256 checksum How to use checksums |
e5cba6b34bf809155643c4bd005563c1291fe98cc838340e61077394c3f34767
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp314-cp314-manylinux_2_31_x86_64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp314-cp314-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.14 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
02678c7f1511d65d376c212ec745bdb7ce0e0189c981e9c67547881260ee15c3
|
|
BLAKE2b-256 checksum How to use checksums |
e28e13ac92124356b55995a90e4a20ffabc150bde06ff0a8a0bc1a0415722b56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp314-cp314-manylinux_2_28_aarch64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp314-cp314-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
aefeded4a4a5c8fb75e4bdcc709b4d64847e7bd8069fcf314ac2eb0f3cf76cd3
|
|
BLAKE2b-256 checksum How to use checksums |
0fd926edd0fe30432a4e665ac60f6c6b197d1a30fea26c52987fe270082d58a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp313-cp313-win_amd64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a8f65e3c196856fae6cab0ff415ea55062c9a1b5aebaeea465c49e76191f9d80
|
|
BLAKE2b-256 checksum How to use checksums |
f7cc7aadd975b63c3b41368fb48f47a7bb2002e187dd43332941b2e6bbcdc5e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp313-cp313-manylinux_2_31_x86_64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp313-cp313-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
ad9f8675eaf09daed1ffb0cc4766962fb9a47dac08a4064a3c99f902f27bd466
|
|
BLAKE2b-256 checksum How to use checksums |
d8b34ce81883a70afd5ec1adefa72ac11e13670e80f5706c24c29f590114950d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp313-cp313-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
05e902af6cc4fd44320fd940acaaff8cb58704830bead9bb0271cd108925f60b
|
|
BLAKE2b-256 checksum How to use checksums |
de34c11b20d40e5ebca3608bd66aa707e97da93e555d7bcbe738507249d882b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp312-cp312-win_amd64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
795f933f0a7716f7b2956c1d1e5e1ddc14c266d8512f5d6e52efbb17d19b3bca
|
|
BLAKE2b-256 checksum How to use checksums |
bb10b9338af9afdcde6cb65959765a7c7c49f70de8fa9442213959d6f5cdd279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp312-cp312-manylinux_2_31_x86_64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp312-cp312-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
281e6064b037c4b04b6e0ef7323675ece90b3db4322c48c11446634ec61af8e1
|
|
BLAKE2b-256 checksum How to use checksums |
2717c0e76a00153018b07f8be5aa5d6b1d59285175647fcef350cd0e3fe063c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp312-cp312-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
42f4fb8ea93b9403f2ef8808c5c0ce0cfac4ce6a9ac0de1ec266ba9c75ede633
|
|
BLAKE2b-256 checksum How to use checksums |
50bd18819d4b9884fb3af815ae8026629079540fe9b3a095b73c782b2b532958
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp311-cp311-win_amd64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b8b6c429ca11e990815d8a55fe635dbc1aca445456fcdbc4e3a8a5576774492e
|
|
BLAKE2b-256 checksum How to use checksums |
e8c89c454d0eca795ab8af694ba2349480c36fa9e26f9753f8bb37dc7337bc09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp311-cp311-manylinux_2_31_x86_64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp311-cp311-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
e84b9d791081039e7d410f60d25a7497bf4ae32db6f64553e5242185b2fbef9a
|
|
BLAKE2b-256 checksum How to use checksums |
8f3dc82e6a3f5d5ed046abe7de6033d5d7280aa1c119b51ddfb1c1bc921c07a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp311-cp311-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
755bdfc5dcfd7d3a744f4751f9375e18de03613e516eb2c4af242878b197f222
|
|
BLAKE2b-256 checksum How to use checksums |
1fb45298f513e1bf5a6ff3a43cae55a2a1ca1ffc2dd49a136d298abf91509c69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp310-cp310-win_amd64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fe9534642673873f22ebb48f38c2e095e5ee9475401c71030e0bd0b15daec391
|
|
BLAKE2b-256 checksum How to use checksums |
1b50979a6fe823354fd8dd39d8c19cf9d0c980917631a2bd3b657fc56e987acb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp310-cp310-manylinux_2_31_x86_64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp310-cp310-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
3098aadf0906e4c180da7a17a907d295f03322ca69d59106f4579e14adab7971
|
|
BLAKE2b-256 checksum How to use checksums |
307b7063662bd8ad062e165cd09d65fc2ccae57095c35338afc4eb1784139a61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp310-cp310-manylinux_2_28_aarch64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp310-cp310-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
6e1d7c4069e2c7acbf64672c3159fd076eae1646ae93423b0f57767d49106658
|
|
BLAKE2b-256 checksum How to use checksums |
66e5c28e1d9f8791c303b462195d5ad85c41369b96fe5496fb68c9abd616ee7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp39-cp39-win_amd64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8a9350c351d879b6d28ba762be20492990894a33d30382153e711995519bedfc
|
|
BLAKE2b-256 checksum How to use checksums |
e7e433c827de7c9c7e2a96cf7a96ca20a6d2d848c1016e3906bc8b9886a394ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp39-cp39-manylinux_2_31_x86_64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp39-cp39-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.9 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
ed6d94ee36b77636ded51e129681ac7c20f9cdbcb01914e4f20c1a4de7720d4f
|
|
BLAKE2b-256 checksum How to use checksums |
fbf7743fb468545382619f9296024d893c9f02975c3b1bbcf67e75ed05fde880
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp39-cp39-manylinux_2_28_aarch64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp39-cp39-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
983c5417e43345117c4010c8eb1d850f1bc4cc74c17e7c59c642f2e3ecf9ad42
|
|
BLAKE2b-256 checksum How to use checksums |
f1340a9d33aaef6a1eb2329762b3d6d846e2f190bb173fb3dcff3c9238334f0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp38-cp38-win_amd64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
99921966a54f8c6526faa81d4aced3e609dac96a778cbf90220c26be3f3c781c
|
|
BLAKE2b-256 checksum How to use checksums |
e48da2019eefe859a7e6f3bff5c27ccce4ba3b8f6c1019ad612ef41772cacf77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp38-cp38-manylinux_2_31_x86_64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp38-cp38-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.8 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
665f0795847c6539b22566fad1ff2a1d5e807d9b647a24fa3a3192d9184bfe56
|
|
BLAKE2b-256 checksum How to use checksums |
1282a9c97987f7603e7cd825a98070b08fd67711a266f71fcbd8d8134da65210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mobilint_qb_runtime-1.5.0-cp38-cp38-manylinux_2_28_aarch64.whl
| Download URL | mobilint_qb_runtime-1.5.0-cp38-cp38-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
01eeffb2d239f7af78ff170d4a3fac9008805b9a7fc7cbe2f92cafabf87eeb2f
|
|
BLAKE2b-256 checksum How to use checksums |
aec2da6e1e3b6f98bff0605b0c0d8e63d5a7f42deca26a4e439d28953a434da7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|