selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

zai-org logo

GLM-5.3-Flash

zai-org·Instruct·released 25 Aug 2026

MIT321BA18.3BMoE1M ctx ≈213 GB
Your GPU
ollama run glm-5.3-flash
All 6 runners ↓

GLM-5.3-Flash is an instruct vision-language model from zai-org in the GLM 5.3 family. It has 321.3B total parameters, with 18.3B active parameters through a mixture-of-experts design. It accepts text and image input, produces text output, and supports a context length of 1,048,576 tokens. The model is released under the MIT licence and allows commercial use. Other models in the family are GLM-5.3, GLM-5.3-BF16 and GLM-5.3-Flash-BF16.

How much VRAM does GLM-5.3-Flash need?

At Q4_K_M GLM-5.3-Flash needs about 213 GB with an 8K context (213 GB at Q4, 651 GB at full precision). Pick your GPU to see what fits and how fast it runs.

--vram
any
--gpus
--quant

Needs: ≈213 GB · Q4_K_M · 8K context — Pick a GPU to check the fit.

Change quant, context or KV cache to compare
Advanced: context 8K · KV cache 16-bit
Context
KV cache

Smallest GPU for each quant and context (KV cache 16-bit)

Quantisation8K16K32K64K128K1M
Q3_K_M
Q4_K_M
Q5_K_M
Q6_K
Q8_0
FP16

≤16 GB card24–32 GB48–96 GBmore

QuantisationQualityWeightsKV cacheTotal
Q2_KHeavy lossSmallest, noticeably worse qualityHeavy loss98 GB est.23 GB≈126 GB
Q3_K_MNoticeable lossSmall, some quality lossNoticeable loss146 GB est.23 GB≈177 GB
Q4_K_MrecommendedSmall lossRecommended default for local useSmall loss181 GB est.23 GB≈213 GB
Q5_K_MNear-losslessNear-lossless for most tasksNear-lossless213 GB est.23 GB≈246 GB
Q6_KNear-losslessPractically losslessNear-lossless247 GB est.23 GB≈282 GB
Q8_0LosslessLossless in practice, twice the size of Q4Lossless318 GB file23 GB≈356 GB
FP16 / BF16LosslessFull precision, as releasedLossless598 GB file23 GB≈650 GB

Estimates for 8K tokens of context: weights + KV cache + runtime overhead. All experts stay in memory, but only the active ones are read per token. Speed assumes memory-bound decoding at your GPU’s bandwidth. Pick a GPU above and the fit column checks every row against it. Weights marked “file” use the real GGUF download size; “est.” rows are computed from the parameter count.

How to pick a quant

Take the biggest quant that fits with room left for context. Q4_K_M is the usual sweet spot. Below Q4 quality drops fast, above Q6 you mostly pay memory for nothing. Big models (70B+, large MoE) tolerate low quants better than small ones.

  • LosslessF16, Q8_0
  • Near-losslessQ6_K, Q5_K_M
  • Small lossQ5_K_S, Q4_K_M, IQ4_NL, IQ4_XS, Q4_K_S
  • Noticeable lossQ4_0, Q3_K_L, Q3_K_M, IQ3_M
  • Heavy lossIQ3_XXS, Q3_K_S, IQ2_M, Q2_K

Typical quality loss, not measured per model. Tiers come from KL divergence against FP16 on Llama 3 8B: llama.cpp perplexity README: LLaMA 3 8B scoreboard (KLD and ΔPPL vs FP16, Wikitext-2); llama.cpp quantize tool: ΔPPL per quant type @ Llama-3-8B

How much context fits?

Model quant
KV cache

At 8K context, Q4_K_M needs ≈213 GB(181 GB weights + 23 GB KV cache + 9.6 GB overhead). Pick a GPU above to see how much context fits.

010002000300040001K2K4K8K16K32K64K128K256K512K1MGB

Weights + overheadKV cache

Can the Apple M3 Ultra (512 GB) run GLM-5.3-Flash? →

Speed vs quality per quant

Smaller quants run faster and fit in less memory, but lose quality.

Q2_KQ3_K_MQ4_K_MQ5_K_MQ6_KQ8_0F16

Fits in VRAMTight fitCPU offload✕ won't runQuality is typical KL divergence vs FP16, not measured for this model.

Real-world speed of GLM-5.3-Flash

Tokens per second measured by people running it at home. A GPU shows a median once 3 reports agree on the same setup. Reports far from our estimate wait for a review. Measure yours with llama-bench →

No medians yet. Be one of the first 3 to report a setup.

All reports

Run GLM-5.3-Flash locally

--quantQ4_K_Mdefault; pick your GPU to tailor itunsloth/GLM-5.3-Flash-GGUF

From the Ollama librarydocs
ollama run glm-5.3-flash

The library build picks its own default quantisation.

UD-Q4_K_XL straight from Hugging Facedocs
ollama run hf.co/unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL

Install Ollama

OpenAI-compatible server with a web UIdocs
llama-server -hf unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL

Downloads the GGUF on first run. Installed through llama.app? The same flags work with `llama serve`.

Install llama.cpp

Download with the lms CLIdocs
lms get unsloth/GLM-5.3-Flash-GGUF@UD-Q4_K_XL

Then load it from the LM Studio app or with `lms load`.

Install LM Studio

Serve an OpenAI-compatible APIdocs
vllm serve zai-org/GLM-5.3-Flash
Smaller AWQ builddocs
vllm serve wtdcode/GLM-5.3-Flash-AWQ-W4A16
Docker Compose (NVIDIA)docs
yaml
services:
  vllm:
    image: vllm/vllm-openai:latest
    command: zai-org/GLM-5.3-Flash
    ports:
      - "8000:8000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 8000.

Install vLLM

Serve an OpenAI-compatible APIdocs
sglang serve zai-org/GLM-5.3-Flash --host 0.0.0.0 --port 30000
Docker Compose (NVIDIA)docs
yaml
services:
  sglang:
    image: lmsysorg/sglang:latest
    command: sglang serve zai-org/GLM-5.3-Flash --host 0.0.0.0 --port 30000
    ports:
      - "30000:30000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 30000.

Install SGLang

Ask about an imagedocs
python
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="zai-org/GLM-5.3-Flash", dtype="auto", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
            {"type": "text", "text": "Describe this image."},
        ],
    }
]
out = pipe(text=messages, max_new_tokens=256)
print(out[0]["generated_text"][-1]["content"])

Install Transformers

Benchmarks

BenchmarkScoreRankSourceDate
Humanity's Last Exam55.3%#4 / 63 self-reportedAug 2026
Terminal-Bench 2.184.3%#9 / 33 self-reportedAug 2026
ParseBench70.8%#7 / 38 independentAug 2026
OmniDocBench (Real5)90.8%#4 / 21 independentSept 2026

Self-reported scores come from the model card and are not independently verified. Rank is among all models with a score on that benchmark.

Quantised versions and downloads

RepositoryFormatQuantSizeDownloads
amd/GLM-5.3-Flash-Quark-MXFP4SafetensorsMXFP4—18.9K
nvidia/GLM-5.3-Flash-NVFP4SafetensorsNVFP4—120.3K
tattrongvu/GLM-5.3-Flash-NVFP4SafetensorsNVFP4—86.8K
unsloth/GLM-5.3-Flash-GGUFGGUFUD-IQ1_S93 GB823.3K
unsloth/GLM-5.3-Flash-GGUFGGUFUD-IQ1_M98 GB823.3K
unsloth/GLM-5.3-Flash-GGUFGGUFUD-IQ2_XXS102 GB823.3K
unsloth/GLM-5.3-Flash-GGUFGGUFUD-Q2_K_XL109 GB823.3K
unsloth/GLM-5.3-Flash-GGUFGGUFUD-IQ3_XXS120 GB823.3K
unsloth/GLM-5.3-Flash-GGUFGGUFUD-Q3_K_XL148 GB823.3K
unsloth/GLM-5.3-Flash-GGUFGGUFUD-IQ4_XS157 GB823.3K

About GLM-5.3-Flash

👋 Join our WeChat or Discord community. 📖 Check out the GLM-5.3-Flash blog and GLM-5 Technical report . 📍 Use GLM-5.3-Flash API services on Z.ai API Platform. We introduce GLM-5.3-Flash, the first natively multimodal model in the GLM-5 series. With 320B total parameters and just 18B active parameters, it outperforms GLM-5.2 across benchmarks and real-world workloads at one-tenth the price, while approaching Claude Opus 4.8 on coding and agentic benchmarks. GLM-5.3-Flash starts from a newly trained base model, with its architecture and training recipe redesigned around capability and efficiency. For the first time in the GLM series, we introduce a hybrid architecture combining sparse and linear attention, sharply reducing long-context serving costs while preserving precise long-context capabilities. The model also adopts Manifold-Constrained Hyper-Connections (mHC) to further improve scaling efficiency. Together with our latest 30T-token multimodal pre-training corpus, these changes enable GLM-5.3-Flash to deliver more intelligence with less compute. GLM-5.3-Flash supports deployment with the following frameworks. Feel free to try them out: • SGLang — see cookbook • vLLM — see recipes • TokenSpeed — see here • Transformers — see transformers docs • KTransformers — see tutorial • Unsloth — see guide

Full model card on Hugging Face →

Other GLM 5.3 models

Whole family →
zai-org logo321BA18.3BCommercial OK≈213 GB↓ 119.6K
zai-org logo
GLM-5.3zai-org
753BA41.8BCheck licence≈476 GB↓ 2.1M
zai-org logo753BA41.8BCheck licence≈476 GB↓ 42K

Alternatives to GLM-5.3-Flash

All alternatives →
thinkingmachines logo

Inkling-Small

thinkingmachines·Vision

≈159 GB

Inkling-Small is a general-purpose multimodal model that accepts text, image and audio inputs and generates text outputs. It is intended for use in English and other languages, and across multiple coding languages.

266BA1.7B1M ctx Apache 2.0
1.2MJul 2026gguf
deepseek-ai logo

DeepSeek-V4-Flash-Vision-Exp

deepseek-ai·Vision

≈182 GB

We are excited to introduce DeepSeek-V4-Flash-Vision-Exp, our first experimental multimodal model in the DeepSeek-V4 family. It builds on the DeepSeek-V4-Flash architecture by incorporating visual modules and undergoing continued training to unlock visual understanding capabilities.

305BA15.2B1M ctx MIT
155KAug 2026gguf
Qwen logo

Qwen3.5-397B-A17B

Qwen·Vision

≈241 GB

Over recent months, we have intensified our focus on developing foundation models that deliver exceptional utility and performance.

403BA17B256K ctx Apache 2.0
857.2KFeb 2026gguf
Qwen logo

Qwen3.8-Flash-Next

Qwen·Vision

≈108 GB

As the frontier of foundation models pushes toward ever-larger parameter counts and ever-longer context windows, the question is no longer just how much we can scale, but how efficiently we can do so.

180BA61.6B256K ctx qwen-community-1.0
3.6MAug 2026ollama
MiniMaxAI logo

MiniMax-M3

MiniMaxAI·Vision

≈255 GB

MiniMax-M3 is a native multimodal model with 1M context. It has ~428B parameters and ~23B activated parameters.

427B1M ctx minimax-community
155.9KJun 2026ollama
MiniMaxAI logo

MiniMax-M3.1-Flash

MiniMaxAI·Vision

≈132 GB

MiniMax-M3.1-Flash is a native multimodal mixture-of-experts model for coding, agentic workflows, computer use, and cybersecurity. It supports text, image, and video inputs with a context window of up to 1M tokens.

220B1M ctx minimax-community
48.8KOct 2026ollama

GLM-5.3-Flash FAQ

How much VRAM does GLM-5.3-Flash need?
About 213 GB at Q4_K_M with an 8K context. Q8_0 needs about 357 GB and full precision about 651 GB. Longer contexts need more memory for the KV cache.
Can GLM-5.3-Flash run on the Apple M3 Ultra (512 GB)?
Yes. It fits at Q8_0 (about 356 GB), at an estimated 23 tokens/s.
Can I use GLM-5.3-Flash commercially?
Yes. It is released under MIT. Permissive: do almost anything as long as you keep the copyright notice.
What is the context length of GLM-5.3-Flash?
1,048,576 tokens (1M). The full window needs far more memory than an 8K context.
How do I run GLM-5.3-Flash with Ollama or llama.cpp?
With Ollama: ollama run glm-5.3-flash. With llama.cpp: llama-server -hf unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL, which starts an OpenAI-compatible server.

Data from Hugging Face, the model card and public leaderboards. Memory and speed figures are estimates; real numbers depend on the runtime, context length and drivers. Always check the licence yourself before commercial use.