intern-video
Routes InternVideo repository workflows for video foundation models, multimodal retrieval, video MLLMs, datasets, distributed training scripts, and troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- intern-video
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes InternVideo repository workflows for video foundation models, multimodal retrieval, video MLLMs, datasets, distributed training scripts, and troubleshooting.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/installation-and-backends.md3.3 KB
- 参考文档references/overview.md2.2 KB
- 参考文档references/repo-provenance.md3.1 KB
- 参考文档references/repo-routing-metadata.json422 B
- 参考文档references/script-inventory.md2.4 KB
- 参考文档references/troubleshooting.md2.9 KB
- 脚本scripts/check_internvideo_environment.py5.2 KB
- 脚本scripts/summarize_training_script.py2.5 KB
03 SKILL.md 正文
InternVideo Repo Skill
Use this skill when the user asks about the OpenGVLab InternVideo repository, including InternVideo1, InternVideo2, InternVideo2.5, InternVideo3, InternVideo-Next, InternVid data, video-text retrieval, action recognition, long-video MLLMs, or adapting the repo's distributed training/evaluation scripts.
This skill is a self-contained operating guide. It teaches the repo's structure, command conventions, dataset/model prerequisites, and failure modes; it does not require reopening the original repository documentation just to decide a route.
First steps
- Read repo provenance when checking staleness against a checkout.
- Read overview when the user has not named a generation or branch.
- Read installation and backend readiness before running any model, evaluation, or training command.
- Use cross-cutting troubleshooting for path, CUDA, FlashAttention, SLURM, download, and checkpoint issues.
- Use script inventory when deciding whether to adapt a repo launcher, use a bundled helper, or only document a heavyweight script.
Route by task
| User task | Read |
|---|---|
| "Which InternVideo generation should I use?" | series-map |
| Legacy InternVideo1, VideoMAE, ViCLIP, retrieval/localization/VQA/open-set/VLN | legacy-workflows |
| InternVideo2 single-modality pretraining, finetuning, linear probing, distillation, Kinetics/SSv/HMDB/UCF action recognition | single-modality |
| InternVideo2 multi-modality Stage2/CLIP, video-text/audio retrieval, demo retrieval, zero-shot evaluation, Python config system | multi-modality |
| InternVideo2.5 or InternVideo3 video MLLM inference, SFT, evaluation, long-video reasoning | video-mllm |
| InternVideo-Next stage1/stage2 visual pretraining and architecture | next-pretraining |
| InternVid, instruction data, video-text annotations, dataset path/schema validation | datasets |
Safe bundled helpers
- Run
python scripts/check_internvideo_environment.py --jsonto report Python, torch/CUDA, optional package, command, and path readiness without installing or submitting jobs. - Run
python scripts/summarize_training_script.py --script <local-launcher.sh>when a user provides a launcher and you need to extract placeholders, resource requests, and Python entry points without executing it.
Hard boundaries
- Do not submit SLURM jobs, download large datasets/checkpoints, build CUDA extensions, or run long training/evaluation unless the user explicitly authorizes that downstream action.
- Do not treat a CPU import check as proof that CUDA/FlashAttention/Apex/DeepSpeed workflows are ready.
- Do not mix checkpoint families: InternVideo2 single-modality Stage1/distillation weights, InternVideo2 Stage2 retrieval weights, InternVideo2 CLIP weights, InternVideo2.5 MLLM weights, InternVideo3 MLLM weights, and InternVideo-Next weights have different config expectations.
- If a workflow needs private benchmark data, credentials, or external storage, stop and ask for those resources before execution.
Typical minimal readiness flow
python scripts/check_internvideo_environment.py --json
python scripts/check_internvideo_environment.py --data-root /path/to/data --model-root /path/to/models
Then enter the appropriate sub-skill and use its command builder or checklist to adapt the requested generation.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).