# Error saving quantized model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-saving-quantized-model%2F19801%3E%5C
**Category:** Intermediate\
**Created:** [June 29, 2022, 4:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-saving-quantized-model%2F19801 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fomoekan)%5C
**Post date:** [June 30, 2022, 9:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-saving-quantized-model%2F19801%2F2 "2022-06-30T21:59:45Z")

</div>

I found the solution here

> [@Pegasus Model Weights Compression/Pruning](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpegasus-model-weights-compression-pruning%2F6381%2F8)%3A
>
> @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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-saving-quantized-model%2F19801)._
