Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AWS_ACCOUNT_ID=
AWS_PROFILE=
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ wheels/
.DS_Store

# Git
git-auth.txt
git-auth.txt

# Environment variables
.env
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,18 @@ The difference of the AWS environment is that:
> In order to use the AWS environment, you need to set up your AWS profile with the below steps:
> 1. Execute `aws configure sso`.
> 2. Fill in the required fields, especially: "Default client Region" is "us-east-1".
> 3. You can find your account ID and profile by executing `cat ~/.aws/config`.
> 4. Finally, you can run `dvc repro` with environment variables in each game: `AWS_ACCOUNT_ID=xxx AWS_PROFILE=yyy dvc repro`.
> 5. Before you run `dvc repro`, you need to change the filename of `dvc.aws.yaml` to `dvc.yaml`.
> a. SSO session name: `pg2benchmark`.
> b. SSO start URL: https://d-90674355f1.awsapps.com/start
> c. SSO region: `us-east-1`.
> d. SSO registration scopes: Leave empty.
> e. Login via browser.
> 2. Select the account: `ifflabdev`.
> a. Default client Region is `us-east-1`.
> b. CLI default ouptut: Leave empty.
> c. Profile name: `pg2benchmark`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

profile name is self-defined, so it can be other values. Maybe let the users to define it?

> 4. You can find your account ID and profile by executing `cat ~/.aws/config`.
> 5. Finally, you can run `dvc repro` with environment variables in each game: `AWS_ACCOUNT_ID=xxx AWS_PROFILE=yyy dvc repro`
> 6. Before you run `dvc repro`, you need to change the filename of `dvc.aws.yaml` to `dvc.yaml`.

#### Supervised

Expand Down
2 changes: 1 addition & 1 deletion supervised/params.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aws:
account_id: ${AWS_ACCOUNT_ID}
region_name: "us-east-1"
sagemaker_role_name: "rnd-dev-sagemakerexecutionrole "
sagemaker_role_name: "rnd-dev-sagemakerexecutionrole"
s3_output_prefix: "mango-pe/pg2-benchmark-output"
s3_training_data_prefix: "mango-pe/pg2-benchmark-training-data"
instance_type: "ml.m5.xlarge"
Expand Down
2 changes: 1 addition & 1 deletion zero_shot/params.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aws:
account_id: ${AWS_ACCOUNT_ID}
region_name: "us-east-1"
sagemaker_role_name: "rnd-dev-sagemakerexecutionrole "
sagemaker_role_name: "rnd-dev-sagemakerexecutionrole"
s3_output_prefix: "mango-pe/pg2-benchmark-output"
s3_training_data_prefix: "mango-pe/pg2-benchmark-training-data"
instance_type: "ml.m5.xlarge"
Expand Down