DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a local LLM inside a Python script with Uzu

Add Uzu with uv, download a small Qwen model and get a chat reply on your own machine.

Short answer: Run uv add uzu==0.6.13; then create the engine with EngineConfig.create() and Engine.create as in the README Python example; load the model alibaba:qwen3.5:0.8b:mirai:mirai-m:4 and iterate the download to show progress. All steps.

Who it is forA Python developer who wants an offline assistant feature without API keys or per-token bills.

The problemCloud LLM APIs add latency, cost and send user data off the device.

The outcomeA Python script that downloads a model once and generates replies locally.

What you need first

  • Rust, Python (uv), Swift or TypeScript (pnpm)
  • An Apple device to benefit from unified memory
  • Disk space for the downloaded model

Steps

  1. Run uv add uzu==0.6.13
  2. Create the engine with EngineConfig.create() and Engine.create as in the README Python example
  3. Load the model alibaba:qwen3.5:0.8b:mirai:mirai-m:4 and iterate the download to show progress
  4. Open a chat session and send a system and a user ChatMessage
  5. Print the reply's reasoning and text

Prompt for your agent

Add trymirai/uzu to this Python project with `uv add uzu==0.6.13` and write a script that downloads alibaba:qwen3.5:0.8b:mirai:mirai-m:4 and answers <question> locally, following the README Python quick start.

Caveat. This card is written from the trymirai/uzu README, not from a test run by Deduped. Before you start, make sure you have Rust, Python, Swift or TypeScript. Check the repo for newer instructions before you rely on these steps.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for trymirai/uzu and "Run a local LLM inside a Python script with Uzu"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer