Compress language models without retraining.
Guides the creation of pruned language models using one-shot and structured pruning methods.
When to use it
Use when reducing model size, compressing without retraining, or accelerating inference with hardware-friendly sparsity.
Give it a model to prune; it provides a pruning pipeline that saves the pruned model and tokenizer in the project.
What you provide
The practical pruning procedure runs a Python script; no Python version is specified.
The Wanda quick-start requires a CUDA-capable GPU because it loads the model onto CUDA.
This skill
meta-llama/Llama-2-7b-hf
Downloads model weights and tokenizer
wikitext
Loads WikiText calibration data