aws-samples / foundation-model-benchmarking-tool

Foundation model benchmarking tool. Run any model on any AWS platform and benchmark for performance across instance type and serving stack options.
https://aws-samples.github.io/foundation-model-benchmarking-tool/
MIT No Attribution
171 stars 24 forks source link

Unable to locate credential issue #153

Open prasadwrites opened 1 month ago

prasadwrites commented 1 month ago

I am trying to run FM bench on an EC2 instance. I am not using SageMaker. I am getting following error:

File ~/anaconda3/envs/fmbench_python311/lib/python3.11/site-packages/botocore/auth.py:418, in SigV4Auth.add_auth(self, request) 416 def add_auth(self, request): 417 if self.credentials is None: --> 418 raise NoCredentialsError() 419 datetime_now = datetime.datetime.utcnow() 420 request.context['timestamp'] = datetime_now.strftime(SIGV4_TIMESTAMP)

NoCredentialsError: Unable to locate credentials

Do i need to use AWS key and access id somewhere ?

prasad-nair-amd commented 1 month ago

Resolved the issue. One need to install awscli and run aws configure with credential.