alizainx/intelligence-systems-skills/awq-gptq-fp8-int4-quantization

Claude Code and agent skill by alizainx/intelligence-systems-skills

Trust tier 2
  • community
LLM review pending
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-quantization

SKILL.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}$) using group_size = 128.

2. Fast-Pass Low-Token Protocol (Web & Coding Agents)

  • Keep embedding layers, final lm_head, RMSNorm weights, and MoE router gates in BF16/FP16 while quantizing linear projection blocks (q, k, v, o, gate, up, down).

3. Zero-Bug & Zero-Vulnerability Guards

  1. Check for zero-range constant tensors (w_max == w_min): set scale = 1.0 and zero_point = 0 so division by (w_max - w_min) never produces NaN or Inf.
  2. Clamp quantized integers strictly to $[q_{\min}, q_{\max}]$ ([-128, 127] for signed INT8, [0, 15] or [-8, 7] for INT4) after round(x / scale) + zp.
  3. Pack 8 INT4 weights into a single uint32 word with Tensor-Core-interleaved bit ordering (Marlin / LUT layout) for single-instruction lop3 register unpacking.
  4. Calibrate activation/Hessian statistics on 128-512 diverse, domain-representative sequences without any test-set contamination.
  5. Gate quantized checkpoints on WikiText-2 / domain perplexity degradation (Delta PPL < 0.15 for INT4, < 0.03 for 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alizainx/intelligence-systems-skills/awq-gptq-fp8-int4-quantization/badge)](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/awq-gptq-fp8-int4-quantization)

Something wrong with this skill or its page? Tell us.