How to use from
MLX LM
Generate or start a chat session
# Install MLX LM
uv tool install mlx-lm
# Interactive chat REPL
mlx_lm.chat --model "cs2764/GLM-5.1-FP8_dq4-mlx"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "cs2764/GLM-5.1-FP8_dq4-mlx"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "cs2764/GLM-5.1-FP8_dq4-mlx",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

GLM-5.1-FP8_dq4

This model is a DQ4 quantized version of the original model [GLM-5.1-FP8](Local Model). It was quantized locally using the mlx_lm library.

Quantization Methodology (DQ4)

This model was quantized using the dynamic DQ4 (4-bit / 5-bit / 6-bit / 8-bit mixed) approach, inspired by the methodology described in the mlx-community/Kimi-K2.5-mlx-DQ3_K_M-q8 repository.

The weights are mixed based on MLX layers:

  • Expert layers (switch_mlp / mlp) are quantized to 4-bit.
  • The first 5 layers are kept at higher quality (6-bit).
  • Every 5th layer is medium quality (5-bit).
  • All other layers (e.g. attention, normalization) remain at 8-bit to serve as the "8-bit brain".
Downloads last month
34
Safetensors
Model size
744B params
Tensor type
BF16
U32
F32
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support