Text Generation
Transformers
Safetensors
English
Chinese
glm4_moe
conversational
8-bit precision
compressed-tensors
Instructions to use alpindale/GLM-4.6-INT8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alpindale/GLM-4.6-INT8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alpindale/GLM-4.6-INT8") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("alpindale/GLM-4.6-INT8") model = AutoModelForCausalLM.from_pretrained("alpindale/GLM-4.6-INT8", 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 alpindale/GLM-4.6-INT8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alpindale/GLM-4.6-INT8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alpindale/GLM-4.6-INT8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/alpindale/GLM-4.6-INT8
- SGLang
How to use alpindale/GLM-4.6-INT8 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 "alpindale/GLM-4.6-INT8" \ --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": "alpindale/GLM-4.6-INT8", "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 "alpindale/GLM-4.6-INT8" \ --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": "alpindale/GLM-4.6-INT8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use alpindale/GLM-4.6-INT8 with Docker Model Runner:
docker model run hf.co/alpindale/GLM-4.6-INT8
Add files using upload-large-folder tool
Browse files- model-00001-of-00072.safetensors +3 -0
- model-00002-of-00072.safetensors +3 -0
- model-00004-of-00072.safetensors +3 -0
- model-00005-of-00072.safetensors +3 -0
- model-00008-of-00072.safetensors +3 -0
- model-00009-of-00072.safetensors +3 -0
- model-00010-of-00072.safetensors +3 -0
- model-00012-of-00072.safetensors +3 -0
- model-00016-of-00072.safetensors +3 -0
- model-00019-of-00072.safetensors +3 -0
- model-00022-of-00072.safetensors +3 -0
- model-00023-of-00072.safetensors +3 -0
- model-00024-of-00072.safetensors +3 -0
- model-00025-of-00072.safetensors +3 -0
- model-00026-of-00072.safetensors +3 -0
- model-00029-of-00072.safetensors +3 -0
- model-00030-of-00072.safetensors +3 -0
- model-00032-of-00072.safetensors +3 -0
- model-00033-of-00072.safetensors +3 -0
- model-00035-of-00072.safetensors +3 -0
- model-00038-of-00072.safetensors +3 -0
- model-00040-of-00072.safetensors +3 -0
- model-00042-of-00072.safetensors +3 -0
- model-00045-of-00072.safetensors +3 -0
- model-00056-of-00072.safetensors +3 -0
- model-00059-of-00072.safetensors +3 -0
- model-00061-of-00072.safetensors +3 -0
- model-00065-of-00072.safetensors +3 -0
- model-00069-of-00072.safetensors +3 -0
- model-00070-of-00072.safetensors +3 -0
model-00001-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3de9608ec1e60395d55801fd0297e29e71691ecf046b37de93a785baf986a2a4
|
| 3 |
+
size 4993428256
|
model-00002-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8e410e6b11a051cc790208054175db3fe38c48b5306a2b6d22388015bca3af9
|
| 3 |
+
size 4993852128
|
model-00004-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ec7cc5cd463edd07ee9f748883f1d17e7be36aa83873e83fc96addfb7deb2dd
|
| 3 |
+
size 4993851864
|
model-00005-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a56694cd36ee5b1c5a3c24535cd0e2623b3dea765b8c08118b42845989eafaca
|
| 3 |
+
size 4993844760
|
model-00008-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72fc39665c9ed107b33b719eece5f432e66188d530fb182e418c521767162a08
|
| 3 |
+
size 4993853120
|
model-00009-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e50ce08fc5742c1339adab3ee1b35723a3bd240504eff225821183cc32e773c
|
| 3 |
+
size 4993846088
|
model-00010-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f470dace1813372b225c7dd015f7bd68b42fcc01a6b5ce02ce217ea24035f42
|
| 3 |
+
size 4998105040
|
model-00012-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a85c4e4a9592b098d3051a2c5482f33a7a7c0c92d4dff65eaeea0f6ecd6105a3
|
| 3 |
+
size 4993853120
|
model-00016-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6b84ac054b7c182dd359ef7433a13290f1635e08bbf55f398c1959962422861
|
| 3 |
+
size 4993853128
|
model-00019-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c52b233e289a9e2cab939ca849fb1ab57434b2981f40b7768534eb515d2fe4f6
|
| 3 |
+
size 4993853120
|
model-00022-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59573a55b7101a97a798f7508d24ab165d76a805ee49878b98648ca72b80a49d
|
| 3 |
+
size 4998105000
|
model-00023-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c2232e04f96b8521ecb86f82d3e781145b10cc778ccb565d089858664338630
|
| 3 |
+
size 4993853120
|
model-00024-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c86659416c6b8d09c1ad45cef90b5e8c601d7092d0f973e9c48da391a731bf08
|
| 3 |
+
size 4993853272
|
model-00025-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6b7022f78eb16bcc05b01799872af94dd0f14546f621d9cbe791e0eb1cf5bc4
|
| 3 |
+
size 4998105016
|
model-00026-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:016ee2cd59a95d59c69240353c70de074fb796f5cbdc690ce0317809661c8432
|
| 3 |
+
size 4993845912
|
model-00029-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77b118e895130baa85057da82f50328b3f7ffbe9e0c7e0d3183d23d240f4dcf0
|
| 3 |
+
size 4998104976
|
model-00030-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5074a50aef7744c0468a5cb6b92ceef2fefbd653640774d18eaaf4389d5a4b86
|
| 3 |
+
size 4993845952
|
model-00032-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a45b0a0bea52f8a6b8755ba7bdc6ed686a501f40516d944a1cea865f8ac7fd5d
|
| 3 |
+
size 4993853416
|
model-00033-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:912b96800cc7a45d319dbb1a5da3842f9c676591ebff9eba804d1d1cbcb8831c
|
| 3 |
+
size 4998104976
|
model-00035-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a6b56024ac95ab7fa7870fdcfc51a3c7fa8351625400e380be69cb8be2a7c52
|
| 3 |
+
size 4993853224
|
model-00038-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f921129e1dade0f24cd84438fc0fe858d6f07cc41e75ae4abe46332881ec01b0
|
| 3 |
+
size 4993845952
|
model-00040-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f5344fa8d58cc69e76a42d305288513381942b982c4563675074da4f687a488
|
| 3 |
+
size 4998105000
|
model-00042-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6af194b137ebd7ee53aa27237fa791cd3740a033bc22ebf715caf25c5dde7852
|
| 3 |
+
size 4993845952
|
model-00045-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78ed4fe05f66c5631572020760a31c8199455045991450c654e1139a1df14928
|
| 3 |
+
size 4993853120
|
model-00056-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8d8198b2ed4a2ab6b5710ee1bf9709adcfdb0aabf2d2c0de7c1e09c184b19bd
|
| 3 |
+
size 4993853112
|
model-00059-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:283be037efa38e7cb3ff628382e06c1cc4296804bb2a3d83440ffccdc2aa0153
|
| 3 |
+
size 4998104984
|
model-00061-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57976e7a33928b16824bdc9adc377ea1e9498bded59641e2101a75b96a1aafd2
|
| 3 |
+
size 4993846016
|
model-00065-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc6a2f82fa3d26748d2f5ab04e3413e77b8c53fdcb68f5269ed39f2a29e475a6
|
| 3 |
+
size 4993846088
|
model-00069-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0decc5bb35bad9ce0748c3be20f04031a600d02cc30c697e51da36689c49f78
|
| 3 |
+
size 4993846160
|
model-00070-of-00072.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d06953d4b16e38f11b9ef519ae8d5dd396604c80a49ab999e7f7e567ddbbead
|
| 3 |
+
size 4998104984
|