Skip to main content

uzu

A high-performance inference engine for AI models.

Qwen3.8 27B output speed, input speed and memory on Apple M5 Max

Apple M5 Pro and M5

Qwen3.8 27B output speed, input speed and memory on Apple M5 Pro

Qwen3.8 27B output speed, input speed and memory on Apple M5

For more benchmarks details, see trymirai.com/metrics.

Mirai Quantization

KL divergence versus checkpoint size for Qwen3.8 27B Mirai-M

Mirai-L and Mirai-S

KL divergence versus checkpoint size for Qwen3.8 27B Mirai-L

KL divergence versus checkpoint size for Qwen3.8 27B Mirai-S

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.9

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.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for uzu 0.7.9
File Interpreter ABI Platform Actions
uzu-0.7.9-cp312-abi3-macosx_27_0_arm64.whl CPython 3.12 abi3 macOS 27.0+ ARM64 Details for uzu-0.7.9-cp312-abi3-macosx_27_0_arm64.whl

Release files / uzu-0.7.9-cp312-abi3-macosx_27_0_arm64.whl

Download URL uzu-0.7.9-cp312-abi3-macosx_27_0_arm64.whl
Size 21.6 MB
Tags CPython 3.12 abi3 macOS 27.0+ ARM64
SHA-256 checksum
How to use checksums
bb6e8d9e72880da9c53444acb3cee70a22c077e5c803e3c725d6287c48e20e21
BLAKE2b-256 checksum
How to use checksums
61ddd90d74dfdd4f5515a7812a9ee6d2ff9a7974273d1ec73b46efc812a26feb
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.9

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.

Release history Release notifications | RSS feed

This release

0.7.9 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page