Image-Text-to-Text
Transformers
Safetensors
glm5_next
glm
exl3
tr3
vllm
sm120
nvfp4
dflash2
multimodal
shapleymcg
conversational
Eval Results (legacy)
4-bit precision
Instructions to use brandonmusic/GLM-5.3-Flash-tr3-4bpw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use brandonmusic/GLM-5.3-Flash-tr3-4bpw with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="brandonmusic/GLM-5.3-Flash-tr3-4bpw") 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("brandonmusic/GLM-5.3-Flash-tr3-4bpw") model = AutoModelForMultimodalLM.from_pretrained("brandonmusic/GLM-5.3-Flash-tr3-4bpw", 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 brandonmusic/GLM-5.3-Flash-tr3-4bpw with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "brandonmusic/GLM-5.3-Flash-tr3-4bpw" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "brandonmusic/GLM-5.3-Flash-tr3-4bpw", "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/brandonmusic/GLM-5.3-Flash-tr3-4bpw
- SGLang
How to use brandonmusic/GLM-5.3-Flash-tr3-4bpw 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 "brandonmusic/GLM-5.3-Flash-tr3-4bpw" \ --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": "brandonmusic/GLM-5.3-Flash-tr3-4bpw", "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 "brandonmusic/GLM-5.3-Flash-tr3-4bpw" \ --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": "brandonmusic/GLM-5.3-Flash-tr3-4bpw", "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 brandonmusic/GLM-5.3-Flash-tr3-4bpw with Docker Model Runner:
docker model run hf.co/brandonmusic/GLM-5.3-Flash-tr3-4bpw
Download runtime-results/v34/fp8-five-run-gpu23-receipt.json from brandonmusic/GLM-5.3-Flash-tr3-4bpw: direct link, hf CLI and curl.
- Browser
- Download file 3.73 kB
-
https://huggingface.co/brandonmusic/GLM-5.3-Flash-tr3-4bpw/resolve/main/runtime-results/v34/fp8-five-run-gpu23-receipt.json
- Command line
-
hf download hf://brandonmusic/GLM-5.3-Flash-tr3-4bpw/runtime-results/v34/fp8-five-run-gpu23-receipt.json
-
curl -L -o fp8-five-run-gpu23-receipt.json https://huggingface.co/brandonmusic/GLM-5.3-Flash-tr3-4bpw/resolve/main/runtime-results/v34/fp8-five-run-gpu23-receipt.json
3.73 kB
| { | |
| "all_quality_gates_passed": true, | |
| "maximum_run_mean": 0.024891557640764127, | |
| "mean_of_run_means": 0.024701972040294416, | |
| "mean_top1_agreement": 0.9391304347826086, | |
| "minimum_run_mean": 0.02453289589104624, | |
| "population_stddev_of_run_means": 0.00011556388718720383, | |
| "prediction_positions_per_run": 2047, | |
| "regime": "v34 TP2 DCP1 eager no-MTP FP8 MLA KV on physical GPUs 2-3; final-0000 full 2048-token input, 2047 causal prediction positions, BF16 teacher, float64 KL", | |
| "run_count": 5, | |
| "runs": [ | |
| { | |
| "capture_manifest_sha256": "aa43e7373459c7eae28b4d38ba62d8ab59d86c733a49073fef213de2bc72c4e5", | |
| "mean_kld": 0.024677178792442127, | |
| "prediction_positions": 2047, | |
| "quality_gate_passed": true, | |
| "report_path": "/home/brandonmusic/KLC_SANDBOXES/glm53-exl3-k4-sm120/results/kld/fp8-dcp1-eager-five-run-gpu23-v34/measurements/run-01/kld-report.json", | |
| "report_sha256": "11f3db97305080d7f4ebe010533e10de70a2fae53ebd67bcecc8cda3919fe1f6", | |
| "run": 1, | |
| "tokenwise_kld_sha256": "0abcf822d6c1788aba767940bf439f01a23d3cda009aa25f61c20345d7c77949", | |
| "top1_agreement": 0.9408891060087934 | |
| }, | |
| { | |
| "capture_manifest_sha256": "dc993031e86b7d6674133bafad61697d711b02535acd971d49a78aee479b0814", | |
| "mean_kld": 0.02453289589104624, | |
| "prediction_positions": 2047, | |
| "quality_gate_passed": true, | |
| "report_path": "/home/brandonmusic/KLC_SANDBOXES/glm53-exl3-k4-sm120/results/kld/fp8-dcp1-eager-five-run-gpu23-v34/measurements/run-02/kld-report.json", | |
| "report_sha256": "3897b7f3c905bce9897e7c6433c3e2e8cca18150828a5836fe759b3f4576d5ed", | |
| "run": 2, | |
| "tokenwise_kld_sha256": "ac539781b1dc47154db0eb9e187013ca37ee7baa49a4a4c44b26bdaf0583f5d4", | |
| "top1_agreement": 0.9418661455788959 | |
| }, | |
| { | |
| "capture_manifest_sha256": "faf78b9b2ac5d8a5f1c3f864fd1df53663fae30fa82776f56422e921d6b7b3ec", | |
| "mean_kld": 0.024732589677082917, | |
| "prediction_positions": 2047, | |
| "quality_gate_passed": true, | |
| "report_path": "/home/brandonmusic/KLC_SANDBOXES/glm53-exl3-k4-sm120/results/kld/fp8-dcp1-eager-five-run-gpu23-v34/measurements/run-03/kld-report.json", | |
| "report_sha256": "4db49c413e33ab679bf2fa401445e5e17624a12439edb663ef09eedda21ee6da", | |
| "run": 3, | |
| "tokenwise_kld_sha256": "b3192e6d32d1530686776bb45071c2b0be770617147644c1890913038325bb69", | |
| "top1_agreement": 0.9355153883732291 | |
| }, | |
| { | |
| "capture_manifest_sha256": "01523a113b4d458583f6680726a143fd768653dc57ade3ba82686e9e1b37090f", | |
| "mean_kld": 0.024675638200136674, | |
| "prediction_positions": 2047, | |
| "quality_gate_passed": true, | |
| "report_path": "/home/brandonmusic/KLC_SANDBOXES/glm53-exl3-k4-sm120/results/kld/fp8-dcp1-eager-five-run-gpu23-v34/measurements/run-04/kld-report.json", | |
| "report_sha256": "40fba105c292c73eadae7d0cc5f9e7bc9a635200e141b6036ea07e5367ef3296", | |
| "run": 4, | |
| "tokenwise_kld_sha256": "a5564d2ecfaad9ed8dec0c6bc16417ef64477608721bf04f85e21793d209cc3d", | |
| "top1_agreement": 0.9379579872984856 | |
| }, | |
| { | |
| "capture_manifest_sha256": "9dbaf33f7af6c1ab250bc3aa67072b2a20bdf75204657b4ed1198cf954f4cc09", | |
| "mean_kld": 0.024891557640764127, | |
| "prediction_positions": 2047, | |
| "quality_gate_passed": true, | |
| "report_path": "/home/brandonmusic/KLC_SANDBOXES/glm53-exl3-k4-sm120/results/kld/fp8-dcp1-eager-five-run-gpu23-v34/measurements/run-05/kld-report.json", | |
| "report_sha256": "4703aed62e9538c9fb49308dff5e2d873958484805c411de807023bba4febb9b", | |
| "run": 5, | |
| "tokenwise_kld_sha256": "2ce972e4b56173e55b035309de433aa805e83886533cfd603b5a79553737d101", | |
| "top1_agreement": 0.9394235466536395 | |
| } | |
| ], | |
| "schema": "glm53-r19-runtime-kld-repeated.v1" | |
| } | |