modelscope模型权重sum256本地校验工具

各种教程·supo的文章 · 昨天 · 13 人浏览

为 ModelScope 模型仓库中的所有文件获取 SHA256 校验和,并生成与 sha256sum -c 兼容的文件。支持 CLI 和 HTTP API。

github

仓库地址: https://github.com/serfo/modelscope-checksum

git clone https://github.com/serfo/modelscope-checksum.git

CLI

#支持三种格式
python modelscope_checksum.py Eco-Tech/DeepSeek-V4-Flash-w8a8-mtp
python modelscope_checksum.py https://www.modelscope.cn/models/Eco-Tech/DeepSeek-V4-Flash-w8a8-mtp
python modelscope_checksum.py https://www.modelscope.cn/models/Eco-Tech/DeepSeek-V4-Flash-w8a8-mtp/files

输出:当前目录下的 <model_name>.sha256 文件。

API Server

依赖安装

pip install -r requirements.txt

运行

#运行
python server.py                        # listens on 0.0.0.0:8090

服务器端测试

# 自动
curl -OJ 'http://<server>:8090/checksum?url=Eco-Tech/DeepSeek-V4-Flash-w8a8-mtp'

# 全路径
curl -OJ 'http://<server>:8090/checksum?url=https://www.modelscope.cn/models/Eco-Tech/DeepSeek-V4-Flash-w8a8-mtp'

在线使用-无需部署

#将ZhipuAI/GLM-5替换为你的模型
curl -OJ 'http://model.supome.cn:8090/checksum?url=ZhipuAI/GLM-5'

验证已下载的模型文件

以下所有方法均在包含已下载模型文件的目录中执行。

sha256sum

sha256sum -c DeepSeek-V4-Flash-w8a8-mtp.sha256

联系方式

若在线使用失效,可以联系admin@supome.cn
ai 模型 modelscope sum256
Theme Jasmine by Kent Liao