Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Upload & Validation #177

Open
PaulCCCCCCH opened this issue Jun 20, 2023 · 0 comments
Open

Model Upload & Validation #177

PaulCCCCCCH opened this issue Jun 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request v0.3

Comments

@PaulCCCCCCH
Copy link
Owner

Part of Robustar v0.3 Main Features (#175)

When the user uploads a model with the UploadModel API, they will pass in a model definition (Python code as string), model weight file, and some other metadata. We need to import the code dynamically, validate the code, push data into the database if its valid, load in the weight file (if provided) and set the model as the current model. Specifically, we need to:

  • Create a file (if not exist) back-end/utils/model_utils.py
  • Write a function that takes a string of Python code, dump it into a file, and import it dynamically. Return the error if there is import fails.
  • Load the model weight. Return the error if load fails.
  • Validate the model by running the model against a small portion of the validation data. Return the error if anything fails.
  • Use generic database queries defined in back-end/utils/db_ops.py to save the model metadata into the database.
  • Set the model as the current model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v0.3
Projects
None yet
Development

No branches or pull requests

2 participants