Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: modelscope/modelscope

v1.29.2

02 Sep 09:55
Compare
Choose a tag to compare

English Version

  1. Support repo_info support for retrieving repository-level metadata (datasets, models) and list all commit info
  2. Fix some bugs

中文版本

  1. 支持获取repo级别的详细信息,以及获取所有的提交记录
  2. 修复了一些bug

What's Changed

New Contributors

Full Changelog: v1.29.1...v1.29.2

V1.29.1 release note

01 Sep 05:39
Compare
Choose a tag to compare

English Version

  1. Support arg parser when python version >= 3.12, thanks to the contribution of @yaqiangsun
  2. Fix some bugs, e.g. VLLM cannot download from ModelScope of deepseek/internvl/internlm models

中文版本

  1. 兼容python>=3.12时的arg parser,感谢@yaqiangsun的贡献
  2. 修复了一些问题,例如VLLM无法从ModelScope下载deepseek和浦江实验室的模型

What's Changed

New Contributors

Full Changelog: v1.29.0...v1.29.1

V1.29.0 Release Note

14 Aug 09:33
Compare
Choose a tag to compare

English Version

New Features

  1. Added support for AIGC model creation interface:
modelscope create <repo_id> --token <token> --visibility <public/private/internal> --aigc --model_path <model_path> --aigc_type <Checkpoint/LoRA/VAE> --base_model_type <base_model_type>
  1. Added support for using ModelScope MCP server. Users can interface with MCP plaza through the following method:
from modelscope.hub.mcp_api import MCPApi
server = MCPApi().get_mcp_server('@modelcontextprotocol/fetch')
...
  1. Added support for repository creation command:
modelscope create owner/repo_name --token ms-xxx --repo_type model --visibility private --chinese_name 测试模型1 --license MIT

Bug Fixes

  1. Fixed some security issues
  2. Fixed issues where some models could not run on higher Python versions. These models will now throw exceptions directly, guiding users to use lower Python versions
  3. Added additional trust_remote_code validation for models that need to run external code or use torch.load during loading

中文版本

新功能

  1. 支持了AIGC模型的创建接口:
modelscope create <repo_id> --token <token> --visibility <public/private/internal> --aigc --model_path <model_path> --aigc_type <Checkpoint/LoRA/VAE> --base_model_type <base_model_type>
  1. 增加了对ModelScope MCP server的使用支持,用户可以通过多个接口与MCP广场交互,例如:
from modelscope.hub.mcp_api import MCPApi
server = MCPApi().get_mcp_server('@modelcontextprotocol/fetch')
...
...
  1. 支持了创建repo的命令:
modelscope create owner/repo_name --token ms-xxx --repo_type model --visibility private --chinese_name 测试模型1 --license MIT

Bug修复

  1. 修复了一些安全问题
  2. 修复了部分模型在高版本python下无法运行的问题,这些模型会直接抛出异常,指引用户使用更低版本的python
  3. 对部分模型在加载时需要运行外部code或者使用torch.load的情况增加了额外的trust_remote_code判断

What's Changed

New Contributors

Full Changelog: v1.28.2...v1.29.0

v1.28.2

06 Aug 07:42
Compare
Choose a tag to compare

V1.28.2 Release Note

English Version

  1. Hotfix datasets features for datasets >=3.0.0, <=3.6.0 #1447

中文版本

  1. 修复datasets features兼容性问题 #1447

Full Changelog: v1.28.1...v1.28.2

v1.28.1

25 Jul 07:43
Compare
Choose a tag to compare

V1.28.1 Release Note

English Version

  1. Fix use_cookies for get_model_files in delete_files: #1424
  2. Add MODELSCOPE_CREDENTIALS_PATH env for user-defined authorization path: #1423
  3. Skip UT TextToSpeechSambertHifigan16kPipelineTest: #1420
  4. Add weak file lock for snapshot_download: #1417
  5. Fix RCE issue for plugins (add trust_remote_code) for from_pretrained function: #1415
  6. Fix get_dataset_infos to avoid list all pages for dataset: #1414

中文版本

  1. 修复delete_files函数中的get_model_files调用,当需要鉴权的场景,需要明确传入use_cookies参数 : #1424
  2. 增加环境变量MODELSCOPE_CREDENTIALS_PATH,支持用户自定义配置本地授权的存储路径(cookies、session等信息): #1423
  3. 跳过测试用例TextToSpeechSambertHifigan16kPipelineTest(用例失效): #1420
  4. snapshot_download中增加weak file lock: #1417
  5. from_pretrained中,增加 trust_remote_code`参数,避免插件RCE问题: #1415
  6. 修复get_dataset_infos函数中的分页问题:#1414

What's Changed

Full Changelog: v1.28.0...v1.28.1

v1.28.0

09 Jul 06:25
Compare
Choose a tag to compare

English Version

  • Added Hub download progress callback: Supports custom callback functions for download progress updates. #1380
  • Added environment variable configuration: Introduced the SIZE_THRESHOLD_TO_ENFORCE_LFS environment variable to configure the file size threshold for enforcing LFS usage. #1383
  • Added wildcard batch deletion: Supports batch deletion of files in model or dataset repositories using wildcards. #1384
  • Optimized VAE processing: Improved VAE chunking workflow and reduced VRAM consumption. #1378
  • Added Hub upload environment variables: Added environment variable configurations for Hub uploads. #1389
  • Compatibility improvement: Added compatibility support for datasets library version 3.6. #1393
  • Bug fix: Resolved an issue where AutoProcessor and AutoTokenizer might download incomplete files when using from_pretrained. #1398

中文版本

  • 新增 Hub 下载进度回调支持: 支持自定义下载进度更新回调函数。 #1380
  • 新增环境变量配置: 添加 SIZE_THRESHOLD_TO_ENFORCE_LFS 环境变量,用于配置强制使用 LFS 的文件大小阈值。 #1383
  • 新增通配符批量删除功能: 支持使用通配符批量删除模型或数据集仓库中的文件。 #1384
  • 优化 VAE 处理: 优化 VAE 分块处理流程并减少显存占用。#1378
  • 新增 Hub 上传环境变量配置: 增加 Hub 上传相关的环境变量配置选项。 #1389
  • 兼容性提升: 兼容 datasets 库 3.6 版本。 #1393
  • 问题修复: 修复 AutoProcessor 和 AutoTokenizer 使用 from_pretrained 方法时可能出现的文件下载不完整问题。#1398

What's Changed

New Contributors

Full Changelog: v1.27.1...v1.28.0

v1.27.1

20 Jun 09:47
Compare
Choose a tag to compare

English Version

  1. Set size_threshold_to_enforce_lfs to 1MB #1375
  2. Limit MODELSCOPE_DOWNLOAD_PARALLELS to a maximum of 16 #1371
  3. Fix some bugs in HubApi #1369

中文版本

  1. 设置 size_threshold_to_enforce_lfs 为 1MB #1375
  2. 将 MODELSCOPE_DOWNLOAD_PARALLELS 最大值限制为 16 #1371
  3. 修复 HubApi 中的一些 bug #1369

Full Changelog: v1.27.0...v1.27.1

v1.27.0

12 Jun 08:42
Compare
Choose a tag to compare

image

English Version

  • Added an ASCII logo to the ModelScope command-line interface 😄.
  • Increased the maximum number of supported files per repository to 50,000.
  • Added requirements.txt to legacy model repositories to ensure backward compatibility, automatically installing required older versions of dependencies (transformers, huggingface_hub, diffusers) for proper model execution.
  • Added ACoderPassBy/HifiSSR and ACoderPassBy/UnetVC model inference code with runnable README examples for voice cloning and speech enhancement tasks. #1208
  • Enabled CLI upload to create repository directly if non-exists, streamlining model publishing workflow. #1351
  • Fixed GPU memory leak issue in speaker_verification_res2net pipeline during multiple invocations. #1349
  • Introduced scan_cache_dir utility to visualize local model cache status and optimize storage management. #1348
  • Enhanced security framework with remote code execution verification mechanism to address vulnerability #1331, allowing explicit trust control for third-party model code via trust_remote_code parameter. #1333
  • Optimized intra-cloud acceleration for model downloading with adaptive network protocol selection. #1315
  • Implemented granular code security controls for importlib usage scenarios with precise file list filtering. #1323

中文版本

  • ModelScope 命令行运行环境添加ASCII logo 😄。
  • 放松单repo支持文件数到5w。
  • 为保障一批早期模型正常运行,在这些模型仓库中新增requirements.txt文件,运行时将自动安装适配的旧版依赖库(transformers、huggingface_hub、diffusers等)以解决兼容性问题。
  • 新增ACoderPassBy/HifiSSR和ACoderPassBy/UnetVC模型推理代码,提供可运行的README示例代码,支持语音克隆与语音增强任务 #1208
  • 支持CLI命令行上传时自动创建目标仓库(若不存在),优化模型发布流程 #1351
  • 修复speaker_verification_res2net流水线多次调用导致的显存泄露问题 #1349
  • 新增本地缓存目录扫描功能(scan_cache_dir),可视化展示模型缓存状态并优化存储管理 #1348
  • 修复安全漏洞(CVE-2023-1331),通过trust_remote_code参数实现第三方模型代码的分级信任控制 #1333
  • 优化云上环境模型下载自适应全链路加速功能,支持智能网络协议选择 #1315
  • 细化importlib使用场景的代码安全控制,实现模型下载过程的精准文件列表过滤 #1323

What's Changed

New Contributors

Full Changelog: v1.26.0...v1.27.0

v1.26.0

19 May 09:14
Compare
Choose a tag to compare

English Version

  • Provided adaptive full-chain acceleration for model downloading in cloud environments. #1315
  • Refined code security controls for importlib usage scenarios and supported more precise file list control during model downloading. #1323
  • Added new Ollama templates, including cogito, mistral-small3.1, deepcoder, granite3.3, etc. #1318

中文版本

  • 对于云上环境,提供自适应的模型下载全链路加速 #1315
  • 对于importlib使用场景上细化的代码安全控制,并支持模型下载中更精准的文件列表控制 #1323
  • 添加新的ollama template,包括cogito,mistral-small3.1,deepcoder,granite3.3等 #1318

What's Changed

New Contributors

Full Changelog: v1.25.0...v1.26.0

v1.25.0

16 Apr 02:52
Compare
Choose a tag to compare

V1.25.0 Release Note

English Version

  1. Added hub APIs such as create_repo and delete_repo. #1282
  2. Added swift mirrors. #1299

中文版本

  1. 新增create_repo、delete_repo等hub API #1282
  2. 新增swift镜像 #1299

What's Changed

New Contributors

Full Changelog: v1.24.1...v1.25.0