Vendor
Alibaba
Parameters
32B
Size
61.0 GB
$ brew install mirai$ mirai --model Qwen/Qwen3-32B

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-32B is a 32.8-billion-parameter dense causal language model from Alibaba's Qwen team, representing the latest generation in the Qwen series. It introduces a distinctive dual-mode architecture that seamlessly switches between thinking mode — for complex reasoning tasks like math, coding, and logic — and non-thinking mode — for fast, general-purpose dialogue — all within a single model.

Architecture & Specifications

  • Parameters: 32.8B total (31.2B non-embedding)
  • Layers: 64
  • Attention: Grouped-Query Attention (GQA) with 64 query heads and 8 key-value heads
  • Context Length: 32,768 tokens natively; up to 131,072 tokens via YaRN RoPE scaling
  • Training: Full pretraining and post-training pipeline
  • License: Apache 2.0

Key Capabilities

Hybrid Reasoning: In thinking mode, the model generates chain-of-thought reasoning wrapped in `<think>...</think>` blocks before producing a final response, delivering performance that surpasses the earlier QwQ model. Users can toggle thinking on or off per turn using `/think` and `/no_think` commands, or disable it entirely at the API level.

Agent & Tool Use: Qwen3-32B excels at agentic workflows, with precise tool-calling capabilities in both thinking and non-thinking modes. It integrates well with the Qwen-Agent framework, supporting MCP configuration and built-in tools out of the box.

Multilingual Breadth: The model supports over 100 languages and dialects, with strong multilingual instruction-following and translation capabilities.

Human Preference Alignment: Notable improvements in creative writing, role-playing, multi-turn dialogue, and instruction following make it well-suited for natural, engaging conversational experiences.

Deployment

Qwen3-32B is compatible with Hugging Face Transformers (v4.51.0+), vLLM, SGLang, Ollama, LM Studio, llama.cpp, and other popular inference frameworks. OpenAI-compatible API endpoints can be created via SGLang or vLLM with built-in reasoning parser support.

Explore all local models