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
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 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 miniqinference-0.1.1.tar.gz.
File metadata
- Download URL: miniqinference-0.1.1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae28dba0cf45d531e2d71c70f904346e4487f8910dbd30dbffda9e9f6aacb707
|
|
| MD5 |
a6333f9ba967536629dd1af6cdcb2451
|
|
| BLAKE2b-256 |
510e50953650960c70bd6aaa232d71b6e266d1a408bc8940045ff100660a56b6
|
File details
Details for the file miniqinference-0.1.1-py3-none-any.whl.
File metadata
- Download URL: miniqinference-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0e7b46930ebe69c20531a102d7a3598eaca636423b06b9d31dc39f72bdb7e20
|
|
| MD5 |
6f930f4ec0e686619a17b1981ea7fc64
|
|
| BLAKE2b-256 |
988b380c68dc328f8e4bbbacbdcfd1ffda0ce011073887c68697b8353ec8cd09
|