Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Linaqrufv1.4.0MIT
Cloud-to-cloud ML repo migration via Modal. Transfer models and datasets between HuggingFace and ModelScope with parallel chunked transfers (up to 100 containers), SHA256 verification, and automatic git fallback. No local downloads.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
huggingface, modelscope, modal, migration, model-transfer, cloud-compute, ml-ops, parallel ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Cloud-to-cloud ML repo migration via Modal. Transfer models and datasets between HuggingFace and ModelScope without downloading anything locally.
Your machine sends the command. Modal containers do all the work.
Your Machine Modal Container (ephemeral) Platforms
┌──────────┐ modal run ┌──────────────────────────┐ API calls ┌──────────┐
│ Terminal │ ─────────> │ │ <─────────> │ HF Hub │
│ or Claude │ │ Download from source │ └──────────┘
│ Code │ │ Upload to destination │ API calls ┌──────────┐
└──────────┘ │ Verify SHA256 hashes │ <─────────> │ MS Hub │
└──────────────────────────┘ └──────────┘
↕ spins up, transfers, shuts down
No files touch your machine. Modal provisions a container, downloads from the source platform's API, uploads to the destination, verifies SHA256 integrity, and destroys the container. For large repos, it fans out to up to 100 parallel containers.
git clone + git lfs pullpip install modal
modal token new
cp .env.example .env
# Fill in your tokens, then:
# bash/zsh
export $(cat .env | xargs)
# PowerShell
Get-Content .env | ForEach-Object { if ($_ -match '^([^#].+?)=(.*)$') { [Environment]::SetEnvironmentVariable($matches[1], $matches[2]) } }
| Variable | Where to Get It |
|---|---|
HF_TOKEN | https://huggingface.co/settings/tokens (read + write) |
MODAL_TOKEN_ID | modal token new or https://modal.com/settings |
MODAL_TOKEN_SECRET | Same as above |
MODELSCOPE_TOKEN | https://modelscope.ai/my/myaccesstoken |
MODELSCOPE_DOMAIN | Optional. modelscope.ai for international (default: modelscope.cn) |
python scripts/validate_tokens.py
modal run scripts/modal_migrate.py::hello_world
If this prints SDK versions, you're good to go.
# HuggingFace → ModelScope (auto-detect type)
modal run scripts/modal_migrate.py::main --source "username/my-model" --to ms
# ModelScope → HuggingFace
modal run scripts/modal_migrate.py::main --source "damo/text-to-video" --to hf --repo-type model
# Custom destination name
modal run scripts/modal_migrate.py::main --source "username/my-model" --to ms --dest "OrgName/model-v2"
# Dataset
modal run scripts/modal_migrate.py::main --source "username/my-dataset" --to ms --repo-type dataset
Windows: Prefix commands with
PYTHONIOENCODING=utf-8to avoid Unicode errors from Modal CLI.
For repos over ~10 GB, parallel mode splits the transfer across multiple containers. Each container clones the repo structure, downloads only its assigned files, and uploads them independently.
# Parallel with default 20 GB chunks
modal run scripts/modal_migrate.py::main --source "org/large-dataset" --to ms --parallel
# Custom chunk size (in GB)
modal run scripts/modal_migrate.py::main --source "org/large-dataset" --to ms --parallel --chunk-size 30
# Parallel dataset
modal run scripts/modal_migrate.py::main --source "org/my-dataset" --to ms --repo-type dataset --parallel
Chunk size auto-adjusts upward if the repo would exceed 100 containers. Parallel mode is currently HuggingFace → ModelScope only.
Each repo gets its own container, running in parallel via starmap(). Repos that already exist on the destination are automatically skipped.
modal run scripts/modal_migrate.py::batch \
--source "user/model1,user/model2,user/model3" \
--to ms --repo-type model
Add --detach before the script path. The migration continues in Modal's cloud even after you close your terminal:
modal run --detach scripts/modal_migrate.py::main \
--source "username/my-model" --to ms
Monitor detached runs:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (linaqruf/hf2ms) — no native marketplace selected
npx claudepluginhub p/linaqruf-hf2msPlugins from other owners that cover similar ground