Runtime library for Mobilint NPUs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 mobilint_qb_runtime-1.2.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 872.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df751853468168db961fb4e780f53a14479f581c6085347035e78835692fd2aa
|
|
| MD5 |
2dbd7eb72e862e048e53bea601e4ea1f
|
|
| BLAKE2b-256 |
ba87fa32910dbe481ecba88cd0cf3021119ea928d2ea552f1df5a5689c36ad59
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp312-cp312-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp312-cp312-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfe67d4887a7444728687834266c577560e025f3f4183c367ac31030b3d58b24
|
|
| MD5 |
732ae57332e0783a84ad1726ad8ded42
|
|
| BLAKE2b-256 |
632360f327dade781ff758152495e99f7b971d1912a5914ee9697937900b00a8
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp312-cp312-manylinux_2_31_aarch64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp312-cp312-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3907b2d145ce731d7a503779e73323f3318adfff23debf6a1a57e3914849f760
|
|
| MD5 |
619ff81cb0feda8581e9950984e019c2
|
|
| BLAKE2b-256 |
40142fa1f5182e4fe521ae9c7e80851e011bf201c24608b6fbaf771e940687fc
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 870.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80b3d999d3433f7eccebbb96242dc63f47a69fd23385640cae87114ff4259286
|
|
| MD5 |
256034ce1663b8d7582944246c47593b
|
|
| BLAKE2b-256 |
8247f97c31dc44e204daea047f0869653956ac66625340c908a5fa559617e91d
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp311-cp311-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp311-cp311-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c80557ac1f1c58fec4664ae34046e789ae93a5a62e59bab9de4654fea39a847d
|
|
| MD5 |
864800ea3cb0032ac8c75183c4f509d2
|
|
| BLAKE2b-256 |
0f124930a9e13741d35697452335a6b3534674e1fa551120a0adf5ee9b69b480
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp311-cp311-manylinux_2_31_aarch64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp311-cp311-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d5461955af3c49e6282ce08e4bba6b5a711f60155d40c11f3b10251fe4a9cfc
|
|
| MD5 |
c0462085008854ffb7de6cd4e3f3d1c3
|
|
| BLAKE2b-256 |
14b10c818d3a0ad5ab5124b1c9633992c375cfb45ff9497495f7189d736c8a40
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 870.0 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
305ed362091ecb9a69a5b2b003bb52e467d7ec35c31ee8ef9c0c7fee36c08078
|
|
| MD5 |
8a43e999858248e22204e8965cd47ffe
|
|
| BLAKE2b-256 |
ad82885fa21ea7d618e16650216d990965da3292c583f6292e72e38711fba58d
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp310-cp310-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp310-cp310-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c820297ccab5580ee3c6972fd1a44969ee29651c13ca427dd0504d7716d5a7f6
|
|
| MD5 |
c5aa9b945054298824c12445deac8f1f
|
|
| BLAKE2b-256 |
3ca93677dc781843aabf5ad7710771654045c49eecfde2ac9cdf4c286dca2785
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp310-cp310-manylinux_2_31_aarch64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp310-cp310-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
650c34e7c5dd1c1ddeb7c712cd41cff2abf7674339cc9aeb8c655e51cc554343
|
|
| MD5 |
d09c413579a772dc36443fc006f507a6
|
|
| BLAKE2b-256 |
b4861fa07eb2bfbd1336f443c22eefcd679c67b6f44b12bb8e22b75cef3d4ce9
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 862.4 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8644afaf23e77e1d0d98d34e0f405b419b0d96b41107c3da09ed4919ff9a58df
|
|
| MD5 |
ba0a230a3ffb03a08085e881ae3a226b
|
|
| BLAKE2b-256 |
9838a2d6270927f2ede64975a404f75c898e089d6898f166dd42291e2cb9eb2a
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp39-cp39-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp39-cp39-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8afa61546faf8fb7f88bef8d21130e4e313d1590a00409376688b8ec3a7d1070
|
|
| MD5 |
c87e19d90e2646ad3130ee0e4685a905
|
|
| BLAKE2b-256 |
307933a6fe05ee7d40ddec2c83f0aa0ee71faca9e189016f46275e78467706af
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp39-cp39-manylinux_2_31_aarch64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp39-cp39-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e11bea99cdde2224c1d03283473cf83094c482cbd7b9a6c77b1a35977b8f27d2
|
|
| MD5 |
c702a0d96b872fb71ae2d20b5bcc0a6d
|
|
| BLAKE2b-256 |
675a7d4294bee4d510ffb862fba9ec65d639a35f29639c00a3a05e7ec33317ba
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 870.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff3202a4d8635a6a75d9e668c8a3ba592688d8e28314f7bd6418f9535d819f0
|
|
| MD5 |
a0142afd5abdc3c40eee04032c59078b
|
|
| BLAKE2b-256 |
bfe90aa3a655e724a52ba3087891b84454c9c32508dd000489514786493b16b5
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp38-cp38-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp38-cp38-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43e65880664534e721a1c4ebae9a23eb2f8892c221069e5053e94fe5a6a41c71
|
|
| MD5 |
5983eb188556ef65ef9f255bae2c9eb9
|
|
| BLAKE2b-256 |
67b836443efab65faa456614431582867dfc0715bfd923decec9f282fea56c68
|
File details
Details for the file mobilint_qb_runtime-1.2.0-cp38-cp38-manylinux_2_31_aarch64.whl.
File metadata
- Download URL: mobilint_qb_runtime-1.2.0-cp38-cp38-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e389aaddbbed41c949e2caedf5dff0f492f7e023f06511d3e48e095d0a26ece5
|
|
| MD5 |
cab216fdaa43dbb2f4ea84d6f9acb047
|
|
| BLAKE2b-256 |
3f2dc1ef2e9fc70160247dd7b98d71f677d75a5f92e812fd793a35a5a5e17ba4
|