Vendor
Alibaba
Parameters
1.7B
Size
3.2 GB
$ brew install mirai$ mirai --model Qwen/Qwen3-1.7B

Benchmarks

0.31 s

How long until the model starts responding

lower is better

121 t/s

The speed at which text appears on screen

higher is better

3.69 GB

RAM the model uses while running

lower is better

uzu0.5.14MLX0.31.2llama.cpp0.3.23/1,312 input tokens/512 output tokens

Benchmarked 7 Aug 2026

Integrate with SDK

1
Choose framework
2
Run the following command to install Mirai SDK
https://github.com/trymirai/uzu-swift
3
Apply code
1import Foundation2import Uzu34public func runChat() async throws {5    let engineConfig = EngineConfig.create()6    let engine = try await Engine.create(config: engineConfig)7    8    guard let model = try await engine.model(identifier: "alibaba:qwen3.5:0.8b:mirai:mirai-m:4") else {9        return10    }11    for try await update in try await engine.download(model: model).iterator() {12        print(String(format: "\r\u{001B}[2KDownload progress: %.2f%%", update.progress() * 100), terminator: "")13        fflush(stdout)14    }15    print()16    17    let messages = [18        ChatMessage.system().withText(text: "You are a helpful assistant"),19        ChatMessage.user().withText(text: "Tell me a short, funny story about a robot")20    ]21    let session = try await engine.chat(model: model, config: .create())22    let stream = await session.replyWithStream(input: messages, config: .create())23    var message: ChatMessage? = nil24    for try await update in stream.iterator() {25        switch update {26        case .replies(let replies):27            let reply = replies.last28            message = reply?.message29            print("Generated tokens: \(reply?.stats.tokensCountOutput ?? 0)")30        case .error(let error):31            print("Error: \(error)")32        }33    }34    print("Reasoning: \(message?.reasoning() ?? "empty")")35    print("Text: \(message?.text() ?? "empty")")36}37

Details

Qwen3-1.7B is a compact 1.7 billion parameter causal language model from Alibaba's Qwen team, part of the third-generation Qwen series. Despite its small footprint, it incorporates the architectural and training advances of the full Qwen3 lineup, making it a capable option for resource-constrained deployments.

Architecture & Specs

Built on a dense transformer architecture with 28 layers, the model uses Grouped Query Attention (16 query heads, 8 key-value heads) and supports a context length of 32,768 tokens. Of its 1.7B total parameters, 1.4B are non-embedding. It is derived from the Qwen3-1.7B-Base via both pretraining and post-training stages.

Thinking & Non-Thinking Modes

A standout feature of Qwen3 models is the ability to seamlessly switch between thinking mode and non-thinking mode within a single model. In thinking mode, the model engages in step-by-step reasoning (wrapped in `<think>...</think>` blocks), improving performance on math, coding, and logic tasks. In non-thinking mode, it behaves like a standard instruction-following model for fast, general-purpose dialogue. Users can toggle between modes via a simple `enable_thinking` flag or inline `/think` and `/no_think` tags during conversation.

Key Capabilities

  • Reasoning: Enhanced logical reasoning, mathematical problem-solving, and code generation
  • Agent & Tool Use: Precise integration with external tools, including MCP-based configurations and Qwen-Agent for agentic workflows
  • Multilingual: Supports 100+ languages and dialects with strong instruction-following and translation abilities
  • Conversational Quality: Improved alignment for creative writing, role-playing, and multi-turn dialogue

Deployment

Qwen3-1.7B is compatible with Hugging Face Transformers (v4.51.0+), SGLang, vLLM, Ollama, LMStudio, llama.cpp, and other popular inference frameworks. Its small size makes it well-suited for edge deployment, local applications, and latency-sensitive use cases where larger models are impractical.

Licensed under Apache 2.0.

Explore all local models