skills/modelscope.cn/modelscope-notebook-develop

modelscope-notebook-develop

Installation
SKILL.md

ModelScope Notebook Develop

Core Workflow

  1. Inventory the source tutorial

    • Locate the source notebook(s): local .ipynb, GitHub URL/repo, Colab URL, or tutorial docs.
    • Preserve official markdown/text unless the user asks for a shorter adaptation.
    • Record the official data/model sources, expected outputs, runtime, dependency versions, and any optional cells.
    • If the user has not provided enough context, briefly explain the workflow and ask for the missing notebook/source URL, target ModelScope namespace, and whether full execution is required.
  2. Audit dependencies and runtime

    • Identify Python version, CUDA/PyTorch versions, pip/conda dependencies, CLI tools, and shell commands.
    • Prefer deterministic install cells. Pin versions only when needed for compatibility; use latest official packages when the tutorial explicitly requires the latest model/version.
    • In Jupyter notebooks, install packages with %pip install <package> (not !pip or !pip install) so that the installed package is immediately available to the notebook kernel in the same cell sequence.
    • If %pip install output contains "Note: you may need to restart the kernel to use updated packages.", restart the notebook kernel immediately (via kernel.restart() in code or the notebook UI) to ensure the newly installed packages are loaded. When handing the notebook back to the user, remind them that they need to restart the kernel after running the install cells before continuing with the rest of the notebook.
    • If you encounter dependency version conflicts, CUDA/PyTorch version mismatches, or checkpoint path mapping issues, use the notebook-dependency-compatibility-fixes skill (pre-installed in ModelScope Notebook's built-in Qwen Code) for targeted fixes.
    • Add early capability checks for fragile version features, e.g. inspect function signatures or enum values before expensive training.
    • Separate warnings from blockers. GPU/CUDA warnings are not model-loading errors; parser/config errors often happen before GPU use.
Installs
1
First Seen
Oct 8, 2026