What GLM-5.3-Flash Is
| Feature | GLM-5.3-Flash |
|---|---|
| Parameters | 320B total, 18B active per token |
| Context | Up to 1,048,576 tokens |
| Input | Text, images and video |
| Reasoning effort | low, high, max (default) |
| Licence | MIT |
| Original weights | FP8, about 306 GiB |
| llama.cpp builds | Q2_K_S 110 GB, Q2_K 133.8 GB, Q4_K 181.4 GB, Q8_0 341 GB |
From Z.ai's model card, llama.cpp's builds, Unsloth's guide and vLLM's recipe. Lower-bit builds are smaller and lose quality: Unsloth measured its 3-bit build choosing the same next word as the full model 87% of the time, and its 1-bit build 71%.
Dedicated Servers That Can Run It
The largest build that fits the biggest memory option of each server, leaving 16 GB for the system and the conversation. Beyond fitting it, memory bandwidth decides the speed: more memory channels, all filled, mean faster answers.
| Server | Memory | Largest build | From |
|---|---|---|---|
| AMD Ryzen 9 5950X | 128 GB | Q2_K_S | $399.00/mo |
| Intel Core Ultra 9 285K | 128 GB | Q2_K_S | $399.00/mo |
| AMD Ryzen 9 7950X | 128 GB | Q2_K_S | $479.00/mo |
| AMD EPYC 4585PX | 128 GB | Q2_K_S | $849.00/mo |
| AMD Ryzen 9 9950X | 192 GB | Q2_K | $669.00/mo |
| AMD EPYC 9B14 | 192 GB | Q2_K | $1,189.00/mo |
| AMD Dual EPYC 7502 | 256 GB | Q4_K | $529.00/mo |
| AMD EPYC 9334 | 256 GB | Q4_K | $829.00/mo |
| AMD EPYC 9754S | 256 GB | Q4_K | $1,319.00/mo |
| AMD Dual EPYC 9174F | 384 GB | Q8_0 | $1,319.00/mo |
| AMD Dual EPYC 7702 | 512 GB | Q8_0 | $869.00/mo |
| AMD EPYC 7443P | 512 GB | Q8_0 | $969.00/mo |
| AMD EPYC 9455P | 512 GB | Q8_0 | $999.00/mo |
| AMD Ryzen Threadripper 9960X | 512 GB | Q8_0 | $1,269.00/mo |
| AMD EPYC 9455 | 512 GB | Q8_0 | $2,299.00/mo |
| AMD EPYC 9254 | 768 GB | Q8_0 | $1,189.00/mo |
| AMD Ryzen Threadripper 9970X | 768 GB | Q8_0 | $3,289.00/mo |
| AMD Dual EPYC 7443 | 1 TB | Q8_0 | $519.00/mo |
| AMD EPYC 9275F | 1 TB | Q8_0 | $929.00/mo |
| AMD Dual EPYC 7742 | 1 TB | Q8_0 | $1,059.00/mo |
| AMD EPYC 9355P | 1 TB | Q8_0 | $2,109.00/mo |
| AMD EPYC 9755 | 1 TB | Q8_0 | $2,109.00/mo |
| AMD Ryzen Threadripper 7960X | 1 TB | Q8_0 | $3,159.00/mo |
| AMD Dual EPYC 9B14 | 1.5 TB | Q8_0 | $6,059.00/mo |
| AMD Dual EPYC 7H12 | 2 TB | Q8_0 | $2,639.00/mo |
| AMD Dual EPYC 7763 | 4 TB | Q8_0 | $3,949.00/mo |
On Our GPU Servers
llama.cpp fills the GPUs first and keeps the rest in system memory, so both count. The largest build for each server's combined memory:
| Plan | GPU | Total GPU memory | System memory | Largest build | Price |
|---|---|---|---|---|---|
| Intel Core Ultra 9 285K w/ NVIDIA Tesla P4 | NVIDIA Tesla P4 · 8 GB | 8 GB | 192 GB | Q4_K | $589.00/mo |
| NVIDIA DGX Spark | NVIDIA DGX Spark · 128 GB | 128 GB | 128 GB | Q2_K_S | $609.00/mo |
| AMD EPYC 7443P w/ NVIDIA RTX 3090 | NVIDIA RTX 3090 · 24 GB | 24 GB | 256 GB | Q4_K | $659.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 3050 | NVIDIA RTX 3050 · 6 GB | 6 GB | 192 GB | Q4_K | $699.00/mo |
| AMD Dual EPYC 7702 w/ NVIDIA RTX 3050 | NVIDIA RTX 3050 · 6 GB | 6 GB | 256 GB | Q4_K | $749.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 5090 | NVIDIA RTX 5090 · 32 GB | 32 GB | 96 GB | Q2_K_S | $829.00/mo |
| AMD Dual EPYC 7702 w/ NVIDIA RTX 5070 | NVIDIA RTX 5070 · 12 GB | 12 GB | 256 GB | Q4_K | $859.00/mo |
| AMD EPYC 7702 w/ 4x NVIDIA RTX 3090 | 4× NVIDIA RTX 3090 · 24 GB each | 96 GB | 128 GB | Q4_K | $929.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 16GB | 4× NVIDIA V100 · 16 GB each | 64 GB | 128 GB | Q2_K | $1,059.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 32GB | 4× NVIDIA V100 · 32 GB each | 128 GB | 128 GB | Q4_K | $1,059.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 | 4× NVIDIA V100 | — | 256 GB | Q4_K | $1,189.00/mo |
| Intel Dual Xeon Platinum 8260 w/ 8x NVIDIA V100 | 8× NVIDIA V100 · 32 GB each | 256 GB | 1 TB | Q8_0 | $1,319.00/mo |
| AMD EPYC 9B14 w/ 2x NVIDIA RTX 5090 | 2× NVIDIA RTX 5090 · 32 GB each | 64 GB | 384 GB | Q8_0 | $2,639.00/mo |
| AMD EPYC 9355 w/ NVIDIA RTX PRO 6000 | NVIDIA RTX PRO 6000 · 96 GB | 96 GB | 768 GB | Q8_0 | $2,639.00/mo |
| AMD EPYC 9254 w/ 4x NVIDIA RTX 5090 | 4× NVIDIA RTX 5090 · 32 GB each | 128 GB | 384 GB | Q8_0 | $3,819.00/mo |
1. Run It With llama.cpp
The simplest route, with or without a GPU. Check that the disk has room for the download first:
df -h ~ # 181.4 GB for Q4_K
curl -LsSf https://llama.app/install.sh | sh
openssl rand -hex 24 > ~/.llm-key
llama serve -hf ggml-org/GLM-5.3-Flash-GGUF:Q4_K \
-c 65536 --host 127.0.0.1 --port 8080 --api-key "$(cat ~/.llm-key)" \
--temp 1.0 --top-p 0.95 \
--chat-template-kwargs '{"reasoning_effort":"high"}'- With a GPU: llama.cpp fits what it can on its own. To decide yourself, add
--n-cpu-moe 45, which keeps the experts of all 45 layers in system memory and the rest on the GPU, and lower the number until the GPU is nearly full. - Other builds:
:Q2_Kor:Q2_K_Sfor less memory;-hf unsloth/GLM-5.3-Flash-GGUF:Q8_0for 8-bit. - Two processors: try
--numa distribute, which spreads the work across both.
Reach the API and the chat page with ssh -L 8080:127.0.0.1:8080 you@203.0.113.10.
2. Run the FP8 Weights With KTransformers
KTransformers reads the original FP8 weights with the experts in system memory and the rest on one or more NVIDIA RTX 40 or 50 series cards. It asks for at least 350 GB of available system memory and a processor with AVX-512. Its single-GPU launch, listening only on the server itself and with threads to set for yours:
lscpu | grep -o 'avx512[a-z_0-9]*' | sort -u # must print something free -g # at least 350 available # in a clean Python 3.11 environment pip install "ktransformers[sglang]" hf download zai-org/GLM-5.3-Flash --local-dir ~/GLM-5.3-Flash MODEL_PATH=~/GLM-5.3-Flash CUDA_VISIBLE_DEVICES=0 python -m sglang.launch_server \ --model-path "$MODEL_PATH" --kt-weight-path "$MODEL_PATH" \ --served-model-name GLM-5.3-flash --host 127.0.0.1 \ --tp-size 1 --context-length 501025 --mem-fraction-static 0.65 \ --chunked-prefill-size 2048 --kt-method FP8 \ --kt-cpuinfer 64 --kt-threadpool-count 2 --kt-num-gpu-experts 0 \ --kt-gpu-prefill-token-threshold 2048 --cuda-graph-bs 1 2 4 \ --tool-call-parser glm47 --reasoning-parser glm45 # API on http://127.0.0.1:30000/v1
The tutorial's 64 threads and 2 pools suit its own test machine: set --kt-cpuinfer to your physical cores and --kt-threadpool-count to your processor sockets, and lower --context-length if the GPU runs out of memory. It also has a four-GPU launch.
3. Entirely on GPUs With vLLM
vLLM's recipe loads all 306 GiB of FP8 weights onto the GPUs, with eight H200s as its default. That is data-center hardware for serving many users. For a team on one server, sections 1 and 2 are the practical routes.
Settings and Smaller Alternatives
- Reasoning: defaults to
max. Setloworhighfor quicker answers. - Chat: Z.ai says to pass
clear_thinking=truefor chat, which drops earlier reasoning from the conversation. - Less memory than this? gpt-oss-120b needs about 64 GB, and Qwen4-35B-A3B about 36 GB.
- Choosing hardware: GPU vs CPU for AI inference.
GLM, NVIDIA, RTX and DGX Spark are trademarks of their respective owners. Virteche is not affiliated with or endorsed by them. Details about their products come from their public documentation as of the date at the top of this guide.