# Loading checkpoint shards very slow

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-checkpoint-shards-very-slow%2F65961%3E%5C
**Category:** 🤗Transformers\
**Created:** [December 15, 2023, 4:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-checkpoint-shards-very-slow%2F65961 "2023-12-15T16:17:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spencer97](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@spencer97](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fspencer97)%5C
**Post date:** [December 15, 2023, 4:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-checkpoint-shards-very-slow%2F65961%2F1 "2023-12-15T16:17:35Z")

</div>

Loading checkpoint shards is very slow. Same model and same machine, sometimes it takes less than 1 minute, but sometimes it takes more than 10 minutes. May I know what’s the reason and how to speed up the process?

---

<div class="post-metadata">

**Author:** ![enochlev](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/enochlev/32/22267_2.png) [@enochlev](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fenochlev)%5C
**Post date:** [December 19, 2023, 7:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-checkpoint-shards-very-slow%2F65961%2F2 "2023-12-19T19:10:45Z")

</div>

check out your RAM vs VRAM usage… is it loading to your ram or GPU vram. typical vram is faster.  
try quantization… it may be faster.
