Text Generation
Transformers
Safetensors
glm_moe_dsa
glm
Mixture of Experts
rtn
int4
int8
compressed-tensors
dgpp
conversational
Instructions to use HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64") model = AutoModelForCausalLM.from_pretrained("HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64
- SGLang
How to use HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64 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 "HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64" \ --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": "HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64", "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 "HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64" \ --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": "HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64 with Docker Model Runner:
docker model run hf.co/HawkBearPig/GLM-5.3-Int4-Int8Mix-RTN-g64
Commit History
-
model card: depth study complete (layers 3/6/21/42/63)
Verified signature147684f
-
model card
Verified signature73f1962 -
tokenizer_config.json
Verified signaturea872aba -
tokenizer.json
Verified signaturee7d7f3d -
model.safetensors.index.json
Verified signature3b268a5 -
generation_config.json
Verified signature47e3147 -
config.json
Verified signaturea9344f4 -
chat_template.jinja
Verified signaturedaedeb9 -
passthrough.safetensors
Verified signaturee60ed56 -
layer-077.safetensors
Verified signature1df0ae8 -
layer-076.safetensors
Verified signaturecda92b9 -
layer-075.safetensors
Verified signature0fcfb53 -
layer-074.safetensors
Verified signature568ea42 -
layer-073.safetensors
Verified signature77dfd87 -
layer-072.safetensors
Verified signature3968751 -
layer-071.safetensors
Verified signature7f987bb -
layer-070.safetensors
Verified signaturef728437 -
layer-069.safetensors
Verified signature785a5c6 -
layer-068.safetensors
Verified signature1b10916 -
layer-067.safetensors
Verified signature474f5f3 -
layer-066.safetensors
Verified signatured42152c -
layer-065.safetensors
Verified signature0705942 -
layer-064.safetensors
Verified signature7443690 -
layer-063.safetensors
Verified signaturec5ca3a0 -
layer-062.safetensors
Verified signaturea89aba6 -
layer-061.safetensors
Verified signatured39d456 -
layer-060.safetensors
Verified signature55aa78e -
layer-059.safetensors
Verified signature4d0bbdc -
layer-058.safetensors
Verified signature3fe381b -
layer-057.safetensors
Verified signature3b8e4d6 -
layer-056.safetensors
Verified signature4cd0a2c -
layer-055.safetensors
Verified signature8e9a84d -
layer-054.safetensors
Verified signature112da48 -
layer-053.safetensors
Verified signaturef43ae59 -
layer-052.safetensors
Verified signature86a09ae -
layer-051.safetensors
Verified signature54cae9e -
layer-050.safetensors
Verified signatureac3950b -
layer-049.safetensors
Verified signaturedc698fa -
layer-048.safetensors
Verified signaturec2a390f -
layer-047.safetensors
Verified signature473bf16 -
layer-046.safetensors
Verified signature6a7ec67 -
layer-045.safetensors
Verified signaturefb3bf92 -
layer-044.safetensors
Verified signature43fb014 -
layer-043.safetensors
Verified signaturec3ec329 -
layer-042.safetensors
Verified signature0d644a4 -
layer-041.safetensors
Verified signaturef11a4fe -
layer-040.safetensors
Verified signature0793ffd -
layer-039.safetensors
Verified signaturef5370d3 -
layer-038.safetensors
Verified signaturefae0651 -
layer-037.safetensors
Verified signaturecda0997