by varispeed · 3y ago · 0 comments
Let's say you came up with the custom model that gives good results, how do you transfer that model so it can be used in an API?
As a general thing, you'd take a request that would require an inference step, which would then invoke the model with some parameters and input, and return the output. Beyond that, you'd need more detail.
The challenge to support a new model architecture is about coding the preprocessing for inputs (like tokenization or image resizing and color feature extraction) and post processing the outputs (for example entity recognition needs to lookup the entities and align the text).
Once an architecture is coded for the pre/post processing, then serving a new model for inference with that architecture is easy!