model-size-reduction
CommunityShrink checkpoints without losing task shape.
Software Engineering#model compression#Hugging Face#checkpoint slimming#LoRA extraction#delta sparsification#DARE TIES DELLA#perplexity validation
Authorthistleknot
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Model size reduction solves the problem of deploying or sharing oversized Hugging Face checkpoints when tooling like mergekit cannot handle the architecture or when you need a smaller, more portable artifact.
Core Features & Use Cases
- Architecture-agnostic slimming: Recasts dtype, drops transformer blocks via state_dict key surgery, extracts LoRA from finetuned-minus-base, and performs delta sparsification using DARE/TIES/DELLA.
- Checkpointed multi-stage pipelines: Runs reduction as a resumable series of full model directories so interrupted jobs can continue.
- Validation guardrails: Measures reduction aggressiveness with perplexity (relative delta) and provides failure boundaries like unrecognized layer-key patterns or missing safetensors.
Quick Start
Use this skill to reduce a Hugging Face checkpoint by first sparsifying the fine-tune delta (DARE/TIES/DELLA), then optionally dropping layers, casting to fp16 or bf16, and finally validating perplexity before publishing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: model-size-reduction Download link: https://github.com/thistleknot/skills/archive/main.zip#model-size-reduction Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.