Model deployment with internal data

0

Is it possible to deploy a model to an endpoint along with a large amount of data for it to use? (~50GB), this can be though of as an internal database for my model to use. I only require such functionality temporary, since I am trying to avoid using database services (e.g DynamoDB etc) for the moment.

Thanks

3개 답변
0

Your best bet is to put the data in S3 if possible. S3 integrates directly with SageMaker so it should be seamless.

profile pictureAWS
전문가
답변함 일 년 전
0

Yes the data is stored in S3. Do you mean I can simply download the data from S3 bucket using boto3 (say in the function the loads the model)?

Ori
답변함 일 년 전
0

Yes. Here is a sample snippet of code

import boto3

s3 = boto3.client('s3')

s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')

s3 = boto3.client('s3')

with open('FILE_NAME', 'wb') as f: s3.download_fileobj('BUCKET_NAME', 'OBJECT_NAME', f)

profile pictureAWS
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠