# How to upload a quantized model?

**URL:** <https://discuss.huggingface.co/t/how-to-upload-a-quantized-model/6683>\
**Category:** Models\
**Created:** [June 10, 2021, 2:15am UTC](https://discuss.huggingface.co/t/how-to-upload-a-quantized-model/6683 "2021-06-10T02:15:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lewtun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lewtun/32/30995_2.png) [@lewtun](https://discuss.huggingface.co/u/lewtun)\
**Post date:** [June 11, 2021, 8:54am UTC](https://discuss.huggingface.co/t/how-to-upload-a-quantized-model/6683/3 "2021-06-11T08:54:42Z")

</div>

in case it’s useful, i’ve also answered in another thread some of the main steps you need to re-load the quantized weights using pytorch’s `state_dict`: [Pegasus Model Weights Compression/Pruning - #9 by lewtun](https://discuss.huggingface.co/t/pegasus-model-weights-compression-pruning/6381/9)

---

_[View the full topic](https://discuss.huggingface.co/t/how-to-upload-a-quantized-model/6683)._
