uzu
A high-performance inference engine for AI models.
For more benchmarks details, see trymirai.com/metrics.
Mirai Quantization
We designed our quantization format with the goal of maximising decode performance, and we deliberately traded off rate/distortion profile for hardware friendliness. Read how it works in the blog post, and find every Mirai checkpoint in our Hugging Face collections. Checkpoints are exported to the uzu format with lalamo.
SDK
Python
Add the dependency:
uv add uzu==0.7.10
Run the code below:
import asyncio
from uzu import ChatConfig, ChatMessage, ChatReplyConfig, Engine, EngineConfig
async def main() -> None:
engine_config = EngineConfig.create()
engine = await Engine.create(engine_config)
model = await engine.model("trymirai/Qwen3.5-0.8B-M")
if model is None:
return
async for update in (await engine.download(model)).iterator():
print(f"\rDownload progress: {update.progress:.2%}", end="", flush=True)
print()
session = await engine.chat(model, ChatConfig.create())
messages = [
ChatMessage.system().with_text("You are a helpful assistant"),
ChatMessage.user().with_text("Tell me a short, funny story about a robot"),
]
replies = await session.reply(messages, ChatReplyConfig.create())
if not replies:
return
message = replies[-1].message
print(f"Reasoning: {message.reasoning}")
print(f"Text: {message.text}")
if __name__ == "__main__":
asyncio.run(main())
Everything from model downloading to inference configuration is handled automatically. Refer to the documentation for more examples and details on how to customize each step of the process.
Troubleshooting
If you experience any problems, please contact us via Discord or email.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for uzu 0.7.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uzu-0.7.10-cp312-abi3-macosx_27_0_arm64.whl | CPython 3.12 | abi3 | macOS 27.0+ ARM64 | Details for uzu-0.7.10-cp312-abi3-macosx_27_0_arm64.whl |
Release files / uzu-0.7.10-cp312-abi3-macosx_27_0_arm64.whl
| Download URL | uzu-0.7.10-cp312-abi3-macosx_27_0_arm64.whl |
|---|---|
| Size | 22.0 MB |
| Tags | CPython 3.12 abi3 macOS 27.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e7076e94b289835df5a804840bc494c666d66cb1788c59442474297b61b645b5
|
|
BLAKE2b-256 checksum How to use checksums |
aebed81a3d24a45a4ae418766adeb47bac4577e151635eae5c644be19933541c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for uzu 0.7.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.