CLI command for assembling (but not training) a model #7688
kinghuang
started this conversation in
New Features & Project Ideas
Replies: 2 comments 5 replies
-
Thanks for the suggestion, that's an interesting use case. Can you clarify why you assemble the model in a separate step rather than loading all the components, even if frozen, in the initial training step? As far as the changes necessary for that, if you look at the implementation of the train command, it looks like you could just skip running the last line and replace it with saving the model. |
Beta Was this translation helpful? Give feedback.
5 replies
-
PR with the proposal for implementation: #7783 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've recently upgraded to spaCy 3, thanks to the commercial support! We do a "two-phase" approach to building our language model, where the
ner
component is trained and versioned in one project, and then assembled with other components in another project.The final assembly is being done by running spacy train … with a training config that has every trainable pipeline component frozen. The goal of the assembly isn't to train any of the components, but to assemble a bunch of components together into a complete NLP model/package. However, using the
train
command requires train and dev data to be passed in and causes a training pipeline to run, even though there's no actual training being performed.It would be useful if there was a command akin to
assemble
, that does all the package assembly that thetrain
command does (e.g., collecting components and generating a nlp module), without invoking any training.Your Environment
Beta Was this translation helpful? Give feedback.
All reactions