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?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Save and load ViT model into a unique .h5 file (or TensorflowLight) | 0 | 1431 | July 20, 2022 | |
Not able to use the uploaded model in Hugginface | 6 | 264 | August 19, 2024 | |
Issues Loading with from_pretrained_keras() | 0 | 1037 | April 4, 2024 | |
Is there a way to correctly load a pre-trained transformers model without the configuration file? | 6 | 17956 | August 13, 2021 | |
Huggingface inference API issue | 0 | 510 | January 10, 2023 |