计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
inference【效率与协作】Operate direct Qwen-VL, Qwen-VL-Chat, and Qwen-VL-Chat-Int4 multimodal inference, chat, generation, grounding, and quantization-aware loading.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants direct local inference with Qwen-VL-family checkpoints through Transformers or ModelScope: multimodal chat, base-model generation, multi-image prompts, grounding markup, box rendering, generation settings, device placement, or Int4 caveats.
serving sub-skill.finetuning sub-skill.evaluation sub-skill.trust_remote_code=True unless the model has already been audited and packaged locally. Without it, the custom tokenizer/model methods used below are unavailable.Qwen/Qwen-VL-Chat or Qwen/Qwen-VL-Chat-Int4 for assistant-style model.chat(...). Use Qwen/Qwen-VL as a pretrained base model with model.generate(...), not as a chat assistant.tokenizer.from_list_format([...]) or explicit <img>...</img> tags. Accept user-provided image paths or URLs; do not rely on bundled demo assets.<ref>, <box>, and optional <quad> tags if the user needs coordinates. Only clean these tags when the user asks for plain text.tokenizer.draw_bbox_on_latest_picture(response, history) for chat responses, and with tokenizer.draw_bbox_on_latest_picture(response) for base-model generated responses.device_map="cuda" or device_map="auto" when available.python scripts/qwen_vl_chat_example.py \
--model-id Qwen/Qwen-VL-Chat \
--image image.jpg \
--prompt "Describe the image and return boxes for the main objects" \
--device-map cuda \
--output-image boxes.jpg
Use python scripts/qwen_vl_chat_example.py --help for safe parameter details. The helper does nothing unless invoked explicitly.