What's the best practice to save and load trained/fine-tuned models e.g. BertClassifier?
#1039
Replies: 1 comment 10 replies
-
|
P.S. for more context, I was experimenting with |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @jbischof! I was wondering what's the best way to save and load any
...Classifiermodel e.g.BertClassifierthat has been trained/fine-tuned via.fiton custom data.I assume that it should be
.saveand thentf.keras.models.load_model, but the latter is complaining due to missinginputsandoutputs(TypeError: Functional.__init__() missing 2 required positional arguments: 'inputs' and 'outputs').So I was wondering whether there's a clear approach on how to properly save and load models. I saw some discussions about some proposals of HuggingFace-like interfaces, but not sure if there's been any clear decision on that.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions