SilverSpoon-KD: A General-Purpose Toolkit for Knowledge Distillation
Abstract
Knowledge distillation transfers deep learning representations from a teacher model to a student model, typically reducing model size or inference cost. However, knowledge distillation tooling has not kept pace with the breadth of research methods: existing toolkits typically support only a limited subset of techniques and use cases. We present SilverSpoon-KD, an open-source PyTorch toolkit that unifies different distillation paradigms and architectural relationships across workloads and applications behind a single API. Moreover, SilverSpoon-KD offers the first general-purpose blockwise knowledge distillation implementation with unique scalability features. We validate its versatility across vision, masked language model, and causal language models on tasks spanning homogeneous, heterogeneous, and quantization distillation across paradigms. We also evaluate SilverSpoon-KD by comparing its performance, including throughput and GPU memory usage, with existing toolkits. Despite extensive support for convenience, metric calculation, and tracking, we have found SilverSpoon-KD's performance to be on par with or better than existing toolkits.
Create a lesson
Metadata
- Comments
- 28 pages, 10 figures, 11 tables. Code: https://github.com/silverspoon-dev/silverspoon-kd
Related papers
HKD-ACPA: Heterogeneous Knowledge Distillation Adversarial Cyber-Physical Attacks in Power Grids
Shared title terminologycs.LGJunhao Ren, Honglin Gao, Shuo Feng et al.
Ziv Meets Sumcheck: Zero-Knowledge Proofs of Floating-Point LLM Inference
Shared title terminologycs.LGHassan Khodaiemehr, Khadijeh Bagheri, Chen Feng
What Makes Recurrence Generalize Across Lengths?
Shared title terminologycs.LGYoonsung Jung, Sunghun Jung, Louise Nayeong Koh et al.
HME-PFD: Heterogeneous Mixture-of-Experts Privileged Feature Distillation
Shared title terminologycs.LGWen Xu, Xiaomin Zhang, Yucheng Yang et al.
Do Larger Fully Connected Neural Networks Generalize Better?
Shared title terminologycs.LGMohammad Jalili Torkamani, Suhib Hamid, Moaz N. Ishag
AgriManager: A Framework and Benchmark for LLM-RL Generalization in Agricultural Management
Shared title terminologycs.LGChi Gui, Junwen Zheng, Ritwik Nigam et al.