Giter Site home page Giter Site logo

custom-docker-test's Introduction

Custom docker test

Setup

Build and run docker container using CLI, UI of cloud provider or VS Code extension.

Build container

docker build -t custom-docker-test:v0.01 . --platform linux/amd64

Run container

docker run --rm -it --platform linux/amd64 \
    --mount type=bind,source="$(pwd)",target=/custom-docker-test \
    --name custom-docker-test custom-docker-test:v0.01

Attach to container using VS Code using SSH connection or VS Code extension.

Q: Do cloud machines support CUDA 10.x and 11.x? Q: Can we use multiple conda env inside a container?

Run test

Steps 1, 2, 3 must be done using VS Code inside the container. Step 4 should be run in a server production env and we want use a REST API to inference the model.

  1. Go to notebooks/Explore.ipynb and run all cells.

  2. python app.py preproc

Q: How to bring the preprocessing step in the future store? Q: How to extract data from feature store?

  1. python app.py train

Q: How to track the experiments? Q: How to save the model in the model registry?

  1. uvicorn api:app --host 0.0.0.0 --port 80. Test REST API: curl -X GET 0.0.0.0:80/predict/ -H 'Content-Type: application' -d @./get.json

Q: How to bring this application in production (aka kubernetes engine)?

References

custom-docker-test's People

Contributors

silvioolivastri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.