Downloads · 30 days
16
5% of all-time downloads
GizzmoShifu/glm-4-9b-chat-hf-nvfp4
glm-4-9b-chat-hf-nvfp4 is a text generation model from GizzmoShifu. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
This repository provides a quantised version of the GLM-4-9b-Chat-HF model.
Downloads · 30 days
16
5% of all-time downloads
All-time downloads
302
Public
Parameters
5.8B
14.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.1 GB · 100%
How the weights are stored.
U84.1B · 70%
From the Hugging Face model README
This repository provides a quantised version of the GLM-4-9b-Chat-HF model.
This model is distributed under the glm-4-9b License.
This model was quantised to NVFP4 (NVIDIA Float4) to optimize performance while maintaining chat capabilities.
llmcompressor library with a one-shot calibration process.ultrachat_200k and LongAlign-10k to ensure the model handles both short-form and long-form context effectively.This model is designed for runtimes compatible with the NVFP4 format, such as vLLM.
To avoid numerical instability (e.g., repetitive token loops), you must force the Blackwell-native inference path using the following environment variables.
export VLLM_FP4_ENABLED=1
export VLLM_USE_V1=1
If you run into the following error then you may need to set the envvar TRITON_TXAS_PATH to /usr/local/cuda/bin/ptxas
triton.runtime.errors.PTXASError: PTXAS error: Internal Triton PTX codegen error
`ptxas` stderr:
ptxas fatal : Value 'sm_121a' is not defined for option 'gpu-name'
An example docker-compose is as follows assuming the model is stored in /models/glm-4-9b-chat-hf-nvfp4:
services:
glm4-9b-nvfp4:
image: nvcr.io/nvidia/vllm:26.01-py3
container_name: glm4-9b-fp4
ipc: host
shm_size: "32gb"
ports:
- "8080:8080"
volumes:
- /models:/mnt/models:ro
environment:
# Required for Blackwell JIT compilation
TRITON_PTXAS_PATH: /usr/local/cuda/bin/ptxas
VLLM_FP4_ENABLED: 1
VLLM_USE_V1: 1
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: >
python3 -m vllm.entrypoints.openai.api_server
--model /mnt/models/glm-4-9b-chat-hf-nvfp4
--served-model-name glm-4-9b-chat
--port 8080
--quantization compressed-tensors
--kv-cache-dtype fp8
--max-model-len 32768
--max-num-seqs 64
--gpu-memory-utilization 0.75
For questions regarding the original model license, contact [email protected].