Text Generation
Transformers
Safetensors
glm_moe_dsa
autoround
expert-pruning
glm
gptq
Mixture of Experts
pruning
reap
vllm
w4a16
conversational
4-bit precision
Instructions to use 0xSero/GLM-5.1-555B-W4A16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0xSero/GLM-5.1-555B-W4A16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="0xSero/GLM-5.1-555B-W4A16") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("0xSero/GLM-5.1-555B-W4A16") model = AutoModelForCausalLM.from_pretrained("0xSero/GLM-5.1-555B-W4A16", 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 0xSero/GLM-5.1-555B-W4A16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "0xSero/GLM-5.1-555B-W4A16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0xSero/GLM-5.1-555B-W4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/0xSero/GLM-5.1-555B-W4A16
- SGLang
How to use 0xSero/GLM-5.1-555B-W4A16 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 "0xSero/GLM-5.1-555B-W4A16" \ --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": "0xSero/GLM-5.1-555B-W4A16", "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 "0xSero/GLM-5.1-555B-W4A16" \ --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": "0xSero/GLM-5.1-555B-W4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use 0xSero/GLM-5.1-555B-W4A16 with Docker Model Runner:
docker model run hf.co/0xSero/GLM-5.1-555B-W4A16
Add files using upload-large-folder tool
Browse files- model-00009-of-00056.safetensors +3 -0
- model-00011-of-00056.safetensors +3 -0
- model-00030-of-00056.safetensors +3 -0
- model-00032-of-00056.safetensors +3 -0
- model-00033-of-00056.safetensors +3 -0
- model-00034-of-00056.safetensors +3 -0
- model-00036-of-00056.safetensors +3 -0
- model-00038-of-00056.safetensors +3 -0
- model-00040-of-00056.safetensors +3 -0
- model-00045-of-00056.safetensors +3 -0
- model-00046-of-00056.safetensors +3 -0
- model-00047-of-00056.safetensors +3 -0
- model-00049-of-00056.safetensors +3 -0
- model-00050-of-00056.safetensors +3 -0
model-00009-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a04c2a67eafc3681ef7b03a1a5922ac5c57f21531ec73f2ab2c47d926ea9bc36
|
| 3 |
+
size 5367487184
|
model-00011-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81fc3a5be8efa3005e8b45df8f5f7037d52a43f4b138ac472ee6e2c9d168d48e
|
| 3 |
+
size 5365126528
|
model-00030-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09745a0e8603ee19f01ec68789908a5b21329c98031dc4fb1e45cf210ae4db83
|
| 3 |
+
size 5365126896
|
model-00032-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33dbfb5d89c0b9deb2d9c89bd4f4bcd8db0120284fd4e595b7836821c47ab84a
|
| 3 |
+
size 5365126456
|
model-00033-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0de9833d33a36a8e8a5df62b20b41a86b6accf21ecc38c24d8c4c802502ee27b
|
| 3 |
+
size 5366781720
|
model-00034-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad9915ca55e4136f84719b7a7c97e2a2346431f56470433e5d4cb3ca3263abb1
|
| 3 |
+
size 5365125992
|
model-00036-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1374d3d7330dc5f2e9da582dac32111a3bbb3b8e293925fb7414330176e7a91f
|
| 3 |
+
size 5366765016
|
model-00038-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e55827d8e35cdc18a7e932c77b610af41ac1ee0ea38537c32d8f253b06a1dd0
|
| 3 |
+
size 5367512016
|
model-00040-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afa19891efd681c75d1c75aea36056dc17a613de0b1204e461eb9446fdeb1cc2
|
| 3 |
+
size 5365126536
|
model-00045-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a95973f04774509b2a6e79946f341cbabbdb353176e262ac43d57388793bc405
|
| 3 |
+
size 5365126296
|
model-00046-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c74ee7379e21b04926f9f5859a5f8c5cd4aefd42091a6c15abc09203acbdc1d
|
| 3 |
+
size 5366781984
|
model-00047-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fce9a1cabaaecb2db3b249133340176ab8bddf62f20b4619e8b59d334ae3f185
|
| 3 |
+
size 5365125904
|
model-00049-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c497becf631657f749dac6bca6670b91d93948bd74bac65ffc1557da62b6afc6
|
| 3 |
+
size 5366781552
|
model-00050-of-00056.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a74d99a974e9271f3a4b1f7f0657ea087b8d7b46f6f8167b1fb24e2c6c980ea
|
| 3 |
+
size 5365126048
|