LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

model-pruning

Reduce LLM size and accelerate inference using pruning techniques like Wanda and SparseGPT. Use when compressing models without retraining, achieving 50% sparsity with minimal accuracy loss, or enabling faster inference on hardware accelerators. Covers unstructured pruning, structured pruning, N:M sparsity, magnitude pruning, and one-shot methods.

3,579stars289forksUpdated 2/18/2026
Data Science & ML#inference-acceleration#wanda#machine-learning#model-pruning#model-compression#sparsegpt#sparsity

Security Assessment

Low Risk(75/100)

Detected risks:

Remote Code Execution([SKILL.md] eval()
Security Score75/100

About model-pruning

The 'model-pruning' skill is designed to reduce the size of large language models (LLMs) and accelerate inference without the need for retraining. By utilizing pruning techniques such as Wanda, SparseGPT, structured pruning, and N:M sparsity, it achieves model compression while preserving accuracy with minimal loss. This skill allows for the deployment of optimized models on constrained hardware, such as mobile devices and edge devices, by reducing memory footprints and improving speed. It supports a variety of pruning techniques, including magnitude pruning and one-shot methods, making it highly flexible for different use cases.

The main features of this skill include its ability to achieve up to 50% sparsity with less than 1% accuracy loss and to provide a 2-4x speedup in inference using hardware-friendly sparsity. It is capable of compressing models without retraining, which makes it a suitable solution for use cases where retraining is not an option. Additionally, the skill includes support for both unstructured and structured pruning, ensuring that the model compression can be tailored to specific needs. By leveraging papers such as Wanda and SparseGPT, the skill offers advanced pruning strategies that maximize both the efficiency and effectiveness of model compression.

Use cases for this skill include compressing LLMs for deployment on resource-constrained environments, accelerating model inference, and serving large models efficiently with reduced memory overhead. The skill is ideal for AI practitioners, researchers, and engineers working on deploying large models to edge devices, or those looking to optimize models for faster inference without compromising on performance.

FAQ

How can I use model-pruning to compress my LLM?

You can use the provided pruning techniques like Wanda or SparseGPT to reduce your model's size by up to 60% with minimal accuracy loss. For example, the Wanda pruning method allows you to prune weights based on magnitude and activations without retraining the model.

What are the key dependencies for this skill?

The skill requires the 'transformers', 'torch', and 'accelerate' Python libraries. Additionally, it includes optional dependencies for Wanda and SparseGPT implementations.

Can I use this skill for models already trained?

Yes, this skill allows pruning of models without retraining. The pruning methods are applied directly to the trained models, making it suitable for use in deployment scenarios where retraining is not feasible.

What is the minimum hardware requirement to run this skill?

The skill is designed to work efficiently on hardware accelerators such as GPUs or TPUs. While it can work on CPUs, using a CUDA-enabled device like an NVIDIA GPU is recommended for optimal performance.

What pruning techniques are supported by this skill?

The skill supports a variety of pruning techniques, including unstructured pruning, structured pruning, N:M sparsity, and one-shot pruning. Key techniques like Wanda and SparseGPT are implemented for optimizing models with minimal performance degradation.

Install model-pruning

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

zechenzhangAGI/AI-research-SKILLs

Related Skills

short-form-video

14

multi-asset-morning-briefing

7,907

content-strategy

2,901

doherty-threshold

2,901