ditto190/crispy-nextjs-turborepo-monorepo/ml-model-quantization
Claude Code and agent skill by ditto190/crispy-nextjs-turborepo-monorepo
- community
Checking that the SKILL.md file is still in the repository.
Imported TRAE skill from ai_engineering/ML_Model_Quantization.md
Install
npx vskill@latest install ditto190/crispy-nextjs-turborepo-monorepo/ml-model-quantizationSKILL.md
The same SKILL.md was published earlier as ditto190/crispy-nextjs-turborepo-monorepo/ml-model-quantization.
Skill: ML Model Quantization
Purpose
To reduce the memory footprint and improve inference speed of Machine Learning models, particularly deep neural networks, by converting high-precision weights (e.g., FP32) to lower-precision representations (e.g., INT8) with minimal loss of accuracy.
When to Use
- When deploying models to edge devices (mobile, IoT) with limited memory or compute
- When optimizing inference costs on cloud infrastructure
- When striving for real-time performance in computer vision or NLP tasks
- When the model size exceeds deployment constraints
Procedure
1. Identify Quantization Strategy
Choose the appropriate quantization method based on your deployment needs:
- Post-Training Quantization (PTQ): Applied after training. Easiest to implement. Good for general use cases.
- Quantization-Aware Training (QAT): Simulates quantization during training. Results in higher accuracy, but requires retraining.
2. Post-Training Quantization (PyTorch Example)
Dynamic Quantization (Best for LSTM/RNN or Transformer models):
Static Quantization (Best for CNNs): Requires a representative dataset to calibrate the activations.
3. Quantization-Aware Training (QAT)
If PTQ causes an unacceptable drop in accuracy, use QAT.
Best Practices
- Always benchmark accuracy before and after quantization.
- For LLMs, consider specialized quantization libraries like
bitsandbytes(4-bit/8-bit) or formats like GGUF/AWQ. - Use the appropriate backend (e.g.,
fbgemmfor x86,qnnpackfor ARM).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/ai-engineering/ml-model-quantization/SKILL.md
Popularity
- 7-day trend score
- 5
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/ditto190/crispy-nextjs-turborepo-monorepo/ml-model-quantization)