Instructions to use whitecircle/GLM-4.7-Flash-Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use whitecircle/GLM-4.7-Flash-Coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="whitecircle/GLM-4.7-Flash-Coder") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("whitecircle/GLM-4.7-Flash-Coder") model = AutoModelForCausalLM.from_pretrained("whitecircle/GLM-4.7-Flash-Coder", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use whitecircle/GLM-4.7-Flash-Coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "whitecircle/GLM-4.7-Flash-Coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "whitecircle/GLM-4.7-Flash-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/whitecircle/GLM-4.7-Flash-Coder
- SGLang
How to use whitecircle/GLM-4.7-Flash-Coder 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 "whitecircle/GLM-4.7-Flash-Coder" \ --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": "whitecircle/GLM-4.7-Flash-Coder", "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 "whitecircle/GLM-4.7-Flash-Coder" \ --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": "whitecircle/GLM-4.7-Flash-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use whitecircle/GLM-4.7-Flash-Coder with Docker Model Runner:
docker model run hf.co/whitecircle/GLM-4.7-Flash-Coder
Download media/trace_overview.png from whitecircle/GLM-4.7-Flash-Coder: direct link, hf CLI and curl.
- Browser
- Download file 176 kB
-
https://huggingface.co/whitecircle/GLM-4.7-Flash-Coder/resolve/main/media/trace_overview.png
- Command line
-
hf download hf://whitecircle/GLM-4.7-Flash-Coder/media/trace_overview.png
-
curl -L -o trace_overview.png https://huggingface.co/whitecircle/GLM-4.7-Flash-Coder/resolve/main/media/trace_overview.png
176 kB

- Xet hash:
- c9f8436ea47752cc10b6529abed0c5b6b6542b2a35a249286c37485dc3a115de
- Size of remote file:
- 176 kB
- SHA256:
- 1e900301e3164c8a43f94968455aeeca83aae03dcb00c1ed0b89480b47901024
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.