modelscope

Crates.iomodelscope
lib.rsmodelscope
version0.1.0
created_at2025-09-11 10:07:52.17787+00
updated_at2025-09-13 09:37:29.283404+00
descriptionA command-line interface tool for downloading models from Modelscope, which can also be used as a library
homepage
repositoryhttps://github.com/xgpxg/modelscope
max_upload_size
id1833615
size112,637
(xgpxg)

documentation

https://docs.rs/modelscope

README

modelscope

δΈ­ζ–‡ | English

Release Crates.io

A CLI tool for downloading models from Modelscope.

Features:

  • ⬇️ Download models from Modelscope
  • 🫏 Show progress bar
  • ⚑ Multi-threaded download
  • πŸ”— Resume interrupted downloads

Supported OS:

  • Windows
  • macOS
  • Linux

Installation

You can install it in one of the following ways:

  • Install using Cargo
cargo install modelscope
  • Use precompiled package Download the binary package for your operating system from the release page and extract it.

Usage

modelscope -m <MODEL_ID> -s <SAVE_DIR>

img.png

Commands

Usage: modelscope [OPTIONS] --model-id <MODEL_ID>

Options:
  -m, --model-id <MODEL_ID>  model id
  -s, --save-dir <SAVE_DIR>  save dir, if not set, use current dir, will create if not exists [default: ]
  -h, --help                 Print help
  -V, --version              Print version

Library

Add crate:

cargo add modelscope

Example:

use modelscope::ModelScope;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let model_id = "Qwen/Qwen3-0.6B";
    let save_dir = "./data";
    ModelScope::download(model_id, save_dir).await?;

    Ok(())
}
Commit count: 14

cargo fmt