Image-Text-to-Text
Transformers
Safetensors
glm5_next
glm5
exl3
quantized
mixture-of-experts
conversational
3-bit
Instructions to use wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1") model = AutoModelForMultimodalLM.from_pretrained("wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1
- SGLang
How to use wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1 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 "wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1" \ --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": "wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1" \ --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": "wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1 with Docker Model Runner:
docker model run hf.co/wrldsuksgo2mars/GLM-5.3-Flash-EXL3-K3.25-v1
docs: add final v0.7.0 runtime qualification
Browse files
README.md
CHANGED
|
@@ -43,14 +43,24 @@ recovery contract covers any expert below the 1,024-route floor. Allocation
|
|
| 43 |
provenance and the validation report ship with the model; the full error ledger
|
| 44 |
is retained separately as internal quantization evidence.
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
## Serving
|
| 56 |
|
|
|
|
| 43 |
provenance and the validation report ship with the model; the full error ledger
|
| 44 |
is retained separately as internal quantization evidence.
|
| 45 |
|
| 46 |
+
## Qualified two-GPU serving result
|
| 47 |
+
|
| 48 |
+
Release `v0.7.0` of the matching B12x/vLLM recipe qualified the public target
|
| 49 |
+
revision with DFlash2 K5, FP8 MLA, TP2 + EP2 + DCP2, vision up to 16 images,
|
| 50 |
+
and a 1,048,576-token request limit on 2× RTX PRO 6000 Blackwell at a 400 W
|
| 51 |
+
power cap per GPU.
|
| 52 |
+
|
| 53 |
+
- Code-agent decode: **213 tok/s at C1** and **832 tok/s at C16**.
|
| 54 |
+
- 128K cold prefill: **4,572 tok/s**.
|
| 55 |
+
- Available KV cache: **2,758,919 tokens**.
|
| 56 |
+
- Exact 1M multi-needle test: **6/6 needles recovered**.
|
| 57 |
+
- Exact 69-case thinking tool-call suite at parallelism 8: **86/100**
|
| 58 |
+
(55 pass, 8 partial, 6 fail), versus 88/100 for the matched uniform-K3
|
| 59 |
+
control.
|
| 60 |
+
|
| 61 |
+
The full prompts, outputs, scoring, performance curves, and machine-readable
|
| 62 |
+
receipts are in the recipe's
|
| 63 |
+
[`v0.7.0` benchmark report](https://github.com/tpurtell/glm-5.3-flash-ext3-4-bit-2x-rtx/blob/v0.7.0/benchmarks/RESULTS.md).
|
| 64 |
|
| 65 |
## Serving
|
| 66 |
|