Text Generation
Transformers
Safetensors
qwen3
speculative-decoding
dflash
draft-model
glm
z.ai
text-generation-inference
Instructions to use Dariusfar/GLM-4.7-Flash-DFlash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dariusfar/GLM-4.7-Flash-DFlash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dariusfar/GLM-4.7-Flash-DFlash")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Dariusfar/GLM-4.7-Flash-DFlash") model = AutoModel.from_pretrained("Dariusfar/GLM-4.7-Flash-DFlash", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Dariusfar/GLM-4.7-Flash-DFlash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dariusfar/GLM-4.7-Flash-DFlash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dariusfar/GLM-4.7-Flash-DFlash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Dariusfar/GLM-4.7-Flash-DFlash
- SGLang
How to use Dariusfar/GLM-4.7-Flash-DFlash 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 "Dariusfar/GLM-4.7-Flash-DFlash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dariusfar/GLM-4.7-Flash-DFlash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Dariusfar/GLM-4.7-Flash-DFlash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dariusfar/GLM-4.7-Flash-DFlash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Dariusfar/GLM-4.7-Flash-DFlash with Docker Model Runner:
docker model run hf.co/Dariusfar/GLM-4.7-Flash-DFlash
Upload speedbench_full_domain_throughput.png with huggingface_hub
Browse filesFiles changed (2)
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textrd181_matrix_heatmaps.png filter=lfs diff=lfs merge=lfs -text33 unmodified lines3435363733 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textrd181_matrix_heatmaps.png filter=lfs diff=lfs merge=lfs -textspeedbench_full_domain_throughput.png filter=lfs diff=lfs merge=lfs -text
.gitattributes+1
speedbench_full_domain_throughput.pngAdded

Large File Pointer Details
- SHA256: 4b6986a86db96372b917769fe27b14b00f6caf67e921bc30d7bb8fa9cd2fee02
- Pointer size: 131 Bytes
- Size of remote file: 436 kB