Download Latest Version v1.40.3 source code.zip (9.2 MB)
Home / v1.40.3
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-11-09 1.6 kB
v1.40.3 source code.tar.gz 2026-11-09 6.9 MB
v1.40.3 source code.zip 2026-11-09 9.2 MB
Totals: 3 Items   16.0 MB 1

Enhance

  • Requires modelscope-hub>=0.7.0.
  • New modelscope.utils.file_utils.get_hub_cache_root(); modelscope.hub.cache_manager re-exports get_cache_root and resolve_cached_snapshot. MS_CACHE_HOME is normalised to an absolute path when bridged into the hub config.

Fix

  • model_file_download(..., local_files_only=True) no longer calls the API to resolve the default revision, so offline downloads from cache work without network access or credentials.
  • ms clear-cache lists every resolved target before deleting and delegates to modelscope-hub's scoped cache APIs; cache deletion via FileSystemCache goes through the same validated removal, refusing empty identifiers, path traversal, out-of-root targets and symlinked paths.
  • update_local_model no longer copies models that already live under the legacy model root or the modelscope-hub cache root.
  • Hugging Face patch: hf_hub_download translates missing files to EntryNotFoundError and cache misses to LocalEntryNotFoundError, so callers relying on Hugging Face exception types keep working.
  • modelscope.hub.snapshot_download exports InvalidParameter again, preserving the shim module's exception contract.

Docs

  • Docstrings for the legacy cache-path helpers now state that they describe the legacy layout only and point to get_hub_cache_root(), snapshot_download() and resolve_cached_snapshot().

What's Changed

Full Changelog: https://github.com/modelscope/modelscope/compare/v1.40.2...v1.40.3

Source: README.md, updated 2026-11-09