# Unable to load saved tokenizer

**URL:** <https://discuss.huggingface.co/t/unable-to-load-saved-tokenizer/86631>\
**Category:** 🤗Tokenizers\
**Created:** [May 14, 2024, 9:05am UTC](https://discuss.huggingface.co/t/unable-to-load-saved-tokenizer/86631 "2024-05-14T09:05:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![willsaliba](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@willsaliba](https://discuss.huggingface.co/u/willsaliba)\
**Post date:** [May 14, 2024, 9:05am UTC](https://discuss.huggingface.co/t/unable-to-load-saved-tokenizer/86631/1 "2024-05-14T09:05:26Z")

</div>

I’m able to successfully train and save my tokenizer but then i cant reload it.

```auto
tokenizer.save(tokenizer_save_path+"tokenizer.json") #works
newTokenizer = Tokenizer.from_file(tokenizer_save_path+"tokenizer.json") #breaks

```

I always get this error:  
Exception: data did not match any variant of untagged enum ModelWrapper at line 3258 column 3
