
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
modelhubxc-tool
Advanced tools
A command-line tool for downloading models from ModelScope and Hugging Face platforms
一个用于从 ModelScope 和 Hugging Face 等平台下载模型的命令行工具。
modelhubxc-tool 是一个命令行工具,旨在简化从 ModelScope 和 Hugging Face 等模型平台下载模型的过程。它支持从多个平台下载模型,并提供了便捷的查询功能来获取模型信息。
使用 pip 安装:
pip install modelhubxc-tool
从 ModelScope 下载模型:
modelhubxc-tool download --source modelscope owner/model-name
从 Hugging Face 下载模型:
modelhubxc-tool download --source huggingface owner/model-name
查询模型的详细信息:
modelhubxc-tool query owner/model-name
通过 CSV 文件批量下载模型,CSV 文件格式为:
model-id,source
owner/model1,modelscope
owner/model2,huggingface
批量下载命令:
modelhubxc-tool download-by-csv path/to/your/csv/file.csv
查看工具版本:
modelhubxc-tool --version
工具会在 ~/.config/modelhubxc/config.yaml 创建配置文件,包含以下可配置项:
download_dir: 下载目录路径cache_dir: 缓存目录路径max_workers: 最大并发下载线程数cookie_file: Cookie 文件路径token: 认证令牌首次运行时,如果下载目录未配置,工具会提示输入下载路径。
git clone <repository-url>
cd modelhubxc-tool
pip install -e .
此项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。
FAQs
A command-line tool for downloading models from ModelScope and Hugging Face platforms
The pypi package modelhubxc-tool receives a total of 184 weekly downloads. As such, modelhubxc-tool popularity was classified as not popular.
We found that modelhubxc-tool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.