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
Describe the bug
The current SageMaker SDK does not support Hugging Face transformers 4.38.0 and later, preventing the use of the latest models and features. This impacts users who need to deploy models like Qwen2.5-VL-7B-Instruct.
To reproduce
importsagemakerimportboto3fromsagemaker.huggingfaceimportHuggingFaceModeltry:
role=sagemaker.get_execution_role()
exceptValueError:
iam=boto3.client('iam')
role=iam.get_role(RoleName='sagemaker_execution_role')['Role']['Arn']
# Hub Model configuration. https://huggingface.co/modelshub= {
'HF_MODEL_ID':'Qwen/Qwen2.5-VL-3B-Instruct',
'HF_TASK':'image-text-to-text'
}
# create Hugging Face Model Classhuggingface_model=HuggingFaceModel(
transformers_version='4.38.0',
pytorch_version='2.1.0',
py_version='py310',
env=hub,
role=role,
)
# deploy model to SageMaker Inferencepredictor=huggingface_model.deploy(
initial_instance_count=1, # number of instancesinstance_type='ml.m5.xlarge'# ec2 instance type
)
Expected behavior
Should work with latest version of transformers
Screenshots or logs
ValueError: Unsupported huggingface version: 4.38.0. You may need to upgrade your SDK version (pip install -U
sagemaker) for newer huggingface versions. Supported huggingface version(s): 4.6.1, 4.10.2, 4.11.0, 4.12.3, 4.17.0,
4.26.0, 4.28.1, 4.37.0, 4.6, 4.10, 4.11, 4.12, 4.17, 4.26, 4.28, 4.37.
Bug information
SageMaker Core version:
The text was updated successfully, but these errors were encountered:
Describe the bug
The current SageMaker SDK does not support Hugging Face
transformers
4.38.0 and later, preventing the use of the latest models and features. This impacts users who need to deploy models like Qwen2.5-VL-7B-Instruct.To reproduce
Expected behavior
Should work with latest version of transformers
Screenshots or logs
ValueError: Unsupported huggingface version: 4.38.0. You may need to upgrade your SDK version (pip install -U
sagemaker) for newer huggingface versions. Supported huggingface version(s): 4.6.1, 4.10.2, 4.11.0, 4.12.3, 4.17.0,
4.26.0, 4.28.1, 4.37.0, 4.6, 4.10, 4.11, 4.12, 4.17, 4.26, 4.28, 4.37.
Bug information
The text was updated successfully, but these errors were encountered: