Open-Weight LLM · Private & Custom AI

Qwen3-4B-MLX-4bit

A 4B parameter reasoning model designed for self-hosted operational AI: instruction-following, tool calling, and multi-language workflows that run entirely on customer infrastructure.

Qwen3-4B-MLX-4bit is Alibaba's latest small language model, purpose-built for edge/private deployment. It supports dynamic switching between reasoning (thinking) and fast-response (non-thinking) modes, making it fit for both complex operational logic and high-throughput customer-facing workflows. The 4-bit quantization targets Apple Silicon and resource-constrained enterprise environments.

566M
Parameters
apache-2.0
License (OSI/permissive)
Unknown
Context
73.5k
Downloads

Model facts

DeveloperQwen
Parameters566M
Context windowUnknown
Licenseapache-2.0 — OSI/permissive
Tasktext-generation
GatedNo
Downloads73.5k
Likes31
Updated2025-08-29
SourceQwen/Qwen3-4B-MLX-4bit

Private deployment

Run Qwen3-4B-MLX-4bit in your own environment

Runs on Apple Silicon (MLX framework) or x86 CPU with modest VRAM (~2–3 GB estimated, depending on precision/inference engine). Deploy via MLX, transformers/vLLM, or SGLang for private inference. No API calls, no telemetry: data stays entirely in your environment. Suitable for on-prem, air-gapped, or regulated deployments.

Operational AI use cases

01

Internal Ticket Triage & Routing

Run Qwen3-4B in non-thinking mode to classify support/ops tickets (priority, category, owner) with tool-calling support for routing to Jira/Zendesk. Eliminates cloud API calls; all ticket text and metadata remain internal.

02

Policy & Compliance Document Automation

Deploy as a private agent to extract obligations from regulatory docs, generate compliance checklists, or draft internal policy summaries. Thinking mode handles dense, multi-step logic; no document leaves your network.

03

Financial Report Summarization & Workflow Automation

Use tool-calling to extract line items from balance sheets or P&Ls, generate executive summaries, and auto-populate downstream systems (ERP, data warehouse). Runs fully air-gapped; no third-party data processing.

Custom AI

As a base for custom AI

Lightweight enough for custom chatbots, RAG systems, or agent frameworks targeting regulated industries or resource-constrained environments. Thinking/non-thinking toggle lets you swap reasoning cost for latency on a per-query basis. Native transformers + MLX support means minimal abstraction.

In the operating system

Where it fits

Bottom layer of an AI OS: a private, controllable inference engine for knowledge workers. Feeds into workflow automation (agents), internal knowledge systems (RAG), and multi-turn operational logic. Scales horizontally via API wrapping (SGLang, vLLM) or embedded in edge services.

Data control & security

Self-hosting on private infrastructure is an architectural choice that keeps query logs, fine-tuning data, and customer/employee records in your environment. No model calls home. Quantization to 4-bit reduces storage/memory footprint, useful for distributed on-prem deployments. Note: security/compliance posture depends on your ops deployment (encryption at rest, network isolation, RBAC), not the model itself.

Hardware footprint

Estimate (4B params, 4-bit quantized): ~2–3 GB VRAM for inference on Apple Silicon or x86; ~5–7 GB for fine-tuning. Context window is 32K natively, expandable to 131K via YaRN, but requires proportional memory scaling. Single-GPU or multi-core CPU feasible for most enterprise workflows.

Integration

Designed for MLX (Apple Silicon native) and transformers. Use SGLang or vLLM for scalable multi-user serving. Supports tool-calling schemas compatible with OpenAI-style function-calling; integrate with internal APIs via standard HTTP/gRPC. Chat templates and thinking-mode control via `tokenizer.apply_chat_template()` and `enable_thinking` flag. Expects transformers ≥4.52.4 and mlx_lm ≥0.25.2.

When it's not the right fit

  • Large-scale batch processing at >100 QPS: designed for small-medium ops teams, not high-throughput API services.
  • Tasks requiring frontier reasoning (complex math olympiad, advanced code synthesis): 4B parameter scale trades off accuracy for speed/size.
  • Fully air-gapped + zero fine-tuning: base model is pretrained; custom domain adaptation requires local compute & data.
  • Real-time <100ms latency is non-negotiable: even 4-bit inference on CPU/older hardware adds latency; newer Apple Silicon more forgiving.

Alternatives to consider

Llama 3.2-1B

Smaller, even faster on edge; but weaker reasoning and no native thinking mode. Better for ultra-low-latency tasks.

Phi-4 (Microsoft)

Competing small model with strong instruction-following; however, no public tool-calling framework and less multilingual support.

Mistral Small (7B quantized)

Slightly larger, more reasoning power; but higher VRAM overhead (~6–8 GB at 4-bit). Overkill if 4B suffices.

FAQ

Can I fine-tune Qwen3-4B on proprietary operational data without sending it anywhere?

Yes. Apache 2.0 license permits fine-tuning on private data. Load the model locally via MLX or transformers, run training on your infrastructure, and store the adapted weights in-house. Requires local GPU/CPU and data engineering.

Is this model suitable for commercial/internal business use without licensing fees?

Yes. Apache 2.0 license explicitly permits commercial use, redistribution, and modification. No royalties or special licensing required. Verify compliance with your legal/procurement team if subject to export controls.

How do I enable thinking mode for a single complex query, then disable it for speed in the next turn?

Use `enable_thinking=True` in the tokenizer template by default, then add `/no_think` to the user prompt for fast-mode queries, or `/think` to force reasoning. In non-thinking mode (`enable_thinking=False`), these tags are ignored.

What's the estimated latency for a 500-token response on Apple Silicon M1/M2?

Unknown in model card; estimate ~2–5 sec depending on quantization and MLX optimization. Test on target hardware. Thinking mode adds significant overhead (model expands output to include reasoning); use only when accuracy > speed.

Build a private operational AI system with Qwen3-4B.

Run a fully self-hosted reasoning engine for internal workflows, customer support automation, and compliance tasks. LLM.co helps you integrate Qwen3 into your ops stack—no cloud calls, no third-party data processing. Let's talk.