alizainx/intelligence-systems-skills/awq-gptq-fp8-int4-quantization
Claude Code and agent skill by alizainx/intelligence-systems-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
LLM weight & activation quantization (FP8 E4M3, INT8 SmoothQuant, INT4 AWQ/GPTQ group-wise asymmetric/symmetric), calibration, and Marlin dequant GEMM.
Install
npx vskill@latest install alizainx/intelligence-systems-skills/awq-gptq-fp8-int4-quantizationSKILL.md
The same SKILL.md was published earlier as alizainx/intelligence-systems-skills/awq-gptq-fp8-int4-quantization.
awq-gptq-fp8-int4-quantization (ISS-113)
1. First-Principles Invariant
- Lin/Frantar Salient-Channel Preservation Law: Because
< 1%of activation channels exhibit large outlier magnitudes that dominate quantization error, scale salient weight channels by per-channel activation magnitudes ($s_j = (\bar{|X_j|})^\alpha$,AWQ) or compensate quantization residuals via inverse Hessian updates (GPTQ: $\delta_F = -\frac{w_q - quant(w_q)}{[H^{-1}]_{qq}} H_{:, q}^{-1}$) usinggroup_size = 128.
2. Fast-Pass Low-Token Protocol (Web & Coding Agents)
- Keep embedding layers, final
lm_head, RMSNorm weights, and MoE router gates inBF16/FP16while quantizing linear projection blocks (q, k, v, o, gate, up, down).
3. Zero-Bug & Zero-Vulnerability Guards
- Check for zero-range constant tensors (
w_max == w_min): setscale = 1.0andzero_point = 0so division by(w_max - w_min)never producesNaNorInf. - Clamp quantized integers strictly to $[q_{\min}, q_{\max}]$ (
[-128, 127]for signed INT8,[0, 15]or[-8, 7]for INT4) afterround(x / scale) + zp. - Pack 8
INT4weights into a singleuint32word with Tensor-Core-interleaved bit ordering (Marlin/LUTlayout) for single-instruction lop3 register unpacking. - Calibrate activation/Hessian statistics on
128-512diverse, domain-representative sequences without any test-set contamination. - Gate quantized checkpoints on WikiText-2 / domain perplexity degradation (
Delta PPL < 0.15for INT4,< 0.03for FP8/INT8) and KL-divergence bounds.
4. Verification Gate
python3 -c 'import numpy as np; ...'
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/awq-gptq-fp8-int4-quantization/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/awq-gptq-fp8-int4-quantization)