Modelscope

Latest version: v1.24.1

Safety actively analyzes 722581 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

1.24.1

English Version
1. Add login for HFUtilTest 1288
2. Fix load dataset from huggingface hub 1275
3. Fix pipeline builder 1280
4. Lazy import hf modules 1283
5. Fix windows path 1286


中文版本
1. 为HFUtilTest添加登录功能 1288
2. 修复从huggingface hub加载数据集 1275
3. 修复pipeline构建器 1280
4. 延迟导入hf模块 1283
5. 修复windows路径 1286


**Full Changelog**: https://github.com/modelscope/modelscope/compare/v1.24.0...v1.24.1

1.24.0

English Version
1. Support python3.11 officially.
2. Add env variable `MODELSCOPE_PREFER_AI_SITE` to specify the endpoint to download models or datasets from. 1248
3. Add ollama templates: `command-r7b-arabic、granite3.2-vision、phi4-mini、granite3.2、r1-1776、deepscaler、openthinker template` 1247
4. Fix import issue 1253
5. Add snapshot_download headers for CI-TEST 1259
6. Fix external_engine_for_llm_checker 1260
7. Add more diffusers imports 1265
8. Fix downloading with specified class name 1270


中文版本
1. 支持python3.11
2. 添加环境变量`MODELSCOPE_PREFER_AI_SITE`,用于指定优先从哪个站点下载模型或数据集。1248
3. 添加ollama模板:`command-r7b-arabic、granite3.2-vision、phi4-mini、granite3.2、r1-1776、deepscaler、openthinker template` 1247
4. 修复导入问题 1253
5. 为CI-TEST添加snapshot_download headers 1259
6. 修复external_engine_for_llm_checker 1260
7. 添加更多的diffusers导入 1265
8. 修复使用指定类名下载 1270


**Full Changelog**: https://github.com/modelscope/modelscope/compare/v1.23.2...v1.24.0

1.23.2

1. Hotfix commit info for uploading in the notebook env. 1244

1.23.0

English Version
1. **[Breaking Change]** Standardized the model download path from the default `~/.cache/modelscope/hub/<group-id>/<model-id>` to `~/.cache/modelscope/hub/models/<group-id>/<model-id>`. Additionally, in the official Docker image, the `MODELSCOPE_CACHE` has changed from `/mnt/workspace/.cache/modelscope` to `/mnt/workspace/.cache/modelscope/hub`. To prevent duplicate model downloads, we will automatically migrate models from the previous path to the new path.
2. The command line supports multiple filtering criteria for uploading and downloading models. Additionally, model uploads are pre-validated on the library side to prevent errors during the upload process.
3. Added Ollama support for models such as DeepSeek, olmo2, command-r7b, and others.
4. Improved support for automatically loading Hugging Face (HF) models and Pipelines. Currently, you can import various Auto components from ModelScope into Transformers, as well as `PeftModel` components from PEFT and `Pipeline` components from Diffusers. Added monkey patching for `huggingface_hub` and the `from_pretrained`-like method from `transformers` and `peft` to facilitate developers in using ModelScope to download and upload models. The patch for Hugging Face components is not enabled by default; developers need to manually enable it by using:

python
from modelscope.utils.hf_util.patcher import patch_hub
patch_hub()

or a context version:
python
from modelscope.utils.hf_util.patcher import patch_context
with patch_context():
do something


5. **[Break Change]** Remove `easyrobust` from dependencies to upgrade the version of `timm`。If user want to use models related to `easyrobust`,please manullay install it by: `pip install easyrobust`

中文版本
1. **[Break Change]** 标准化了模型下载路径,从默认的`~/.cache/modelscope/hub/<group-id>/<model-id>`变为`~/.cache/modelscope/hub/**models**/<group-id>/<model-id>`,同时MODELSCOPE_CACHE在官方docker镜像中从`/mnt/workspace/.cache/modelscope`变为`/mnt/workspace/.cache/modelscope/hub`。为了防止模型重复下载,我们会自动将前版本路径的模型迁移到新的路径上
2. 命令行进行模型的上传/下载支持多重过滤条件。另外,模型上传在library侧进行提前校验,防止上传过程中出现错误
3. 增加了DeepSeek、olmo2、command-r7b等模型的ollama支持
4. 对HF的模型和Pipeline自动加载有了更好的支持。目前可以从`modelscope`中 `import transformers`的各类Auto组件,以及`peft`的PeftModel组件和`diffusers`的Pipeline组件。增加了对`huggingface_hub`和`transformers`和`peft`的`from_pretrained`等模型下载方法的monkey patch,方便开发者使用魔搭下载和上传模型。对`huggingface`组件的patch默认不会开启,开发者需要通过如下方式手动开启使用:

python
from modelscope.utils.hf_util.patcher import patch_hub
patch_hub()

or a context version:
python
from modelscope.utils.hf_util.patcher import patch_context
with patch_context():
do something

6. **[Break Change]** 移除了`easyrobust`依赖,以便于升级timm依赖。如果使用easyrobust相关的模型,请手动安装该依赖:`pip install easyrobust`


**Full Changelog**: https://github.com/modelscope/modelscope/compare/v1.22.3...v1.23.0

What's Changed
* standardize download directory for models/datasets by yingdachen in https://github.com/modelscope/modelscope/pull/1197
* feat: new ollama template by suluyana in https://github.com/modelscope/modelscope/pull/1199
* Add file size check in upload_folder by wangxingjun778 in https://github.com/modelscope/modelscope/pull/1198
* clean directory structure by yingdachen in https://github.com/modelscope/modelscope/pull/1201
* update upload progress by wangxingjun778 in https://github.com/modelscope/modelscope/pull/1203
* remove MODELSCOPE_SHOW_INDIVIDUAL_PROGRESS_THRESHOLD by wangxingjun778 in https://github.com/modelscope/modelscope/pull/1206
* Update upload func by wangxingjun778 in https://github.com/modelscope/modelscope/pull/1204
* Add more patches for hf by tastelikefeet in https://github.com/modelscope/modelscope/pull/1160
* clone and lint 1205 by tastelikefeet in https://github.com/modelscope/modelscope/pull/1209

1.22.3

English Version
1. Fix cookies issue due to cloud firewall token expired 1193
2. Fix file exists of sub folder 1192


中文版本
1. 修复云端防火墙token过期策略导致的本地cookies问题 1193
2. 修复子文件夹存在文件的问题 1192


**Full Changelog**: https://github.com/modelscope/modelscope/compare/v1.22.2...v1.22.3

1.22.2

English Version
1. Add file name for uploading progress bar 1186
2. Fix `commit failed` issue for some cases
3. Fix upload login issue for notebook env.

中文版本
1. 为上传进度条添加文件名 1186
2. 修复某些情况下的`commit failed`问题
3. 修复notebook环境下的上传登录问题

Page 1 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.