# Error saving quantized model

**URL:** <https://discuss.huggingface.co/t/error-saving-quantized-model/19801>\
**Category:** Intermediate\
**Created:** [June 29, 2022, 4:31pm UTC](https://discuss.huggingface.co/t/error-saving-quantized-model/19801 "2022-06-29T16:31:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![omoekan](https://avatars.discourse-cdn.com/v4/letter/o/45deac/32.png) [@omoekan](https://discuss.huggingface.co/u/omoekan)\
**Post date:** [June 30, 2022, 9:59pm UTC](https://discuss.huggingface.co/t/error-saving-quantized-model/19801/2 "2022-06-30T21:59:45Z")

</div>

I found the solution here

> [@Pegasus Model Weights Compression/Pruning](https://discuss.huggingface.co/t/pegasus-model-weights-compression-pruning/6381/8):
>
> @lewtun I chose dynamic quantization approach. And I dont think from\_pretrained support loading quantised models. I’d be happy if you can take a look. Can we hop on a google meet call and you can help me out. Hopefully. Thanks

---

_[View the full topic](https://discuss.huggingface.co/t/error-saving-quantized-model/19801)._
