Skip to main content

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:

  1. Initialize the NPU device.
  2. Load the compiled model (MXQ file).
  3. Upload model to the NPU device.
  4. 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mobilint_qb_runtime-1.1.0-cp312-cp312-win_amd64.whl (871.2 kB view details)

Uploaded CPython 3.12Windows x86-64

mobilint_qb_runtime-1.1.0-cp312-cp312-manylinux_2_31_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

mobilint_qb_runtime-1.1.0-cp312-cp312-manylinux_2_31_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ ARM64

mobilint_qb_runtime-1.1.0-cp311-cp311-win_amd64.whl (869.6 kB view details)

Uploaded CPython 3.11Windows x86-64

mobilint_qb_runtime-1.1.0-cp311-cp311-manylinux_2_31_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

mobilint_qb_runtime-1.1.0-cp311-cp311-manylinux_2_31_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ ARM64

mobilint_qb_runtime-1.1.0-cp310-cp310-win_amd64.whl (868.8 kB view details)

Uploaded CPython 3.10Windows x86-64

mobilint_qb_runtime-1.1.0-cp310-cp310-manylinux_2_31_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.31+ x86-64

mobilint_qb_runtime-1.1.0-cp310-cp310-manylinux_2_31_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.31+ ARM64

mobilint_qb_runtime-1.1.0-cp39-cp39-win_amd64.whl (861.3 kB view details)

Uploaded CPython 3.9Windows x86-64

mobilint_qb_runtime-1.1.0-cp39-cp39-manylinux_2_31_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.31+ x86-64

mobilint_qb_runtime-1.1.0-cp39-cp39-manylinux_2_31_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.31+ ARM64

mobilint_qb_runtime-1.1.0-cp38-cp38-win_amd64.whl (868.9 kB view details)

Uploaded CPython 3.8Windows x86-64

mobilint_qb_runtime-1.1.0-cp38-cp38-manylinux_2_31_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.31+ x86-64

mobilint_qb_runtime-1.1.0-cp38-cp38-manylinux_2_31_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.31+ ARM64

File details

Details for the file mobilint_qb_runtime-1.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 82e3e2c0c2b1640236a0721e3c70650491f6343927d5812550eb787347732b4a
MD5 0e9ee13f0a19675e8bf20ddd4e8519e3
BLAKE2b-256 3defd3c8553525b2fccd83e355562218de219a46dc97bdd13740ee0d698ae191

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4e4181d925091588fe255653543b946cf2ac6713077c45b9f5510a4621027586
MD5 a8b56b16d5238d25a1a5059170bf6080
BLAKE2b-256 bea3c4b128b8f27983dcf76870cf1d50e6f8a4d0cc5f91b2afc8d2f073604150

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp312-cp312-manylinux_2_31_aarch64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 175e8cc49b71529e0cdc7673ae7ee05793ac0ef2998c6b8a572ce4632a65cbd3
MD5 d778f0d780e6f7276233f9d13eb630f7
BLAKE2b-256 79cb637a144b564dab296e4b23e4c6bbaabd96a32c6996fec04ebab4e1a274ba

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7563ac39fd4bb221030440b2ab0cf8f0dfe69b075f6564db3b793b1a93123d3d
MD5 1adf88c8377cd11367350f96f3e3c7e6
BLAKE2b-256 e8c0d99d685ca3c7ad1a3c9ffb1e43a44263a5e1aa8caf8f5e9312989832b1f8

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 beb678d12bb5571b3951fc4f643dbca82a6a7e7cb2c401d43b27daa703189a15
MD5 ed51da6ef84a36920cb92952cb58889f
BLAKE2b-256 774bf5c26b34d1750e54e55bb4a47dd67278d1c710a6132f81dbad3443b6250b

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp311-cp311-manylinux_2_31_aarch64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 4fb80708c0f0527e8a37627582b786060eef3a8c10a465f873fcbb313021bf22
MD5 ffb73e3e5f9fba90a390114bcadef288
BLAKE2b-256 79e294ac31e1b9e073504af164ac0e66b4fa11e7ea95ae9edd2677c086169058

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 83a438a6cb1a08d5508ae32d4af004472dbd77be2ba50c5a152f9782bd468479
MD5 32d7a44acea4cb66b262baa49edee216
BLAKE2b-256 cf64daf955d14c396e53d6ab1fa514dee743bf805713140aa006b629a97b877a

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d4312e56ce82d82e8e49a357e44b3e1ef94dbe96aba322c4eec66a8dcfc3554a
MD5 6fc3a1bdb508e61a9ae409550d69825c
BLAKE2b-256 6a64d994dbf966e98bf9d2f5ea52b53432820134ff5a03aacd6a2ea0ec68a101

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp310-cp310-manylinux_2_31_aarch64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 8b96a52571e6fe9a911d6ec0d865364cd48260b0961b41700bff3386f353ff0b
MD5 164874d6b2673e4f80f9c9ed70cc42af
BLAKE2b-256 1e2583c5b3dd50250bf99201b19ed6bfdc203ab9d83854aca356eca17eb93ee8

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bb236b675b7548017424e41503010bbc64884eeb17ae81e9c369997bc0667ea0
MD5 60e27a04d2adad25027dfbad98ad5d5a
BLAKE2b-256 3f39e8c58678c9577a6623757de4ea527847494f57d83a025283380d287d0980

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0967378ffec29aca77c3873ecff5f17c92c2aacba00b8254024a6f224dafc402
MD5 2a7dc00df8831d1746d4cf823194110a
BLAKE2b-256 50a302db50cf8ed8badfaf71c7469fb1940b19665468b2eb5b40458f9feedf75

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp39-cp39-manylinux_2_31_aarch64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 fe3ce8cce0cccfaebe38f86e62d75ff104f9332b0b15b046a14fc7c7ac748071
MD5 3f24916a9f971605fa1f60960dbd46a9
BLAKE2b-256 4b59152a6cf7cfaba7d9a01f44685ea3919b4300feafa2f95accb5a989f00784

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db61abbe5da91993df16ebfec0ba9b07a780f569567be53378cea0ec7885a2a1
MD5 480126b0ebdc9c2b2fc8c8e649aa97ec
BLAKE2b-256 d67d177f773826accd197ea95ea57399cdc7b9621e32ce99315ac09c073f9cfc

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp38-cp38-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b72fbf38e6499d33f9e646a6f4915d63e6517d749cb76bda38c0ef16dbc61536
MD5 1d12beb4f153e2d17c2e880bd312003c
BLAKE2b-256 f4a8cc2289a534a046c60609ce3b7f2be180f68802682bc90cb4091a90660c0b

See more details on using hashes here.

File details

Details for the file mobilint_qb_runtime-1.1.0-cp38-cp38-manylinux_2_31_aarch64.whl.

File metadata

File hashes

Hashes for mobilint_qb_runtime-1.1.0-cp38-cp38-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 3f5bb030380cc7f27e82f0fd8867d687e2c2784476710f04f0bcb1e32874f309
MD5 46c51bf41c63bebb6b23d8043d0bc008
BLAKE2b-256 a8321b102399b5acb0009ed4708c13a2510952346a3918759b76a5ea3a1aa1dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page