Downloads · 30 days
35
0% of all-time downloads
TheHouseOfTheDude/GLM-4.7-Flash_AWQ
GLM-4.7-Flash_AWQ is a text generation model from TheHouseOfTheDude. Use it when you need the model to write or continue text. It is set up for vllm. The card lists the license as other.
This repository provides an AWQ quantized build of GLM-4.7-Flash repackaged for vLLM using the compressed-tensors runtime layout.
Downloads · 30 days
35
0% of all-time downloads
All-time downloads
91.6K
Public
Repo size
50.4 GB
Likes
3
Public
Click a slice to open those files.
.md5.5 KB · 78%
From the Hugging Face model README
This repository provides an AWQ quantized build of GLM-4.7-Flash repackaged for vLLM using the compressed-tensors runtime layout.
Why this quant is different (MoE-aware calibration)
- During calibration we activate all experts inside each MoE block (not just top-k chosen by the router).
- This captures worst-case activations across the entire mixture, producing more robust scales with lower drift when rare experts fire at inference time.
- The quant script explicitly does not ignore shared experts (fixes typical smoothing issues in MoE with AWQ). :contentReference[oaicite:0]{index=0}
Runtime requirements:
• vLLM nightly build (MoE + GLM-Flash path) and Transformers 5.0.
•trust_remote_codemust be enabled.
The
mainbranch is a landing page (model card + links). The runnable quant lives under:
*.safetensors) + index (model.safetensors.index.json)config.json with compressed-tensors metadata (quantization_config, weight_format, etc.)tokenizer.json, tokenizer.model, merges/vocab as applicable)This package targets vLLM (compressed-tensors). Loading directly with vanilla 🤗
from_pretrainedis not supported.
Method / scheme
llmcompressor.oneshot with an AWQModifier targeting Linear layers.num_bits=8, symmetric=True), group strategy with group_size=32; activations remain FP16/BF16 at runtime.num_bits=8, symmetric=True), group strategy with group_size=32; activations remain FP16/BF16 at runtime.MoE handling
Glm4MoeLiteMoE module is replaced at calibration time with a Calibration wrapper that sets calibrate_all_experts=True, ensuring every expert is exercised while collecting activation statistics. :contentReference[oaicite:2]{index=2}Datasets & sampling
neuralmagic/LLM_compression_calibration (chat-style messages rendered with apply_chat_template)Rombo-Org/Optimized_Reasoning (instructions + optional inputs/outputs stitched into plain text)add_special_tokens=False. :contentReference[oaicite:3]{index=3}Export
save_compressed=True to embed compressed-tensors metadata for vLLM.auto_map from config.json) to avoid loader issues. :contentReference[oaicite:4]{index=4}Environment requirements
trust_remote_code=TrueRecommended runtime flags (GLM-4.7-Flash MoE path):
--enable-expert-parallel to distribute experts across devices--tool-call-parser glm47 / --reasoning-parser glm45 for GLM-style tool & reasoningExample command (provided by author):
export VLLM_USE_DEEP_GEMM=0
export VLLM_USE_FLASHINFER_MOE_FP16=1
export VLLM_USE_FLASHINFER_SAMPLER=0
export OMP_NUM_THREADS=4
CUDA_VISIBLE_DEVICES=4,5 vllm serve \
/media/fmodels/TheHouseOfTheDude/GLM-4.7-Flash_AWQ/W8A16_GS32 \
--served-model-name GLM-4.7-Flash_AWQ-W8A16_GS32 \
--swap-space 4 \
--max-model-len 80896 \
--gpu-memory-utilization 0.9 \
--tensor-parallel-size 2 \
--enable-expert-parallel \
--enable-auto-tool-choice \
--tool-call-parser glm47 \
--reasoning-parser glm45 \
--trust-remote-code \
--host 0.0.0.0 \
--port 8000 \
--api-key REDACTED