Text Generation
Transformers
Safetensors
English
Chinese
glm_moe_dsa
quark
mxfp4
rocm
sglang
conversational
8-bit precision
Run this model with HF Jobs
Run OneNexus/GLM-5.3-MXFP4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/OneNexus/GLM-5.3-MXFP4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OneNexus/GLM-5.3-MXFP4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/OneNexus/GLM-5.3-MXFP4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use OneNexus/GLM-5.3-MXFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OneNexus/GLM-5.3-MXFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OneNexus/GLM-5.3-MXFP4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("OneNexus/GLM-5.3-MXFP4") model = AutoModelForCausalLM.from_pretrained("OneNexus/GLM-5.3-MXFP4", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OneNexus/GLM-5.3-MXFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OneNexus/GLM-5.3-MXFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OneNexus/GLM-5.3-MXFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OneNexus/GLM-5.3-MXFP4
- SGLang
How to use OneNexus/GLM-5.3-MXFP4 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 "OneNexus/GLM-5.3-MXFP4" \ --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": "OneNexus/GLM-5.3-MXFP4", "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 "OneNexus/GLM-5.3-MXFP4" \ --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": "OneNexus/GLM-5.3-MXFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OneNexus/GLM-5.3-MXFP4 with Docker Model Runner:
docker model run hf.co/OneNexus/GLM-5.3-MXFP4
Update model card with latest image and eval results
Browse filesUpdate the SGLang ROCm image tag and digest comment, and add DeepSWE v1.1 and Terminal-Bench 4.0 evaluation tables.
26 unmodified lines272829303132333443 unmodified lines78798081828313 unmodified lines97989910010110210333 unmodified lines1371381391401411424 unmodified lines14714814915015115215326 unmodified lines- **Source checkpoint:** [zai-org/GLM-5.3-BF16](https://huggingface.co/zai-org/GLM-5.3-BF16), revision `304b8051cfb2b260b61ce0cbe330e02a98e73639`- **Validated hardware:** 4× AMD Instinct MI350 GPUs (gfx950)- **Validated runtime:** stock InferenceX/SGLang ROCm path- SGLang image tag `lmsysorg/sglang-rocm:v0.5.16-rocm720-mi35x-20260728`- validated image digest `sha256:a95431225d5079bb398a3f49e7049630f62a2489197fbfd3c5ff84b02f026145`- TP4/EP4, EAGLE MTP, TileLang DSA, AITER MXFP4 MoE, FP8 E4M3 KV cache, and HiCache- AMD Quark `0.12.post1+1b229f7` checkpoint format43 unmodified lineshf download OneNexus/GLM-5.3-MXFP4 \--local-dir "$PWD/GLM-5.3-MXFP4"docker run --rm \--device=/dev/kfd \--device=/dev/dri \13 unmodified lines-e SGLANG_OPT_USE_TOPK_V2=false \-e NCCL_MIN_NCHANNELS=112 \-e ROCM_QUICK_REDUCE_QUANTIZATION=INT8 \lmsysorg/sglang-rocm@sha256:a95431225d5079bb398a3f49e7049630f62a2489197fbfd3c5ff84b02f026145 \sglang serve \--model-path /model \--served-model-name glm-5.3-mxfp4 \33 unmodified lines## EvaluationThis MXFP4 release and the BF16 oracle were evaluated with [sgl-eval](https://github.com/sgl-project/sgl-eval) using `temperature=0`, `seed=0`, `reasoning_effort=max`, and a 16,384-token maximum output limit. The MXFP4 endpoint used the stock InferenceX recipe above on four MI350 GPUs. “16K” below is the maximum output-token limit, not the input-context limit.Definitions:4 unmodified lines- **Excluding truncation:** correct ÷ (completed − truncated).- **Recovery:** MXFP4 accuracy ÷ BF16 accuracy.### 16K accuracy| Benchmark | Model | Completed | Correct | Raw accuracy | Truncated | Excluding truncation | Recovery (raw / excl. trunc.) ||---|---:|---:|---:|---:|---:|---:|---:|26 unmodified lines2728293031323343 unmodified lines77787980818283848513 unmodified lines9910010110210310410533 unmodified lines1391401411421431441451461471481491501511521531541551561571581591601611621631641651661674 unmodified lines17217317417517617717826 unmodified lines- **Source checkpoint:** [zai-org/GLM-5.3-BF16](https://huggingface.co/zai-org/GLM-5.3-BF16), revision `304b8051cfb2b260b61ce0cbe330e02a98e73639`- **Validated hardware:** 4× AMD Instinct MI350 GPUs (gfx950)- **Validated runtime:** stock InferenceX/SGLang ROCm path- SGLang image tag `lmsysorg/sglang-rocm:v0.5.19-rocm720-mi35x-20260908`- TP4/EP4, EAGLE MTP, TileLang DSA, AITER MXFP4 MoE, FP8 E4M3 KV cache, and HiCache- AMD Quark `0.12.post1+1b229f7` checkpoint format43 unmodified lineshf download OneNexus/GLM-5.3-MXFP4 \--local-dir "$PWD/GLM-5.3-MXFP4"# sha256:976bdf01d2e41ed5354741f99afc2cf0164e4f25607a1263e2f5c7519c60fa9fdocker run --rm \--device=/dev/kfd \--device=/dev/dri \13 unmodified lines-e SGLANG_OPT_USE_TOPK_V2=false \-e NCCL_MIN_NCHANNELS=112 \-e ROCM_QUICK_REDUCE_QUANTIZATION=INT8 \lmsysorg/sglang-rocm:v0.5.19-rocm720-mi35x-20260908 \sglang serve \--model-path /model \--served-model-name glm-5.3-mxfp4 \33 unmodified lines## Evaluation### Agentic benchmarksIndependent evaluations were run on AMD Instinct MI355X infrastructure using the official benchmark harnesses and sampling settings.#### DeepSWE v1.1[DeepSWE](https://deepswe.datacurve.ai/) was evaluated with the official `mini-swe-agent` harness, `temperature=0.95`, `top_p=1.0`, a 6-hour task timeout, and a 400K context limit. The table reports the multi-run score and the reported variation.| Model / reference | Pass@1 ||---|---:|| DataCurve official | 69.0% ± 3.0% || GLM-5.3 FP8 | 70.6% ± 4.9% || **GLM-5.3 MXFP4** | **68.9% ± 4.0%** |#### Terminal-Bench 4.0| Model / endpoint | Pass@3 ||---|---:|| Official GLM-5.3 API | 55.87% || **GLM-5.3 MXFP4** | **55.87%** |### SGL-eval accuracy (16K output cap)This MXFP4 release and the BF16 oracle were evaluated with [sgl-eval](https://github.com/sgl-project/sgl-eval) using `temperature=0`, `seed=0`, `reasoning_effort=max`, and a 16,384-token maximum output limit. The MXFP4 endpoint used the stock InferenceX recipe above on four MI350 GPUs. “16K” below is the maximum output-token limit, not the input-context limit.Definitions:4 unmodified lines- **Excluding truncation:** correct ÷ (completed − truncated).- **Recovery:** MXFP4 accuracy ÷ BF16 accuracy.#### Results| Benchmark | Model | Completed | Correct | Raw accuracy | Truncated | Excluding truncation | Recovery (raw / excl. trunc.) ||---|---:|---:|---:|---:|---:|---:|---:|
README.md+29-4