Skip to main content

MiniQ Inference Toolkit

Project description

MiniQ Inference (miniqinference) v0.1.1

MiniQ Inference is a high-performance, local inference toolkit for Qwen2-VL and other multimodal models. It is built with Rust (using ONNX Runtime via the ort crate) and provides a multi-layer stack:

  • Core: High-performance Rust inference engine with image preprocessing and chat templating.
  • CLI: A command-line tool for local chat with vision support.
  • Server: OpenAI-compatible API server (Axum-based) with streaming and tool calling support.
  • Python: High-speed Python bindings for integrating MiniQ into your Python apps.

Features

  • 🏎️ Optimized Inference: Leverages ONNX Runtime with support for various backends.
  • 🖼️ Vision Support: Native preprocessing for multimodal inputs (Qwen2-VL).
  • 🧠 Thinking Mode: Built-in support for models with chain-of-thought capabilities.
  • 🛠️ Tool Calling: Server support for local tool calling.
  • Performance Profiling: Built-in timing and memory usage monitoring (enable with RUST_LOG=debug).

Installation

pip install miniqinference[all]

Quick Start (CLI)

# Load model from a directory and chat
miniqwen-cli --model-dir ./models --prompt "Describe this image" --image ./test.jpg

API Server

miniqwen-server --model-dir ./models --port 8000

Then use any OpenAI-compatible client.

Performance Monitoring

Run with RUST_LOG=debug to see detailed execution time and memory consumption:

  • Prefill duration
  • Decoding speed (tokens/s and ms/token)
  • Process memory usage (RSS)

Project details


Download files

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

Source Distribution

miniqinference-0.1.2.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

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

miniqinference-0.1.2-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file miniqinference-0.1.2.tar.gz.

File metadata

  • Download URL: miniqinference-0.1.2.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for miniqinference-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7676927b2790303b5cd3d2a34c8ea1f4a1f0af70f603b5af85d8049dd13f8abc
MD5 2093f05e484643d1e2ffba58d6566805
BLAKE2b-256 2b7ec8ca091751c21e79c78f91b056856304dc1c72cfabbb43e36bece5c28a82

See more details on using hashes here.

File details

Details for the file miniqinference-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: miniqinference-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for miniqinference-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1e61a2066ebc54f240701c6589e00e93e2d43005d12c8cd748c276186f9fefc
MD5 fabeae96d33394be2e96f7bd560568fe
BLAKE2b-256 51ea389cf31883cfe412839876f2553e996289d3bc6aac1809948fb3b4801955

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