question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Develop MVP of model bundle

See original GitHub issue

Is your feature request related to a problem? Please describe. Thanks for the interesting technical discussion with @ericspod @wyli @atbenmurray @rijobro , as we still have many unclear requirements and unknown use cases, we plan to develop the model package feature step by step, May adjust the design based on feedback during the development.

For the initial step, the core team aligned to develop a small but typical example for inference first, it will use JSON config files to define environments, components and workflow, save the config and model into TorchScript model. then other projects can easily reconstruct the exact same python program and parameters to reproduce the inference. When the small MVP is ready, will share and discuss within the team for the next steps.

I will try to implement the MVP referring to some existing solutions, like NVIDIA Clara MMAR, ignite online package, etc. Basic task steps:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:38 (36 by maintainers)

github_iconTop GitHub Comments

4reactions
ericspodcommented, Dec 14, 2021

We should discuss a clear definition of requirements and objectives. We want to define a format of a single file or multiples files which contains the model weights at least with secondary information describing how to use it for various use cases. This will allow a human or a program to determine what sort of model it is, how to use the model, and what tasks to use it for. For our MVP we want to consider the starting position of what the model weight storage and metadata storage would look like and if it would achieve that objective to some degree.

The base level set of requirements I would suggest are:

  • Ability to save model weights
  • Ability to save runnable model in Torchscript and/or ONNX
  • Include information on model name, version, description, authorship, intended use
  • Include package and technical information needed to use model, eg. MONAI version, Pytorch and other package versions
  • Description of input and output, eg. how to interpret predictions returned
  • Description in some form of how to transform input data into the form expected by the model (ie. preprocess transform sequence) and transform for output

One use case for this information is a human user looking into how the model is used in a particular task. They would want a clear idea of what inputs are expected and what the outputs mean. Whatever format this information is can be either easily read by a human or easily converted into a convenient format using included tools.

A second use case is a deployment environment which automatically constructs whatever infrastructure is needed around a model to present it through a standard interface. This would require generating transform sequences automatically to pre- and post-process data, and load the model through some script defining the workflow. This would used by MONAI Deploy to automatically generate a MAP from the package, or another script automatically create a Docker image to serve the model as a command line tool or through Flask, or another script to interface with existing hosting services to upload the model and whatever other information is needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Build an MVP: Steps, Examples, and Benefits
How to Build an MVP? Determine the Problem; Analyze the Market; Target the Audience; State a Business Model; Identify a User Flow; List...
Read more >
Everything You Need to Know About Building a MVP
I think, since you want to build an online school, you could opt for creating a specific bundle of courses as your MVP....
Read more >
Minimum Viable Product (MVP) - Corporate Finance Institute
Minimum Viable Product (MVP). A product development model created to satisfy early customers and solicit feedback. Written by CFI Team.
Read more >
19 Proven Tools to Build an MVP From Scratch - SpdLoad
Find out the best 19 MVP tools and resources to build a product from scratch without spending a penny. From idea validation to...
Read more >
Complete Guide To MVP Development | Cost of ... - Zestminds
In this article, you will be able to understand all the crucial factors that can influence the cost of MVP development. Let us...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found