Problems using a trained model with custom tags #186
Closed
d4rkm0nkey
started this conversation in
General
Replies: 1 comment 1 reply
-
I see the problem here. When we retrain an AddressParser, at the end, we create a checkpoint with all the metadata, such as the tags, name of the parser and other important information to allow reloading. By default, the checkpoint is named I have improved error handling for that specific case in dev. It will be released in 0.9.6. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I trained my model with 11 custom tags like this:
The training works, but if I want to load the last checkpoint like this:
I get the error
size mismatch for decoder.linear.bias: copying a param with shape torch.Size([11]) from checkpoint, the shape in current model is torch.Size([9])
.Can anyone help me, how I can change the total number of tags?
Beta Was this translation helpful? Give feedback.
All reactions