{"slug": "qwen4-35b-a3b-run-it-locally-tonight-setup-speed-and-where-it-actually-wins", "title": "Qwen4-35B-A3B: Run It Locally Tonight — Setup, Speed, and Where It Actually Wins", "summary": "Alibaba released Qwen4-35B-A3B on 4 December 2026, a 56.82B-parameter mixture-of-experts model with 3B active parameters, a 1-million-token context, native text/image/video understanding, and quantized builds fitting in 18–25 GB of memory. Shivam Kumar reports that on an M4 Pro MacBook Pro with 48 GB unified memory, Ollama's MLX runner loads the model in 24 GB and generates 63–77 tokens per second, while vLLM, SGLang, TokenSpeed and Transformers support it from day one and the Qwen Cloud API serves it at $0.06 per million input tokens and $0.36 per million output tokens. Kumar notes the weights are open but the training data is not, and that long-context quality at the far end of 1M tokens remains a claim to test on your own documents.", "body_md": "**By Shivam Kumar · 6 December 2026**\n\nAlibaba dropped Qwen4-35B-A3B on 4 December 2026, and the spec sheet reads like a dare: a 1-million-token context, native text/image/video understanding, 3 billion active parameters per token — and quantized builds that fit in 18–25 GB of memory. That is a MacBook Air. Here is how to run it, what it actually does, and where it falls short.\n\nOllama added Qwen4 support in v0.40.21. Update first — older versions will not recognise the `qwen4_moe` architecture.\n\n```\nollama --version        # needs >= 0.40.21\nollama pull qwen4       # ~35 GB NVFP4 build on Apple Silicon\nollama show qwen4       # Apache 2.0, check the details\n```\n\nThere is also a 37 GB `qwen4:35b-a3b-q4_K_M` GGUF build and a 114 GB BF16 checkpoint if you have the hardware. The full parameter count is 56.82B — the 35B main network plus a 20B n-gram embedding table and a 2B multi-token prediction head — but the quantized build is what matters on a laptop.\n\nFor production-scale serving, vLLM, SGLang, TokenSpeed and Hugging Face Transformers all support it from day one. For a quick API test, the Qwen Cloud API serves it as `qwen4-35b-a3b` at $0.06 per million input tokens and $0.36 per million output tokens.\n\nOn an M4 Pro MacBook Pro with 48 GB unified memory, the model loads in 24 GB via Ollama's MLX runner and generates 63–77 tokens per second depending on the thinking level. That is real-time conversation speed, on a laptop, with no cloud round-trip and no data leaving the machine.\n\nThe 1M-token context is the party trick that actually works. The 20B n-gram table can sit on an SSD instead of VRAM, and the hybrid attention design keeps memory flat across long inputs. Drop a whole codebase or a whole contract set into one session and it holds together.\n\nTranslation: it is the cheapest capable model you can own, not the smartest model that exists. For code review, data analysis, document work, support triage and agent scaffolding, that trade is a win. For the hardest frontier coding tasks, use a bigger model and pay for it.\n\nTraining data is not released, so \"open weights\" is the accurate label, not \"open source\". Long-context quality at the far end of 1M tokens is a claim to test on your own documents. And 3B active parameters will not out-reason the frontier closed models on the hardest tasks.\n\nBut the direction is unmistakable. December's trillion-parameter models need a data centre. Qwen4 needs a laptop. The frontier just moved onto your desk — go pull it and measure it yourself.\n\n*Shivam Kumar builds sovereign AI at VisionQuantech. Sources: Alibaba Qwen4 release (4 Dec 2026); Artificial Analysis; Plotly DataAnalyticsBench; independent Ollama tests (5 Dec 2026).*", "url": "https://wpnews.pro/news/qwen4-35b-a3b-run-it-locally-tonight-setup-speed-and-where-it-actually-wins", "canonical_source": "https://dev.to/shivaysinghrajput/qwen4-35b-a3b-run-it-locally-tonight-setup-speed-and-where-it-actually-wins-2ii1", "published_at": "2026-12-06 04:30:57+00:00", "updated_at": "2026-12-06 04:44:56.558938+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "ai-infrastructure", "machine-learning"], "entities": ["Alibaba", "Qwen4-35B-A3B", "Ollama", "vLLM", "SGLang", "Hugging Face", "Shivam Kumar", "VisionQuantech"], "also_reported_by": [], "takeaway": "Qwen4-35B-A3B's 20B n-gram embedding table can be offloaded to SSD instead of VRAM, keeping memory flat across long inputs and letting a 24 GB quantized build run at 63–77 tokens per second on an M4 Pro laptop.", "recommendation": {"advice": "Update Ollama to v0.40.21 or later before pulling Qwen4, since older versions do not recognize the qwen4_moe architecture, and offload the n-gram table to SSD to keep long-context memory flat.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/qwen4-35b-a3b-run-it-locally-tonight-setup-speed-and-where-it-actually-wins", "markdown": "https://wpnews.pro/news/qwen4-35b-a3b-run-it-locally-tonight-setup-speed-and-where-it-actually-wins.md", "text": "https://wpnews.pro/news/qwen4-35b-a3b-run-it-locally-tonight-setup-speed-and-where-it-actually-wins.txt", "jsonld": "https://wpnews.pro/news/qwen4-35b-a3b-run-it-locally-tonight-setup-speed-and-where-it-actually-wins.jsonld"}}