Image-Text-to-Text
Transformers
Safetensors
Trellis
glm5_next
glm
glm-5
tr3
mcg
quantized
6-bit
Mixture of Experts
reasoning
text-generation
fidelity
kl-divergence
exllamav3
fidelity-provenance
conversational
Eval Results (legacy)
exl3
Instructions to use malaiwah/GLM-5.3-Flash-TR3-6bpw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use malaiwah/GLM-5.3-Flash-TR3-6bpw with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="malaiwah/GLM-5.3-Flash-TR3-6bpw") 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("malaiwah/GLM-5.3-Flash-TR3-6bpw") model = AutoModelForMultimodalLM.from_pretrained("malaiwah/GLM-5.3-Flash-TR3-6bpw", 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]:])) - Trellis
How to use malaiwah/GLM-5.3-Flash-TR3-6bpw with Trellis:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use malaiwah/GLM-5.3-Flash-TR3-6bpw with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "malaiwah/GLM-5.3-Flash-TR3-6bpw" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "malaiwah/GLM-5.3-Flash-TR3-6bpw", "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/malaiwah/GLM-5.3-Flash-TR3-6bpw
- SGLang
How to use malaiwah/GLM-5.3-Flash-TR3-6bpw 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 "malaiwah/GLM-5.3-Flash-TR3-6bpw" \ --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": "malaiwah/GLM-5.3-Flash-TR3-6bpw", "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 "malaiwah/GLM-5.3-Flash-TR3-6bpw" \ --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": "malaiwah/GLM-5.3-Flash-TR3-6bpw", "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 malaiwah/GLM-5.3-Flash-TR3-6bpw with Docker Model Runner:
docker model run hf.co/malaiwah/GLM-5.3-Flash-TR3-6bpw
| { | |
| "all_individual_quality_gates_passed": true, | |
| "cold_execution_count": 5, | |
| "compute_dtype": "float64", | |
| "kld_direction": "teacher_to_student", | |
| "maximum_run_mean": 0.013723384665701147, | |
| "mean_of_run_means": 0.013723384665701147, | |
| "minimum_run_mean": 0.013723384665701147, | |
| "population_stddev_of_run_means": 0.0, | |
| "profile": "k6-tp4", | |
| "qualified": true, | |
| "quality_gate": { | |
| "metric": "mean_of_five_run_mean_tokenwise_kld", | |
| "threshold_lt": 0.06 | |
| }, | |
| "quality_gate_passed": true, | |
| "receipt_sha256": "57faf356d8e9e8771e56512e6ec70b580ec720c795b4d39571adc6ea9f300db8", | |
| "run_count": 5, | |
| "runs": [ | |
| { | |
| "mean_kld": 0.013723384665701147, | |
| "prediction_positions": 51175, | |
| "quality_gate_passed": true, | |
| "report_file_sha256": "de75fabab8747dd475b616c3c125131c35801ffb8d186303c09f297a5242cb49", | |
| "report_sha256": "0da6271911f5a5907ea3792bc3c731db002cb412d5f040657157d3fd2ee4dc5f", | |
| "run": 1, | |
| "student_backend_identity_sha256": "d19c049f0ce497d1cf23c80f2f54f372c452f94f9af7b1c3ff47b1017ffb0e6a", | |
| "student_capture_receipt_sha256": "524f017f68664ffc5f251298739fae6c0144eda5ccb1b308c57dcd4932e8f535", | |
| "tokenwise_kld_sha256": "52e35723dacd0314acb85bcee86d2faefd5c12ff9d82c6e026e05d35ee15db4b" | |
| }, | |
| { | |
| "mean_kld": 0.013723384665701147, | |
| "prediction_positions": 51175, | |
| "quality_gate_passed": true, | |
| "report_file_sha256": "205d776181bd0d2e8d64789de15b613bbf0e0d0f9287b1ef1d07bcfde0daf83b", | |
| "report_sha256": "6bea70bc447ef1d2bbb75b62e40f825f1c57c7a6d4f8272fbe4a5f862a533940", | |
| "run": 2, | |
| "student_backend_identity_sha256": "0499c62d7a5165e94c06bfdf88e5389f90f5806092f8319c61163e6781d4c980", | |
| "student_capture_receipt_sha256": "496ccb1351265280f6cbdd4f8fa91fc806d3c759e54c1000ee7ceee15fc042a5", | |
| "tokenwise_kld_sha256": "52e35723dacd0314acb85bcee86d2faefd5c12ff9d82c6e026e05d35ee15db4b" | |
| }, | |
| { | |
| "mean_kld": 0.013723384665701147, | |
| "prediction_positions": 51175, | |
| "quality_gate_passed": true, | |
| "report_file_sha256": "b526beb0cd7d325a9c03bdec950d65ab1016ed219b480b617f2aebb76eb94e7c", | |
| "report_sha256": "c1d3be732318e72f9435d086163f6c8773df2a9b4fc493929898b0f8cdd91254", | |
| "run": 3, | |
| "student_backend_identity_sha256": "17abff7307307325355196b4968d7a3f0cab4b68fa914d23eb4be4dd2488fce8", | |
| "student_capture_receipt_sha256": "f32aa59c0fb34219ecf51bb25e9e485374e46b8a18e4a85d2f16e6a01e5e3bba", | |
| "tokenwise_kld_sha256": "52e35723dacd0314acb85bcee86d2faefd5c12ff9d82c6e026e05d35ee15db4b" | |
| }, | |
| { | |
| "mean_kld": 0.013723384665701147, | |
| "prediction_positions": 51175, | |
| "quality_gate_passed": true, | |
| "report_file_sha256": "ffda82fd34441f6b123a9475c3a2edfa6f4b943bb3157da17918110fc083055b", | |
| "report_sha256": "5a93785fa8edd458292b551e34346a03619002b5769e50c502c3b5c5382ccccf", | |
| "run": 4, | |
| "student_backend_identity_sha256": "16857868b7290379d95b13fc90f0201016dda388dfc06215c4197ced83ec03cf", | |
| "student_capture_receipt_sha256": "f785bd26165f760ec40fbe5eae7310e49ee92e3ebde096d005429efbc3f1ffb8", | |
| "tokenwise_kld_sha256": "52e35723dacd0314acb85bcee86d2faefd5c12ff9d82c6e026e05d35ee15db4b" | |
| }, | |
| { | |
| "mean_kld": 0.013723384665701147, | |
| "prediction_positions": 51175, | |
| "quality_gate_passed": true, | |
| "report_file_sha256": "80589d3d72f934ea72b207c13cf2b74f54158853ebbdd7442068acdd4cbfb4dd", | |
| "report_sha256": "5f65faebb0dd21ffe7e354e4c82067ff072c1918fe5a642528642fd8900e8b16", | |
| "run": 5, | |
| "student_backend_identity_sha256": "9a70ced23ce2786fd220c1f45248a04b75645ac21438dee4fcc2562f345e39dc", | |
| "student_capture_receipt_sha256": "f258cd0cf5d097184950d9e067f5644bc529fff49b021e2280d6d5aa8dba4b3d", | |
| "tokenwise_kld_sha256": "52e35723dacd0314acb85bcee86d2faefd5c12ff9d82c6e026e05d35ee15db4b" | |
| } | |
| ], | |
| "runtime_reader_sha256": "1ccce44602d4ccf41abe594ede448bf726516ac44f67a54dcd65cc0b5bf9dd14", | |
| "schema": "quant-pipeline.glm53-packed-student-kld-five-cold-run.v1", | |
| "student_checkpoint_identity_sha256": "a8668be3592493035e98a52994e0e3c43548a9757eadb79f7ae939f2f32de1c1", | |
| "student_label": "uniform-k6", | |
| "target_bits": 6, | |
| "teacher_backend_identity_sha256": "85b11599c6b36a83fa8099a09a298a386a0c603d1f18d3702e7fb1c470962ce4", | |
| "teacher_receipt_sha256": "2ae08117c3d4247f747b2a9a889b68e1a06387b788d56a0bf23bb950c77bc5a5", | |
| "token_panel_receipt_sha256": "0beec5770e5107547731b084f1bc5f9fb8ba79d67af56ddb70d919da367737d5" | |
| } | |