Skip to content

A CLI tool for downloading models from Modelscope

Notifications You must be signed in to change notification settings

xgpxg/modelscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 download -m <MODEL_ID> -s <SAVE_DIR>

img.png

Commands

Usage: modelscope <COMMAND>

Commands:
  download  Download model
  login     Login to modelscope use your token
  logout    Logout
  list      List all local models
  help      Print this message or the help of the given subcommand(s)

Options:
  -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(())
}

About

A CLI tool for downloading models from Modelscope

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages