multimodal-and-extensions
Helps with LMFlow image-text datasets, visual chat flows, multimodal fine-tuning, and adjacent extension notes.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- multimodal-and-extensions
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Helps with LMFlow image-text datasets, visual chat flows, multimodal fine-tuning, and adjacent extension notes.
- disable-model-invocation
- true
02 资源文件 9
- 参考文档references/api-reference.md821 B
- 参考文档references/conversation-templates.md1.0 KB
- 参考文档references/data-formats.md1.6 KB
- 参考文档references/extensions.md465 B
- 参考文档references/model-and-args.md1.4 KB
- 参考文档references/troubleshooting.md1.6 KB
- 参考文档references/workflows.md1.8 KB
- 脚本scripts/render_multimodal_recipe.py14.4 KB
- 脚本scripts/validate_multimodal_dataset.py5.3 KB
03 SKILL.md 正文
Multimodal and Extensions
Use this sub-skill when the task involves LMFlow image-text data, visual chat prompts, multimodal fine-tuning, or compatibility notes for nearby extensions.
Primary Coverage
image_textinference payloads and image-backed prompts.- Legacy
custom_multi_modaltraining datasets withconversationsand optionalimagefields. - Visual-chat prompt shaping for LLaVA-style image tokens.
VisModelArguments,MultiModalDatasetArguments, and the multimodal helper utilities.- Bounded extension notes such as Gradio wrappers, tool-inference boundaries, and template handoff decisions.
Read These First
references/data-formats.mdfor the two multimodal dataset shapes.references/model-and-args.mdfor the multimodal argument families and helper classes.references/conversation-templates.mdfor the LLaVA-style prompt families.references/workflows.mdfor training, chat, and UI workflow selection.references/troubleshooting.mdfor image-folder, token, optional-dependency, and legacy-loader failures.references/api-reference.mdfor the key classes and helper functions.scripts/validate_multimodal_dataset.pyto check a training dataset before use.scripts/render_multimodal_recipe.pyto print a self-contained multimodal recipe.
Cross-Links
- Generic LMFlow JSON schemas and template naming live in
../data-and-templates/SKILL.md. - Standard training and inference workflows live in
../training-and-optimization/SKILL.mdand../inference-and-evaluation/SKILL.md. - Preference optimization and merge workflows live in
../post-training-alignment/SKILL.md.
Workflow
- Decide whether the task is training, image-backed generation, or a UI wrapper.
- Confirm whether the dataset is a legacy multimodal training JSON file or an
image_textinference payload. - Check the image folder, prompt token style, and conversation separator style.
- Verify the optional dependency surface before promising a runnable path.
- Use the validator and recipe renderer before handing the task back to a long-running job.
Common Decisions
- Use
plainwhen the visual sample is a simple two-turn prompt-answer pair. - Use
v1when the data follows the LLaVA-style alternating conversation flow. - Use
padwhen images vary in aspect ratio and need a square-safe preprocess. - Use the Gradio wrapper only when the user explicitly wants a browser UI.
- Treat MiniGPT-style and archived shell recipes as compatibility notes unless the current environment has been verified for them.
What Not To Do
- Do not route plain text-only tasks here.
- Do not point future agents at the source checkout's example scripts.
- Do not promise the archived multimodal loader path without checking the current package surface.
- Do not hide missing Pillow, Gradio, or image-folder errors.
- Do not mix extension notes into the core text-only skills unless the task truly needs them.
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).