| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-07-01 | 7.0 kB | |
| v1.38.0 source code.tar.gz | 2026-07-01 | 6.8 MB | |
| v1.38.0 source code.zip | 2026-07-01 | 9.1 MB | |
| Totals: 3 Items | 15.9 MB | 2 | |
中文版
重构
- 重构 Hub 与 CLI 模块,将核心 Hub 能力、下载、上传、缓存、Git 操作以及 CLI 入口迁移为基于
modelscope-hub的兼容层,并通过插件机制保留现有命令;同时更新modelscope-hub依赖。更多modelscope-hub版本信息可参考 modelscope-hub [releases](https://github.com/modelscope/modelscope_hub/releases)。(#1732、#1733)
特性
- 新增 ModelScope Studio 支持,提供 Studio 仓库创建、下载以及
modelscope studioCLI,可用于部署、停止、查看日志、更新设置和管理 secret。(#1727、#1742) - 新增私有仓库
gated_mode支持,用户可在创建模型/数据集仓库或修改仓库可见性时启用申请制下载。(#1730) - 新增适用于 ms-swift 4.2.x 的 MetaX Dockerfile,并更新 Ascend NPU Dockerfile 与构建文档,完善异构硬件镜像支持。(#1734、#1736)
修复
- 优化
trust_remote_code与可信 owner 识别逻辑,修复官方仓库、本地目录和缓存路径下的授权判断与参数传递问题。(#1720、#1721、#1740) - 修复多处安全风险,包括未授权加载远程 Python 配置、执行远程脚本、不安全
eval()解析,以及可信 owner 缓存路径解析绕过问题。(#1737、#1742) - 修复
create_model_tag在网络抖动或服务端耗时时容易超时的问题,新增可配置超时、重试和退避机制。(#1723) - 修复
clear-cache在单模型缓存以及自定义MODELSCOPE_CACHE场景下的路径解析问题。(#1724) - 修复 HuggingFace Hub patch 恢复逻辑及 kernels 相关测试参数缺失问题,并确保
patch_context()在异常场景下也能正确恢复 patch 状态。(#1729、#1743)
English Version
Refactoring
- Refactored Hub and CLI modules by moving core Hub capabilities, download, upload, cache, Git operations, and CLI entrypoints onto
modelscope-hubcompatibility layers, while preserving existing commands through plugins; also updated themodelscope-hubdependency. See modelscope-hub releases for more version details. (#1732, [#1733])
Features
- Added ModelScope Studio support, including Studio repository creation, downloads, and the
modelscope studioCLI for deploy, stop, logs, settings updates, and secret management. (#1727, [#1742]) - Added private-repository
gated_modesupport, allowing users to enable application-based downloads when creating model/dataset repositories or updating repository visibility. (#1730) - Added MetaX Dockerfiles for ms-swift 4.2.x and updated the Ascend NPU Dockerfile and build documentation, improving heterogeneous hardware image support. (#1734, [#1736])
Bug Fixes
- Improved
trust_remote_codeand trusted-owner detection, fixing authorization checks and parameter propagation for official repositories, local directories, and cached model paths. (#1720, [#1721], [#1740]) - Fixed multiple security risks, including unauthorized remote Python config loading, remote script execution, unsafe
eval()parsing, and trusted-owner cache path spoofing. (#1737, [#1742]) - Fixed
create_model_tagtimeout issues under network instability or long server-side operations by adding configurable timeout, retry, and backoff handling. (#1723) - Fixed
clear-cachepath resolution for single-model cache cleanup and customMODELSCOPE_CACHElayouts. (#1724) - Fixed HuggingFace Hub patch restoration and missing kernels test parameters, and ensured
patch_context()restores patch state even when exceptions occur. (#1729, [#1743])
Bug Fixes
- Improved
trust_remote_codeand trusted-owner detection, fixing authorization checks and parameter propagation for official repositories, local directories, and cached model paths. (#1720, [#1721], [#1740]) - Fixed multiple security risks, including unauthorized remote Python config loading, remote script execution, unsafe
eval()parsing, and trusted-owner cache path spoofing. (#1737, [#1742]) - Fixed
create_model_tagtimeout issues under network instability or long server-side operations by adding configurable timeout, retry, and backoff handling. (#1723) - Fixed
clear-cachepath resolution for single-model cache cleanup and customMODELSCOPE_CACHElayouts. (#1724) - Fixed HuggingFace Hub patch restoration and missing kernels test parameters, and ensured
patch_context()restores patch state even when exceptions occur. (#1729, [#1743])
What's Changed
- Add whitelist to iic and damo by @tastelikefeet in https://github.com/modelscope/modelscope/pull/1720
- Fix adaseq trust_remote_code by @tastelikefeet in https://github.com/modelscope/modelscope/pull/1721
- Fix timeout for create_model_tag by @wangxingjun778 in https://github.com/modelscope/modelscope/pull/1723
- Fix bug: 1. patch_context cannot revert classmethod 2. kernels testcase miss trust_remote_code and revision by @tastelikefeet in https://github.com/modelscope/modelscope/pull/1729
- 🐛 fix(clearcache): fix single model cache path by @AAAkater in https://github.com/modelscope/modelscope/pull/1724
- fix: quote version of
timmspecs in Dockerfile.ubuntu by @Seas0 in https://github.com/modelscope/modelscope/pull/1728 - Add
gated_modefor create repo by @wangxingjun778 in https://github.com/modelscope/modelscope/pull/1730 - [Feature] Add studio module by @wangxingjun778 in https://github.com/modelscope/modelscope/pull/1727
- [Feat & Refactor] Refactor hub and CLI modules by @wangxingjun778 in https://github.com/modelscope/modelscope/pull/1732
- [Update] Update modelscope-hub requirement by @wangxingjun778 in https://github.com/modelscope/modelscope/pull/1733
- add metax dockerfile and its requirements for ms-swift 4.2.x by @WendaDeng in https://github.com/modelscope/modelscope/pull/1734
- Fix some security issues by @tastelikefeet in https://github.com/modelscope/modelscope/pull/1737
- Update npu dockerfile by @addsubmuldiv in https://github.com/modelscope/modelscope/pull/1736
- Fix local dir trust_remote_code by @tastelikefeet in https://github.com/modelscope/modelscope/pull/1740
- [Fix] Fix studio cli by @wangxingjun778 in https://github.com/modelscope/modelscope/pull/1742
- fix: patch_context() use try/finally to ensure unpatch on exception by @wangxingjun778 in https://github.com/modelscope/modelscope/pull/1743
New Contributors
- @AAAkater made their first contribution in https://github.com/modelscope/modelscope/pull/1724
- @Seas0 made their first contribution in https://github.com/modelscope/modelscope/pull/1728
Full Changelog: https://github.com/modelscope/modelscope/compare/v1.37.1...v1.38.0