You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Question
I followed the tutorial at https://allennlp.org/tutorials and at the end of it, I have a model object. I now want to archive it to be able to use later. However, archiving it (using archival.archive_model) requires a config file in the serialization directory. Is there a way to create the config file from all the objects(model, vocab etc) that I have in memory?
The text was updated successfully, but these errors were encountered:
no, there's no way to do this. (there's no explicit specification for what a config file looks like, its structure is implicitly defined by the from_params methods, and even if you had that structure there's still be no programmatic way to extract that data from your classes).
what probably should be done is
(1) add a final section to that tutorial about how to save the weights and vocabulary (and then how to reload them), and then
(2) add a subsequent tutorial for how to train using a config file.
I guess (2) already exists as part of the README in that tutorials directory:
Question
I followed the tutorial at https://allennlp.org/tutorials and at the end of it, I have a model object. I now want to archive it to be able to use later. However, archiving it (using
archival.archive_model
) requires a config file in the serialization directory. Is there a way to create the config file from all the objects(model, vocab etc) that I have in memory?The text was updated successfully, but these errors were encountered: