From model-download
Download models from ModelScope or HuggingFace to local storage. Use when the user wants to get a model onto disk before running inference, quantization, or evaluation. Trigger whenever a model path is needed and the model is not yet on disk.
How this skill is triggered — by the user, by Claude, or both
Slash command
/model-download:model-download nonenoneThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Download models to local storage before running inference, quantization, or evaluation. Always use a local path — never pass a HuggingFace repo ID or ModelScope model ID directly to vLLM or msmodelslim.
Download models to local storage before running inference, quantization, or evaluation. Always use a local path — never pass a HuggingFace repo ID or ModelScope model ID directly to vLLM or msmodelslim.
Mandatory Rule: Before starting any download (ModelScope or HuggingFace), you MUST ask the user:
"Where do you want to store the model? (e.g.
/data/modelsor/home/user/models)"
Do not proceed until you have a confirmed $MODEL_DIR. All models MUST be stored under this directory: $MODEL_DIR/<model-name>/.
ModelScope has better connectivity in mainland China and mirrors most major open-source models.
Before checking, confirm the storage path with the user if not already done.
pip show modelscope
If not installed:
pip install modelscope
modelscope download \
--model <MODELSCOPE_MODEL_ID> \
--local_dir "$MODEL_DIR/<model-name>"
Finding the ModelScope model ID: It follows the pattern <organization>/<model-name>, e.g.:
Qwen/Qwen3-32Bdeepseek-ai/DeepSeek-R1ZhipuAI/glm-4-9b-chatIf the user provides only a HuggingFace model ID, search for the equivalent on ModelScope — the organization and model name are usually identical or very close.
ls "$MODEL_DIR/<model-name>"
# Must contain: config.json + tokenizer files + weight files (*.safetensors or *.bin)
Use this only if ModelScope does not have the model or the download fails.
pip show huggingface_hub
If not installed:
pip install huggingface_hub
Always set the HuggingFace mirror first to ensure connectivity and speed.
export HF_ENDPOINT=https://hf-mirror.com
# Basic download
huggingface-cli download \
<HF_MODEL_ID> \
--local-dir "$MODEL_DIR/<model-name>" \
--local-dir-use-symlinks False
# If the model requires login (e.g., Llama-2), provide a token:
huggingface-cli download \
--token <YOUR_HF_TOKEN> \
--resume-download <HF_MODEL_ID> \
--local-dir "$MODEL_DIR/<model-name>" \
--local-dir-use-symlinks False
If the download is interrupted, rerun the same command — huggingface-cli resumes from where it left off.
Once the download is complete, confirm the exact local path with the user and record it as $MODEL_PATH:
# Confirm the path is correct and weights are present
ls "$MODEL_DIR/<model-name>"/*.safetensors 2>/dev/null || ls "$MODEL_DIR/<model-name>"/*.bin
From this point on, use $MODEL_PATH = "$MODEL_DIR/<model-name>" everywhere — in vLLM launch commands, msmodelslim quantization, and AISBench evaluation configs. Never substitute the online model ID.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub starmountain1997/g-claude --plugin model-download