Giter Club home page Giter Club logo

Comments (4)

EmilyWebber avatar EmilyWebber commented on May 18, 2024

Hi! The use case you are describing is exactly why we have this example notebook:

Your net net is:
1/ Ensure you have proper training and authorization to use your AWS access and secret keys. If you are an AWS account admin, you can find this in your IAM console. If you are not, work with your admin to determine if this pattern is appropriate for you.

2/ If you are qualified to manage your AWS keys, create a new file called ~/.aws/credentials. There, copy and paste in your access and secret keys.

3/ Remove any cells you ran in a notebook to create or verify those files.

4/ Create a SageMaker execution role. The easiest way to do this is via the console - you can create a new SageMaker execution role when create a notebook instance or a Studio user profile. Once this is done, paste in the arn (Amazon Resource Name), for this execution role.

5/ Go forth and scale up on SageMaker! After that, once you are using the SageMaker Python SDK, you should be able to use all code-based features within SageMaker, such as training, hosting, tuning, autopilot, pipelines, etc.

from studio-lab-examples.

derekschan avatar derekschan commented on May 18, 2024

Hi @EmilyWebber. Might you also have an example that doesn't require AWS account information yet avoids "ValueError: Must setup local AWS configuration with a region supported by SageMaker" in the code below for "role"?

# create Hugging Face Model Class
huggingface_model = HuggingFaceModel(
	transformers_version='4.6.1',
	pytorch_version='1.7.1',
	py_version='py36',
	env=hub,
	role=role, 
)

Code source: https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english, where Deploy is Amazon SageMaker rather than Accelerated Inference — the latter currently returns an error with or without SageMaker

Since the SageMaker Studio Lab website emphasizes no costs and no need to sign up for an AWS account, a team and I are exploring whether to have students try. Thank you in advance.

from studio-lab-examples.

EmilyWebber avatar EmilyWebber commented on May 18, 2024

Hi @derekschan - thanks for the comment. This is actually expected behavior right now - Studio Lab defaults to not having access to any AWS API's unless explicitly granted. To date, that is solved only by the pattern mentioned above in this issue, explicitly installing AWS key permissions to utilize them.

Should that ever change in the future we will be sure to let you know! I'll mark your comment as a feature enhancement.

from studio-lab-examples.

derekschan avatar derekschan commented on May 18, 2024

Thank you, @EmilyWebber.

from studio-lab-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.