Instructions to use nota-ai/GLM-5.3-Flash-Nota-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nota-ai/GLM-5.3-Flash-Nota-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nota-ai/GLM-5.3-Flash-Nota-NVFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("nota-ai/GLM-5.3-Flash-Nota-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("nota-ai/GLM-5.3-Flash-Nota-NVFP4", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nota-ai/GLM-5.3-Flash-Nota-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nota-ai/GLM-5.3-Flash-Nota-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nota-ai/GLM-5.3-Flash-Nota-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nota-ai/GLM-5.3-Flash-Nota-NVFP4
- SGLang
How to use nota-ai/GLM-5.3-Flash-Nota-NVFP4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "nota-ai/GLM-5.3-Flash-Nota-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nota-ai/GLM-5.3-Flash-Nota-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "nota-ai/GLM-5.3-Flash-Nota-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nota-ai/GLM-5.3-Flash-Nota-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nota-ai/GLM-5.3-Flash-Nota-NVFP4 with Docker Model Runner:
docker model run hf.co/nota-ai/GLM-5.3-Flash-Nota-NVFP4
Nota GLM-5.3-Flash · NVFP4 (W4A4)
A 4-bit (NVFP4) quantized release of Z.ai's GLM-5.3-Flash — a 320B-parameter natively multimodal Mixture-of-Experts model with ~18B active per token.
4 × B300 → 1 × B300
598.5 GiB → 191.0 GiB (31.9%)
Full 1,048,576-token context · MTP speculative decoding preserved
Highlights
- NVFP4 (4-bit float, W4A4) —
group_size=16, packed in the compressed-tensorsnvfp4-pack-quantizedformat for direct serving in vLLM. Both weights and activations are quantized to 4-bit floating point.Requires NVIDIA Blackwell. NVFP4 relies on the FP4 tensor cores introduced in the Blackwell architecture (e.g. B200 / B300 / GB200), so inference must run on a Blackwell-class GPU. Earlier architectures (Hopper, Ada, Ampere) do not support NVFP4 execution.
- Only the routed experts are quantized. They hold 94.8% of the parameters, so the memory saving is captured almost in full while every precision-critical path stays in BF16 — the same split the reference GLM-5.3 NVFP4 release uses.
- No architecture change. Tensor names, layer count and expert count are identical to the base checkpoint, so stock vLLM serves it as-is — no patched modeling file.
- MTP and multimodal preserved. The multi-token-prediction block and the vision tower stay BF16, so speculative decoding and image/video inputs work as in the base model.
Quantization scope
| Modules | Parameters | |
|---|---|---|
| NVFP4 — routed experts, layers 3–44 | 36,288 | 304.41 B (94.8%) |
| BF16 — everything else | 1,574 | 16.85 B (5.2%) |
Kept in BF16:
| Group | Tensors |
|---|---|
| KDA linear attention | self_attn.{q,k,v,b,f_a,f_b,g_a,g_b,o}_proj, conv1d, A_log, dt_bias |
| DSA sparse attention (MLA) | self_attn.{q_a,q_b,kv_a_proj_with_mqa,kv_b,o}_proj |
| DSA indexer | self_attn.indexer.* |
| MoE routers | mlp.gate.weight, mlp.gate.e_score_correction_bias |
| Shared experts | mlp.shared_experts.* |
| Leading dense MLPs | layers.{0,1,2}.mlp.* |
| MTP block | layers.45.* |
| Embeddings / head / vision | embed_tokens, lm_head, model.visual.* |
Calibration
512 conversations of exactly 4,096 tokens, rendered through the GLM chat template and drawn from
the workloads this model is built for rather than generic web text: agentic tool use (20.5%), SWE
agent trajectories (14.3%), instruction following (8.2%), terminal agents (7.8%), code (7.0%),
STEM (5.9%), reasoning (4.7%), knowledge MCQ (2.3%), and 29.3% Korean sources. 71.7% of the
samples carry reasoning traces inside <think> blocks.
Requirements
vllm >= 0.29.0
flashinfer >= 0.6.17 # sparse MLA
Quick Start
B300 × 1
CUDA_VISIBLE_DEVICES=0 \
vllm serve nota-ai/GLM-5.3-Flash-Nota-NVFP4 \
--served-model-name nota-ai/GLM-5.3-Flash-Nota-NVFP4 \
--tensor-parallel-size 1 \
--gpu-memory-utilization 0.96 \
--compilation-config '{"cudagraph_mode":"PIECEWISE"}' \
--kv-cache-dtype fp8 \
--speculative-config '{"method":"mtp","num_speculative_tokens":5}' \
--tool-call-parser glm47 \
--reasoning-parser glm45 \
--enable-auto-tool-choice
B200 × 2
CUDA_VISIBLE_DEVICES=0,1 \
vllm serve nota-ai/GLM-5.3-Flash-Nota-NVFP4 \
--served-model-name nota-ai/GLM-5.3-Flash-Nota-NVFP4 \
--tensor-parallel-size 2 \
--gpu-memory-utilization 0.90 \
--compilation-config '{"cudagraph_mode":"PIECEWISE"}' \
--kv-cache-dtype fp8 \
--speculative-config '{"method":"mtp","num_speculative_tokens":5}' \
--tool-call-parser glm47 \
--reasoning-parser glm45 \
--enable-auto-tool-choice
- Downloads last month
- -
Model tree for nota-ai/GLM-5.3-Flash-Nota-NVFP4
Base model
zai-org/GLM-5.3-Flash-BF16