AGENT SKILL

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

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_text inference payloads and image-backed prompts.
  • Legacy custom_multi_modal training datasets with conversations and optional image fields.
  • 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.md for the two multimodal dataset shapes.
  • references/model-and-args.md for the multimodal argument families and helper classes.
  • references/conversation-templates.md for the LLaVA-style prompt families.
  • references/workflows.md for training, chat, and UI workflow selection.
  • references/troubleshooting.md for image-folder, token, optional-dependency, and legacy-loader failures.
  • references/api-reference.md for the key classes and helper functions.
  • scripts/validate_multimodal_dataset.py to check a training dataset before use.
  • scripts/render_multimodal_recipe.py to 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.md and ../inference-and-evaluation/SKILL.md.
  • Preference optimization and merge workflows live in ../post-training-alignment/SKILL.md.

Workflow

  1. Decide whether the task is training, image-backed generation, or a UI wrapper.
  2. Confirm whether the dataset is a legacy multimodal training JSON file or an image_text inference payload.
  3. Check the image folder, prompt token style, and conversation separator style.
  4. Verify the optional dependency surface before promising a runnable path.
  5. Use the validator and recipe renderer before handing the task back to a long-running job.

Common Decisions

  • Use plain when the visual sample is a simple two-turn prompt-answer pair.
  • Use v1 when the data follows the LLaVA-style alternating conversation flow.
  • Use pad when 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351