---
title: "modelscope 1.40.3 Breaking Changes on PyPI | Since.dev"
description: "What each modelscope release removed, renamed or changed: 39 breaking changes in 11 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/modelscope
last_updated: 2026-12-04
---

# modelscope breaking changes

modelscope 1.40.3 (November 9, 2026) is its newest release with breaking changes, 5 of them. The first: MS_CACHE_HOME is now normalised to an absolute path in modelscope 1.40.3. Every breaking API change we have recorded in modelscope on PyPI: 39 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.40.3`, released November 9, 2026. [Source repository](https://github.com/modelscope/modelscope)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.35.0](#v-1-35-0) to [1.40.3](#v-1-40-3): 36 breaking changes in 10 versions.

## modelscope 1.40.3 breaking changes

modelscope 1.40.3, released November 9, 2026: 5 breaking changes.

- **Behavior changed**  

A relative MS_CACHE_HOME is converted to an absolute path when passed to the hub config, so code relying on the raw value may see a different location. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.40.3)
- **Behavior changed** `hf_hub_download`  

Missing files now raise EntryNotFoundError and cache misses raise LocalEntryNotFoundError, so handlers for other errors may no longer catch them. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.40.3)
- **Behavior changed** `ms clear-cache`  

ms clear-cache lists all targets before deleting and refuses empty identifiers, path traversal, out-of-root and symlinked paths. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.40.3)
- **Behavior changed** `update_local_model`  

Models already under the legacy model root or the modelscope-hub cache root are no longer copied. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.40.3)
- **Configuration changed**  

The package now needs modelscope-hub>=0.7.0 installed, so upgrade that dependency alongside modelscope. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.40.3)

## modelscope 1.40.1 breaking changes

modelscope 1.40.1, released September 15, 2026: 2 breaking changes.

- **Configuration changed**  

The upload environment variables were unified in this release, so scripts that set the previous variable names may need updating. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.40.1)
- **Signature changed** `modelscope.pipelines.cv.image_to_3d_pipeline.load_model`  

Was def load_model(cfg, ckpt, strict=True); now def load_model(config, ckpt, strict=True). [pypi.org](https://pypi.org/project/modelscope/1.40.1/)

## modelscope 1.40.0 breaking changes

modelscope 1.40.0, released September 9, 2026: 1 breaking change.

- **Configuration changed**  

The modelscope and ms console scripts are now provided solely by modelscope-hub, so users need modelscope-hub 0.3.0 or later installed to keep using them. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.40.0)

## modelscope 1.39.0 breaking changes

modelscope 1.39.0, released July 28, 2026: 2 breaking changes.

- **Signature changed** `modelscope.dataset_file_download`  

Was from modelscope.hub.file_download import dataset_file_download; now def dataset_file_download(dataset_id: str, file_path: str, \*, cache_dir: str = None, local_dir: str = None, revision: str = None, cookies: dict = None, token: str =... [pypi.org](https://pypi.org/project/modelscope/1.39.0/)
- **Signature changed** `modelscope.snapshot_download`  

Was def snapshot_download(model_id: Optional\[str\] = None, revision: Optional\[str\] = None, cache_dir: Union\[str, Path, None\] = None, user_agent: Optional\[Union\[Dict, str\]\] = None, local_files_only: Optional\[bool\] = False, cookies=None... [pypi.org](https://pypi.org/project/modelscope/1.39.0/)

## modelscope 1.38.0 breaking changes

modelscope 1.38.0, released July 1, 2026: 12 breaking changes.

- **Behavior changed** `trust_remote_code`  

The trust_remote_code and trusted-owner checks were reworked, so remote code may be refused in cases that previously loaded it. Review code that relies on remote code loading. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.38.0)
- **Signature changed** `modelscope.dataset_file_download`  

Was def dataset_file_download(dataset_id: str, file_path: str, revision: Optional\[str\] = DEFAULT_DATASET_REVISION, cache_dir: Union\[str, Path, None\] = None, local_dir: Optional\[str\] = None, user_agent: Optional\[Union\[Dict, str\]\] = None... [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.dataset_snapshot_download`  

Was def dataset_snapshot_download(dataset_id: str, revision: Optional\[str\] = DEFAULT_DATASET_REVISION, cache_dir: Union\[str, Path, None\] = None, local_dir: Optional\[str\] = None, user_agent: Optional\[Union\[Dict, str\]\] = None... [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.HubApi`  

Was class HubApi; now class HubApi(\_LegacyHubApi). [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.HubApi.create_model`  

Was def create_model(self, model_id: str, visibility: Optional\[int\] = ModelVisibility.PUBLIC, license: Optional\[str\] = Licenses.APACHE_V2, chinese_name: Optional\[str\] = None, original_model_id: Optional\[str\] = '', endpoint: Optional\[str\] =... [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.HubApi.fetch_meta_files_from_url`  

Was @staticmethod def fetch_meta_files_from_url(url, out_path, chunk_size=1024, mode=DownloadMode.REUSE_DATASET_IF_EXISTS, token: Optional\[str\] = None); now @staticmethod def fetch_meta_files_from_url(url: str, out_path: str, chunk_size... [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.HubApi.get_model_url`  

Was def get_model_url(self, model_id: str, endpoint: Optional\[str\] = None); now def get_model_url(self, model_id: str) -> str. [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.HubApi.upload_file`  

Was def upload_file(self, \*, path_or_fileobj: Union\[str, Path, bytes, BinaryIO\], path_in_repo: str, repo_id: str, token: Union\[str, None\] = None, repo_type: Optional\[str\] = REPO_TYPE_MODEL, commit_message: Optional\[str\] = None... [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.HubApi.upload_folder`  

Was def upload_folder(self, \*, repo_id: str, folder_path: Union\[str, Path, List\[str\], List\[Path\]\], path_in_repo: Optional\[str\] = '', commit_message: Optional\[str\] = None, commit_description: Optional\[str\] = None, token: Union\[str, None\] =... [pypi.org](https://pypi.org/project/modelscope/1.38.0/)
- **Signature changed** `modelscope.model_file_download`  

Was def model_file_download(model_id: str, file_path: str, revision: Optional\[str\] = DEFAULT_MODEL_REVISION, cache_dir: Optional\[str\] = None, user_agent: Union\[Dict, str, None\] = None, local_files_only: Optional\[bool\] = False, cookies... [pypi.org](https://pypi.org/project/modelscope/1.38.0/)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## modelscope 1.37.1 breaking changes

modelscope 1.37.1, released May 22, 2026: 1 breaking change.

- **Signature changed** `modelscope.Preprocessor.from_pretrained`  

Was @classmethod def from_pretrained(cls, model_name_or_path: str, revision: Optional\[str\] = DEFAULT_MODEL_REVISION, cfg_dict: Config = None, preprocessor_mode=ModeKeys.INFERENCE, \*\*kwargs); now @classmethod def from_pretrained(cls... [pypi.org](https://pypi.org/project/modelscope/1.37.1/)

## Older versions

5 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### modelscope 1.37.0 breaking changes

modelscope 1.37.0, released May 15, 2026: 3 breaking changes.

- **Behavior changed** `build_trainer`  

Remote code or plugins now run only when the caller explicitly passes trust_remote_code to build_trainer. Code that relied on the old behavior must add this argument. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.37.0)
- **Behavior changed** `pipeline`  

Remote code or plugins now run only when the caller explicitly passes trust_remote_code to pipeline. Code that relied on the old behavior must add this argument. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.37.0)

And 1 more in this version.

### modelscope 1.36.3 breaking changes

modelscope 1.36.3, released April 28, 2026: 6 breaking changes.

- **Signature changed** `modelscope.dataset_file_download`  

Was def dataset_file_download(dataset_id: str, file_path: str, revision: Optional\[str\] = DEFAULT_DATASET_REVISION, cache_dir: Union\[str, Path, None\] = None, local_dir: Optional\[str\] = None, user_agent: Optional\[Union\[Dict, str\]\] = None... [pypi.org](https://pypi.org/project/modelscope/1.36.3/)
- **Signature changed** `modelscope.dataset_snapshot_download`  

Was def dataset_snapshot_download(dataset_id: str, revision: Optional\[str\] = DEFAULT_DATASET_REVISION, cache_dir: Union\[str, Path, None\] = None, local_dir: Optional\[str\] = None, user_agent: Optional\[Union\[Dict, str\]\] = None... [pypi.org](https://pypi.org/project/modelscope/1.36.3/)

And 4 more in this version.

### modelscope 1.36.1 breaking changes

modelscope 1.36.1, released April 21, 2026: 2 breaking changes.

- **Behavior changed**  

The download module now uses strict exception handling for pagination and partial-download errors, so code that expected these failures to be silently tolerated may now receive exceptions. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.36.1)
- **Default changed**  

The default dataset listing page size is now 200. Code that relied on the previous default page size may see different results per page. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.36.1)

### modelscope 1.36.0 breaking changes

modelscope 1.36.0, released April 20, 2026: 2 breaking changes.

- **Signature changed** `modelscope.HubApi.upload_file`  

Was def upload_file(self, \*, path_or_fileobj: Union\[str, Path, bytes, BinaryIO\], path_in_repo: str, repo_id: str, token: Union\[str, None\] = None, repo_type: Optional\[str\] = REPO_TYPE_MODEL, commit_message: Optional\[str\] = None... [pypi.org](https://pypi.org/project/modelscope/1.36.0/)
- **Signature changed** `modelscope.HubApi.upload_folder`  

Was def upload_folder(self, \*, repo_id: str, folder_path: Union\[str, Path, List\[str\], List\[Path\]\], path_in_repo: Optional\[str\] = '', commit_message: Optional\[str\] = None, commit_description: Optional\[str\] = None, token: Union\[str, None\] =... [pypi.org](https://pypi.org/project/modelscope/1.36.0/)

### modelscope 1.35.0 breaking changes

modelscope 1.35.0, released March 14, 2026: 3 breaking changes.

- **Renamed**  

The original swift Docker image is now named latest, and the original CPU and GPU images are replaced by old versions. Users who pull the previous image names should switch to the new names. [github.com](https://github.com/modelscope/modelscope/releases/tag/v1.35.0)
- **Signature changed** `modelscope.HubApi.create_commit`  

Was def create_commit(self, repo_id: str, operations: Iterable\[CommitOperation\], \*, commit_message: str, commit_description: Optional\[str\] = None, token: str = None, repo_type: Optional\[str\] = REPO_TYPE_MODEL, revision: Optional\[str\] =... [pypi.org](https://pypi.org/project/modelscope/1.35.0/)

And 1 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
