GithubHelp home page GithubHelp logo

Comments (4)

wilderfield avatar wilderfield commented on July 23, 2024 4

I vote for this! Would love to use Sagemaker to parallelize some retraining of Caffe models, but I don't want to do all the extra work of setting up my own container, and writing my own train/serve functions.

from amazon-sagemaker-examples.

djarpin avatar djarpin commented on July 23, 2024

Thanks for your interest in Amazon SageMaker, @dholdaway !

Currently you could use Caffe in SageMaker by bringing your own container, similar to our scikit example. That said, we use customer feedback to help us prioritize which features we add over time. With that in mind, are there any specific aspects of bringing your own Caffe model to SageMaker that have been difficult or where we could make it easier/faster?

from amazon-sagemaker-examples.

dholdaway avatar dholdaway commented on July 23, 2024

so I have a container running caffe but I am unsure of the next step.

from amazon-sagemaker-examples.

djarpin avatar djarpin commented on July 23, 2024

Thanks, @dholdaway . Is your container setup according to the specifications in the SageMaker AWS docs? At a high level that means, if you intend to use it for training, you have a train function that reads data in from /opt/ml/input/data/ and outputs a trained model to /opt/ml/model. And/or if you intend to use it for hosting, you have a serve function that reads in your model artifact, takes in an HTTP POST request body, parses it, and returns a prediction.

If that's been setup, then all you should need to do is publish that container to AWS ECS. Then you can either create a training job or a hosted endpoint. At a high level, creating a training job means creating an estimator that points to your container image in ECS, specifies instance type and count, and points to your data in S3. For hosting, if you've trained the model as an estimator in SageMaker you can just .deploy it. If you're hosting a model artifact that was trained elsewhere, you'll need to create a SageMaker model by registering that model artifact, create an endpoint config with instance information, and then create the endpoint from the endpoint config. More details on that process can be found in these examples, or the API reference in the docs.

from amazon-sagemaker-examples.

Related Issues (20)

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.