惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
U
Unit 42
The Register - Security
The Register - Security
S
Security Affairs
博客园 - 【当耐特】
Latest news
Latest news
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
C
Cisco Blogs
宝玉的分享
宝玉的分享
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog
P
Privacy & Cybersecurity Law Blog
腾讯CDC
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Vulnerabilities – Threatpost
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 叶小钗
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园_首页
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Microsoft Security Blog
Microsoft Security Blog
N
News and Events Feed by Topic
Recorded Future
Recorded Future
Scott Helme
Scott Helme
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
AWS News Blog
AWS News Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tor Project blog
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Hacker News: Front Page
J
Java Code Geeks
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
W
WeLiveSecurity
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
Attack and Defense Labs
Attack and Defense Labs

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Run GLM-5.2 Locally: The Open Model Nobody Can Ban
Max Quimby · 2026-06-15 · via DEV Community

On June 9, Anthropic shipped Claude Fable 5 — the most capable coding model the industry had ever seen. Three days later, the U.S. government ordered it offline for every user on Earth. No warning. No transition period. One directive, and the frontier vanished overnight.

📖 Read the full version with charts and embedded sources on ComputeLeap →

The same week, Z.ai (Zhipu AI) released GLM-5.2 — a 744-billion-parameter coding model with a one-million-token context window, MIT-licensed open weights arriving within days. The timing was not lost on the developer community.

Hacker News thread: GLM 5.2 Is Out — 729 points, 455 comments discussing the open-weights release

ℹ️ The message landed clearly on Hacker News: as user Reubend put it, they're "grateful to Chinese labs for being open with their work" — especially after "the Fable 5 fiasco." Open weights aren't just a cost play anymore. They're insurance.

This guide walks you through actually running GLM-5.2 on your own hardware — the VRAM you need, the quantization that fits, and the exact commands for llama.cpp, Ollama, and LM Studio. No API keys. No cloud dependency. No one can pull the plug.

What GLM-5.2 Actually Is

GLM-5.2 is the third major iteration in Z.ai's GLM-5 line, purpose-built for agentic coding and long-horizon software engineering. Here is what you are working with:

Spec Value
Architecture Mixture-of-Experts (MoE)
Total Parameters 744 billion
Active Parameters ~40 billion per token
Context Window 1,000,000 tokens
Max Output 131,072 tokens
Training Data 28.5 trillion tokens
License MIT (open weights)
Thinking Modes High and Max

The MoE architecture is the key to local viability. Only ~40 billion parameters fire per token — the rest sit idle. That is what makes aggressive quantization work: you are compressing 744B weights, but inference only touches a fraction of them at any given time.

GLM-5.2 supports two thinking-effort presets: High and Max. Z.ai recommends Max as the default for coding work — it produces longer reasoning chains before generating output.

The model launched on June 13 on Z.ai's Coding Plan tiers (Lite at ~$18/month through Team), with the standalone API and MIT-licensed weights following within the week. It ships with first-day support for Claude Code, Cline, OpenCode, Roo Code, Goose, and several other agent harnesses — so you can slot it into your existing workflow without rebuilding anything.

The benchmark caveat. Z.ai published zero official GLM-5.2 benchmarks at launch. The numbers circulating — including the "#1 SWE-bench Pro" claim — are inherited from GLM-5.1, which scored 58.4 on SWE-bench Pro (ahead of Claude Opus 4.6's 57.3 at the time). Early Hacker News commenter LaurensBER offered a more measured take: GLM-5.2 is "about 6 months behind the frontier labs — very similar to Opus in January." Strong for open weights, not yet matching Claude Opus 4.8 or GPT-5.5 on independently verified evals.

Hardware Reality Check

Let's be honest about what "run locally" means for a 744B-parameter model. The VRAM requirements scale dramatically with quantization level:

GLM-5.2 VRAM requirements by quantization level — from 176GB at 1-bit to 1,701GB at full precision

Quantization Disk Size Minimum Memory Practical Setup
2-bit Dynamic (UD-IQ2_XXS) 241 GB 256 GB unified M4 Ultra Mac Studio, or 1x24GB GPU + 256GB RAM
1-bit Dynamic 176 GB 180 GB High-RAM workstation + GPU offload
Q2_K_XL (2-bit) ~280 GB 300 GB 1x24GB GPU + 300GB system RAM
Q4_K_M ~476 GB 500 GB+ Multi-GPU (2xA100 80GB + large RAM)
FP8 ~754 GB 800 GB+ 8x H200 SXM5 or equivalent
FP16 (full) ~1,701 GB 1.7 TB+ Enterprise GPU cluster

For most developers reading this, the realistic options are the 2-bit quants. The Unsloth Dynamic 2-bit GGUF reduces the model to 241GB — an 85% compression from full precision. That fits on a 256GB unified-memory Mac (M4 Ultra Mac Studio or a maxed-out MacBook Pro) or a workstation with a mid-range GPU plus 256–300GB of system RAM using MoE offloading.

⚠️ "Fits in memory" and "runs fast" are different things. On consumer hardware with 2-bit quants, expect roughly 3–9 tokens per second depending on your setup. The DataCamp tutorial reports ~8.7 tok/s on an H200 with the Q2_K_XL variant. A Mac Studio will be slower. This is fine for batch coding tasks — not ideal for real-time chat.

Don't have 256GB? You are not locked out. Cloud GPU rentals (RunPod, Lambda, etc.) with H200 or A100 instances can run the 2-bit quant for a few dollars per hour. That is still cheaper than a Coding Plan subscription if you are running it intermittently — and the weights live on your disk, not someone else's server.

Option 1: llama.cpp (Maximum Control)

llama.cpp is the foundational C++ inference engine that both Ollama and LM Studio build on. Running it directly gives you the most control over compilation flags, hardware-specific optimizations, and serving parameters.

The DataCamp tutorial and Unsloth documentation both provide step-by-step walkthroughs. Here is the condensed version.

Step 1: Build llama.cpp

sudo apt-get update && sudo apt-get install -y \
  build-essential cmake curl libcurl4-openssl-dev pciutils

git clone https://github.com/ggml-org/llama.cpp
cmake llama.cpp -B llama.cpp/build \
    -DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON
cmake --build llama.cpp/build --config Release -j \
    --clean-first --target llama-cli llama-server
cp llama.cpp/build/bin/llama-* llama.cpp

On Mac (Metal), swap -DGGML_CUDA=ON for -DGGML_CUDA=OFF — Metal acceleration is enabled by default.

Step 2: Download the Model

The Unsloth quantized GGUFs are the go-to for local deployment:

pip install -U "huggingface_hub[hf_xet]" hf-xet hf_transfer

huggingface-cli download unsloth/GLM-5-GGUF \
    --local-dir GLM-5-GGUF \
    --include "*UD-IQ2_XXS*"

With HF transfer acceleration, download speeds can hit ~1.2 GB/s.

Step 3: Run the Server

./llama.cpp/llama-server \
  --model GLM-5-GGUF/UD-IQ2_XXS/GLM-5-UD-IQ2_XXS-00001-of-00006.gguf \
  --alias "GLM-5.2" \
  --host 0.0.0.0 --port 8080 \
  --jinja --fit on \
  --threads 32 \
  --ctx-size 16384 \
  --batch-size 512 \
  --ubatch-size 128 \
  --flash-attn auto \
  --temp 0.7 --top-p 0.95

Key flags: --fit on maximizes GPU VRAM utilization before spilling to system RAM. --flash-attn auto enables optimized attention kernels. --ctx-size 16384 sets a practical context window (push higher if memory allows).

Verify it is running:

curl -s http://127.0.0.1:8080/v1/models | jq

You now have an OpenAI-compatible API at localhost:8080. Point Claude Code, Aider, or any other coding agent at it.

Step 4: Connect a Coding Agent

export OPENAI_API_BASE=http://127.0.0.1:8080/v1
export OPENAI_API_KEY=local

aider --model openai/GLM-5.2 --no-show-model-warnings

If you want to connect this to Claude Code or other tools, see our guide to running Claude Code with Ollama and OpenRouter — the same pattern applies to any OpenAI-compatible local endpoint.

Option 2: Ollama (Fastest Start)

If you want GLM-5.2 running in under five minutes, Ollama is the path. It wraps llama.cpp in a managed runtime with one-command model pulls.

curl -fsSL https://ollama.com/install.sh | sh

ollama pull glm5:latest

ollama run glm5

Ollama handles model downloading, VRAM allocation, and context management automatically. The trade-off: you lose the fine-grained control over batch sizes, thread counts, and quantization variants that llama.cpp provides. For most developers who want local inference without tuning knobs, that is the right deal.

You can also run Ollama as a persistent server and connect coding agents to it. It exposes an OpenAI-compatible API at localhost:11434:

ollama serve &

export OPENAI_API_BASE=http://localhost:11434/v1
export OPENAI_API_KEY=ollama

For more on using Ollama as a local backend for coding agents, see our guide to running Claude Code with Ollama.

Option 3: LM Studio (Visual Workflow)

Z.ai founder Jie Tang on X: GLM-5.2 is Fully Open, Frontier Intelligence Belongs to Everyone

LM Studio wraps the same inference engine in a desktop application with a visual model browser, one-click downloads from Hugging Face, and a built-in chat interface.

  1. Download LM Studio from lmstudio.ai
  2. Search for "GLM-5" in the model browser
  3. Select the quantization that fits your hardware (LM Studio shows VRAM estimates)
  4. Download and wait for the transfer to complete
  5. Load the model and start chatting — or enable the local server for API access

LM Studio is the right choice if you prefer a graphical workflow and do not need the CLI flexibility of llama.cpp. It also makes switching between quantization variants easy — useful for experimenting with the quality-vs-speed trade-off.

For a walkthrough of the LM Studio setup pattern with another open model, see our Qwen3 local Mac setup guide.

Which Quant Should You Pick?

The quantization decision comes down to one question: how much memory do you have?

Your Hardware Recommended Quant Why
256GB Mac Studio / MacBook Pro UD-IQ2_XXS (2-bit, 241GB) Fits in unified memory. Expect 3–5 tok/s
Workstation + 24GB GPU + 256–300GB RAM UD-Q2_K_XL (2-bit, 280GB) Slightly higher quality with MoE offloading
Multi-GPU (2xA100/H100) Q4_K_M (~476GB) Noticeable quality bump. Good for production
Cloud rental (8xH200) FP8 (~754GB) Near-lossless. Best for eval runs
Budget / testing only 1-bit Dynamic (176GB) Minimum viable. "Does my pipeline work?"

💡 Start with 2-bit. If you are doing serious development work and the output quality is not cutting it, move up to Q4. Most users running GLM-5.2 locally for coding tasks report that 2-bit is "surprisingly usable" — the MoE architecture means quantization errors are diluted across the inactive experts.

How It Stacks Up Against the Closed Frontier

Let's set honest expectations. GLM-5.2 is not Claude Opus 4.8. It is not GPT-5.5. Here is where it actually stands.

David Hendrickson on X: GLM-5.2 Status Update — available now for Coding Plan users, API and MIT open weights next week

Where it is strong:

  • Coding tasks, especially long-horizon refactors and agentic engineering (its design target)
  • GLM-5.1 scored 58.4 on SWE-bench Pro, ahead of Claude Opus 4.6 at the time
  • The 1M-token context window is genuinely useful for repository-scale work
  • Hacker News user pseudony reported building a full GTK/Rust/Lua application with GLM-5.1 writing ~93% of the code without regressions
  • User vidarh found GLM-5.1 outperformed Sonnet in their project's test suite over a week-long evaluation

Where it falls short:

  • Complex architectural reasoning — LaurensBER noted it excels in UI/design work but struggles with complex architecture problems
  • No independently verified GLM-5.2 benchmarks exist yet — treat all numbers as provisional
  • 2-bit quantized output quality is good but not frontier-grade; you will want human review on production code
  • The 3–9 tok/s local inference speed means you are waiting longer per response than cloud APIs

The honest framing: GLM-5.2 at 2-bit quantization running locally gives you roughly "Opus-in-January" capability (per the Hacker News community assessment) that nobody can revoke. For many workflows — batch refactors, code generation, agentic loops where latency is less critical — that is more than enough.

Why Local Matters More Than Ever

The Fable 5 ban was an inflection point, not an aberration.

VentureBeat's enterprise analysis recommended that companies "build intelligent routing layers that can dynamically switch from a frontier model to an open-weights fallback" to survive future disruptions. That is not paranoia — it is continuity planning. If the best model you depend on can disappear in 72 hours, you need a layer you actually own.

Open-weight models like GLM-5.2 provide that layer. Once you download the weights, they are yours. MIT license. No API key. No export control order can reach into your local disk. Multiple Hacker News commenters noted the practical advantage: open-weight models can be downloaded and modified locally, circumventing any API-level restrictions.

Hacker News community reactions to GLM-5.2 — developers discussing open weights, OpenRouter compatibility, and local deployment

The deeper question is not whether GLM-5.2 matches Claude Opus 4.8 on benchmarks (it does not). It is whether having a capable, self-hosted fallback is worth the hardware investment. After this week, a lot of teams are answering yes.

For a broader look at the local AI landscape, see our comprehensive guide to running AI locally in 2026 and our deep dive into why local models are now good enough for real work.

Quick-Start Checklist

If you just want GLM-5.2 running as fast as possible:

  1. Check your memory: Need 256GB+ for the 2-bit quant
  2. Pick your tool: Ollama for simplicity, llama.cpp for control, LM Studio for GUI
  3. Download the model: ~241GB for UD-IQ2_XXS, ~280GB for Q2_K_XL
  4. Run the server: One command (Ollama) or a configured launch (llama.cpp)
  5. Connect your agent: Point Claude Code, Aider, or Cline at localhost

The weights are MIT-licensed. The inference stack is open source. The hardware is yours. That is the whole point.

Originally published at ComputeLeap