modelscope breaking changes
Updated December 4, 2026
On this page
Latest version 1.40.3, released November 9, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
modelscope 1.40.3 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 - 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 - 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 - Behavior changed
update_local_model
Models already under the legacy model root or the modelscope-hub cache root are no longer copied. github.com - Configuration changed
The package now needs modelscope-hub>=0.7.0 installed, so upgrade that dependency alongside modelscope. github.com
modelscope 1.40.1 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 - 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
modelscope 1.40.0 breaking changes
- 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
modelscope 1.39.0 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 - 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
modelscope 1.38.0 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 - 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 - 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 - Signature changed
modelscope.HubApi
Was class HubApi; now class HubApi(_LegacyHubApi). pypi.org - 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 - 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 - 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 - 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 - 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 - 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
And 2 more in this version. Sign up to see every change
modelscope 1.37.1 breaking changes
- 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
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
modelscope 1.37.0 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 - 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
And 1 more in this version.
modelscope 1.36.3 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 - 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
And 4 more in this version.
modelscope 1.36.1 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 - 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
modelscope 1.36.0 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 - 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
modelscope 1.35.0 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 - 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
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, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.