modelscope-local-vision-trainer
Skill4 starsChanged 8 months agoApache-2.0View on GitHub
Turn plain-language local vision-training requests into editable configs and launch scripts, then run them after the user fills a local config file and replies continue.
- Reads credentials
In this repository15 other files it gives its agents.
- agents/AGENTS.mdAGENTS.md
- modelscope-cliSkill
- modelscope-dataset-explorerSkill
- modelscope-datasetsSkill
- modelscope-evaluationSkill
- gradioSkill
- modelscope-jobsSkill
- modelscope-local-trainerSkill
- modelscope-mcpSkill
- modelscope-model-trainerSkill
- modelscope-paper-publisherSkill
- modelscope-tool-builderSkill
- modelscope-trackingSkill
- modelscope-vision-trainerSkill
- transformers-jsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user wants local vision training on a Linux GPU workstation or server and describes the job in natural language.
- Very specific: line 24
Run scripts/prepare_local_vision_training_workspace.py with the user's exact request text.
- Very specific: line 37
Only after the user replies continue, run bash scripts/run_local_vision_training.sh.
- Distinctive: line 46
Read the user request and infer the task, model, dataset paths, and training parameters.
- Very specific: line 49
Ask the user to review or edit configs/local.vision.required.env.
- Very specific: line 51
Only after continue, run bash scripts/run_local_vision_training.sh.
- Very specific: line 58
When task is ambiguous, default to classification
- Distinctive: line 62
Keep the generated launch script readable and editable.
- Distinctive: line 65
Prefer one process by default unless the user clearly asks for distributed local training.
- Very specific: line 73
Never skip the continue gate.
- Distinctive: line 74
Never auto-run on macOS or an unknown host.
- Distinctive: line 75
Never assume the local training entrypoint already exists without checking.
- Distinctive: line 76
Never claim built-in local execution for a task unless the configured entrypoint is present on the target machine.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ModelScope Local Vision Trainer
Use this skill when the user wants local vision training on a Linux GPU workstation or server and describes the job in natural language.
Request Style
- Accept requests such as:
Train an image classifier locally with ./data/train and ./data/val, epoch=5.我想在本地做目标检测,训练标注是 ./data/annotations/train.json,验证标注是 ./data/annotations/val.json。
- Infer missing fields where that is safe.
- Default task:
classification - Default model:
- Classification:
google/vit-base-patch16-224 - Detection:
facebook/detr-resnet-50 - Segmentation:
facebook/sam-vit-base
- Classification:
What You Must Create
Run scripts/prepare_local_vision_training_workspace.py with the user's exact request text. It must create:
configs/local.vision.training.jsonconfigs/local.vision.required.envconfigs/local.vision.train.envscripts/run_local_vision_training.sh
Execution Rule
- This skill always pauses once before execution.
- First create
configs/local.vision.required.envwith non-empty default values. - Tell the user to review or edit that file.
- Tell the user to reply with exactly
continue. - Only after the user replies
continue, runbash scripts/run_local_vision_training.sh. - On macOS or any unknown host, stop after writing the files and report that execution should happen on the intended Linux GPU host.
Primary Script
scripts/prepare_local_vision_training_workspace.py
Workflow
- Read the user request and infer the task, model, dataset paths, and training parameters.
- Run
scripts/prepare_local_vision_training_workspace.py --request "<user text>". - Inspect the generated plan,
configs/local.vision.required.env, and launch script. - Ask the user to review or edit
configs/local.vision.required.env. - Tell the user to reply with exactly
continue. - Only after
continue, runbash scripts/run_local_vision_training.sh.
Task Rules
- Classification keywords:
classification,分类 - Detection keywords:
detection,目标检测 - Segmentation keywords:
segmentation,segment,分割,sam - When task is ambiguous, default to
classification
Command Rules
- Keep the generated launch script readable and editable.
configs/local.vision.required.envshould start with sensible defaults instead of blank placeholders.- The launch script must verify that the configured local training entrypoint exists before it tries to run.
- Prefer one process by default unless the user clearly asks for distributed local training.
References
references/runtime_requirements.md
Guardrails
- Never skip the
continuegate. - Never auto-run on macOS or an unknown host.
- Never assume the local training entrypoint already exists without checking.
- Never claim built-in local execution for a task unless the configured entrypoint is present on the target machine.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

