brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
model-modulesAdd and debug VLM-R1 model modules, including Qwen2VL, InternVL, GLM boundaries, processor inputs, freeze keywords, and custom reward hooks.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task is about adding, adapting, or debugging a VLM backend used by VLM-R1 GRPO training. This skill is intentionally router-like: use the references for the actual contract and failure details.
myvlm;qwen, internvl, glm);pixel_values, image_grid_thw, image_flags);get_question_template or select_reward_func hooks.../training-workflows/.../data-and-rewards/.../evaluation/.Read references/model-modules.md for the module contract and backend-specific differences.
If editing or reviewing a module source file, run the no-import checker:
python scripts/inspect_model_module_contract.py path/to/module.py --strict
For a directory of module files, run:
python scripts/inspect_model_module_contract.py path/to/vlm_modules --strict
For an added model backend, verify all of the following are deliberately handled before touching training launch commands:
task_type;is_reward_customized_from_vlm_module will be used.If an error mentions GLM import or Glm4vForConditionalGeneration, use references/troubleshooting.md before assuming a broken checkpoint.
pixel_values and image_grid_thw; freeze keyword visual; pixel bounds are max_pixels and min_pixels.pixel_values and image_flags; exclude image_flags from generate; freeze keyword vision_model; any-resolution cap is max_anyres_num.Glm4vForConditionalGeneration; treat GLM as unverified until imports and signatures are repaired.references/model-modules.md — complete distilled module contract, Qwen vs InternVL behavior, GLM caveats, and add-new-model checklist.references/troubleshooting.md — diagnosis recipes for routing, imports, processor key mismatches, freezing, pixel bounds, and custom rewards.scripts/inspect_model_module_contract.py — static AST checker for module files/directories; it never imports the repository.