# How to prune a model trained with LayerDrop

**URL:** <https://discuss.huggingface.co/t/how-to-prune-a-model-trained-with-layerdrop/16702>\
**Category:** 🤗Transformers\
**Created:** [April 11, 2022, 7:14pm UTC](https://discuss.huggingface.co/t/how-to-prune-a-model-trained-with-layerdrop/16702 "2022-04-11T19:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LearnToGrow](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@LearnToGrow](https://discuss.huggingface.co/u/LearnToGrow)\
**Post date:** [April 11, 2022, 7:14pm UTC](https://discuss.huggingface.co/t/how-to-prune-a-model-trained-with-layerdrop/16702/1 "2022-04-11T19:14:46Z")

</div>

I am training a BART transformers with LayerDrop for encoder and decoder.Now, I want to know how can I do the pruning? I did not find enough information in the documentation.
