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
! model path is working fine and i have checked it.
model_path = "s3://arn:aws:s3:us-east-1::/****"
huggingface_model = HuggingFaceModel(
model_data = model_path,
role=role,
transformers_version="4.6", # transformers version used
pytorch_version="1.7", # pytorch version used
py_version='py36',
)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am getting an error while deploying the model from S3 bucket using sagemaker notebook. My model that is upload on S3 is "https://huggingface.co/openchat/openchat-3.5-0106". The error:
`import json
import sagemaker
import boto3
from sagemaker.huggingface import HuggingFaceModel
from botocore.config import Config
sm_boto = boto3.client('sagemaker',
config=Config(connect_timeout=5, read_timeout=60, retries={'max_attempts': 20}))
sagemaker_session = sagemaker.Session(sagemaker_client=sm_boto)
role = sagemaker.get_execution_role(sagemaker_session=sagemaker_session)
huggingface_model = HuggingFaceModel(
model_data = model_path,
role=role,
transformers_version="4.6", # transformers version used
pytorch_version="1.7", # pytorch version used
py_version='py36',
)
predictor = huggingface_model.deploy(
initial_instance_count=1,
instance_type="ml.m5.2xlarge",
)
`
Beta Was this translation helpful? Give feedback.
All reactions