# .h5 File not delivering Correct JSON file

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fh5-file-not-delivering-correct-json-file%2F21022%3E%5C
**Category:** Beginners\
**Created:** [July 30, 2022, 12:37am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fh5-file-not-delivering-correct-json-file%2F21022 "2022-07-30T00:37:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hatman](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hatman/32/27670_2.png) [@Hatman](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FHatman)%5C
**Post date:** [July 30, 2022, 12:37am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fh5-file-not-delivering-correct-json-file%2F21022%2F1 "2022-07-30T00:37:12Z")

</div>

When using from\_pretrained to create a model from the .h5 file I’m getting an incorrect JSON file. I tried to create the config file and just load\_weights but the arch I’m using, TFBertForClassificationSequence, doesn’t allow it. How do I jump this wall?
