aws / aws/amazon-sagemaker-examples

Resource Limit Exceeded (ml.p2.xlarge)

Open
#1,001 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
11k
Forks
7k
Avg merge
8h 29m
Merged PRs (30d)
8

Description

Hello,

I was trying to run the following code but got the error "An error occurred (ResourceLimitExceeded) when calling the CreateTrainingJob operation: The requested resource training-job/ml.p2.xlarge is not available in this region"

code:
from sagemaker.pytorch import PyTorch
estimator = PyTorch(entry_point="train.py",
source_dir="train",
role=role,
framework_version='0.4.0',
train_instance_count=1,
train_instance_type='ml.p2.xlarge',
hyperparameters={
'epochs': 10,
'hidden_dim': 200,
})

Also, for current AWS, I did NOT find ml.p2.xlarge instance in EC2 request limit increase. Did AWS change something? My region is US N.California, and I did make a request to increase on-demand P instances. Any help?

Thansk!

Contributor guide

Open the contributing guide

Research direction

Start with the SageMaker PyTorch entry point and the CreateTrainingJob error in the issue, then check whether ml.p2.xlarge is available and quota-supported in US N.California. Done means identifying whether the example or AWS regional capacity is responsible and documenting a confirmed resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, machine-learning
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.