Skip to content

Conversation

@ehcalabres
Copy link
Contributor

Background

Sagemaker team has recently released a new major version of their sagemaker-python-sdk with a big refactoring and some breaking changes that directly affect HF's integrations. While we are already working on this new release, all the tutorials and docs related to sagemaker won't work in this new version until updated.

Description

This PR adds some warnings to explicitly advice the user about these changes and how to avoid errors by using the previous version (v2).

@ehcalabres ehcalabres changed the title [Sagemaker] Add warning about SageMaker SDK v3 breaking changes [SageMaker] Add warning about SageMaker SDK v3 breaking changes Dec 4, 2025
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link

@tengomucho tengomucho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should also add the same warning to this file: https://github.com/huggingface/hub-docs/blob/main/docs/sagemaker/source/dlcs/available.md
Because it has the from sagemaker.huggingface import HuggingFaceModel, get_huggingface_llm_image_uri code.

Copy link

@tengomucho tengomucho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@alvarobartt alvarobartt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ehcalabres, I've suggested a slightly different version for the warning!

@ehcalabres ehcalabres merged commit b1bda18 into huggingface:main Dec 5, 2025
1 check passed
@ehcalabres ehcalabres deleted the add-sagemaker-v2-warning branch December 5, 2025 09:59
Charlie-Boyer pushed a commit to Charlie-Boyer/hub-docs that referenced this pull request Dec 5, 2025
…ingface#2095)

* Add warning about SageMaker SDK v3 breaking changes

* Update SageMaker SDK version in notebooks to avoid breaking changes in v3

* Add missing warnings about SageMaker SDK v3 breaking changes

* Update warnings regarding SageMaker Python SDK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants