You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to download the S3 artifacts for Megatron, as specific inn the training/large_language_model/megatron-lm/README.md file. I tried the following code:
importboto3frombotocore.exceptionsimportNoCredentialsErrordefdownload_file_from_s3(bucket_name, object_key, destination_path):
# Initialize a session using AWS S3s3=boto3.client('s3', aws_access_key_id='3ZC41B4Z2WHM5DT2',
s3.download_file(bucket_name, object_key, destination_path)
# Replace these values with your ownbucket_name='https://s3.us-east-1.lyvecloud.seagate.com/mlcommons-training-wg-s3'object_key='gpt3/megatron-lm/checkpoint_megatron_fp32.tar'destination_path='.'# Call the function to download the filedownload_file_from_s3(bucket_name, object_key, destination_path)
However, I get the following error: botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden.
I also tried listing the files in the bucket using
importboto3frombotocore.exceptionsimportNoCredentialsErrordefdownload_file_from_s3(bucket_name, object_key, destination_path):
# Initialize a session using AWS S3s3=boto3.client('s3', aws_access_key_id='3ZC41B4Z2WHM5DT2', aws_secret_access_key='AK4NQQZV0NKFEJWJUZVPX5XQ0QNTXCGW')
response=s3.list_objects_v2(
Bucket=bucket_name,
# Prefix="gpt3/megatron-lm/"
)
print(response)
# Replace these values with your ownbucket_name='mlcommons-training-wg-s3'object_key='https://s3.us-east-1.lyvecloud.seagate.com'destination_path='.'# Call the function to download the filedownload_file_from_s3(bucket_name, object_key, destination_path)
This results in the following error: botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the ListObjectsV2 operation: The AWS Access Key Id you provided does not exist in our records.
The text was updated successfully, but these errors were encountered:
Hi,
I was trying to download the S3 artifacts for Megatron, as specific inn the
training/large_language_model/megatron-lm/README.md
file. I tried the following code:However, I get the following error:
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden
.I also tried listing the files in the bucket using
This results in the following error:
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the ListObjectsV2 operation: The AWS Access Key Id you provided does not exist in our records.
The text was updated successfully, but these errors were encountered: