Comments (4)
Hi! The use case you are describing is exactly why we have this example notebook:
- https://github.com/aws/studio-lab-examples/blob/main/connect-to-aws/Access_AWS_from_Studio_Lab.ipynb
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.
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.
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.
Thank you, @EmilyWebber.
from studio-lab-examples.
Related Issues (20)
- Not sending phone verification code HOT 2
- There is no runtime available right now. Please change the compute type or try again later. HOT 2
- Weather Image Classification Notebook: "IndexError: Target 4 is out of Bounds"
- Weather Data Image Classification notebook shows "IndexError: Target 4 is out of bounds" HOT 1
- Unable to login account HOT 9
- Remove the Mistral-7B-OpenOrca example
- 'GPU not available error' even when starting the project in 'GPU mode' HOT 3
- Kernal getting died after every few minutes with simple code of execution HOT 2
- Receiving a 500: Internal Server Error when opening my project after selecting cpu runtime HOT 2
- Unable to create account - not redirecting on captcha completed HOT 1
- "You can't use the project runtime because your account is associated with activity that may have violated our Service Terms." HOT 3
- Notebook not rendering properly in Chrome or Edge HOT 3
- Sagemaker Studio Lab Referral Code HOT 1
- Cannot login and create account due to "Something went wrong" error HOT 28
- Bug request new account HOT 8
- unable to request account HOT 3
- Registered for aws sagemaker studio but not able to create account HOT 1
- "Something went wrong, please try again later" HOT 7
- "Something went wrong. Please try again later" error displayed instead of Captcha window HOT 7
- Would the GPU execution time will restart? ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from studio-lab-examples.