# Tokenizer.from\_pretrained calls stuck forever

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftokenizer-from-pretrained-calls-stuck-forever%2F38217%3E%5C
**Category:** 🤗Transformers\
**Created:** [April 30, 2023, 7:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftokenizer-from-pretrained-calls-stuck-forever%2F38217 "2023-04-30T19:31:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akwgt](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@akwgt](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fakwgt)%5C
**Post date:** [April 30, 2023, 7:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftokenizer-from-pretrained-calls-stuck-forever%2F38217%2F1 "2023-04-30T19:31:01Z")

</div>

Hi there,

when I call Tokenizer.from\_pretrained it happens very often to me that the call gets stuck indefinetly, since the Huggingface web site isn’t repsonding. Today e.g. I could only get a tokenizer 3 times out of about 30 attempts.  
Is there a way to force caching tokenizers such that I don’t need an internet connection on each call?  
This gets really bad when I have projects and homeworks due.
