offline-inference
Use vLLM-Omni local Python APIs for offline Omni and AsyncOmni inference, prompt dictionaries, diffusion sampling parameters, batched/generator flows, and multimodal output access.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- offline-inference
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use vLLM-Omni local Python APIs for offline Omni and AsyncOmni inference, prompt dictionaries, diffusion sampling parameters, batched/generator flows, and multimodal output access.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md13.6 KB
- 参考文档references/troubleshooting.md8.8 KB
- 参考文档references/workflows.md12.0 KB
- 脚本scripts/build_offline_request.py13.4 KB
03 SKILL.md 正文
Offline inference
Use this sub-skill when a user needs local Python inference with vLLM-Omni rather than an HTTP server. It covers the synchronous Omni entrypoint, the asynchronous AsyncOmni entrypoint, prompt dictionaries, OmniDiffusionSamplingParams, batched or generator-style request flows, and safe access to text, image, audio, video, latent, and trajectory outputs.
Route here for
- Building a local Python script with
Omni(model=..., **kwargs)orAsyncOmni(model=..., **kwargs). - Creating prompt dictionaries for text-to-image, image-to-image/edit, image/video/audio chat, Qwen3-Omni-style text/audio responses, or TTS-style
additional_informationpayloads. - Supplying diffusion sampling controls such as
height,width,num_frames,num_inference_steps,guidance_scale,seed,output_type,lora_request,lora_scale,extra_args, and trajectory-return flags. - Iterating over synchronous
py_generator=Trueoutputs orasync foroutputs fromAsyncOmni.generate(...). - Debugging where generated content lives on
OmniRequestOutputobjects.
Route elsewhere
- OpenAI-compatible HTTP serving, curl payloads, OpenAI SDK calls, realtime clients, or
vllm serve ... --omni: use the sibling online-serving sub-skill. - Deploy YAML topology, connector choice, stage placement, memory overlays, or distributed launch planning: use the sibling stage-configuration sub-skill.
- Model family selection, recipe adaptation, offload/parallel/quantization tradeoffs, cache backends, or hardware-specific model choices: use the sibling model-recipes sub-skill.
- Adding new model implementations, custom pipeline internals, adapter contracts, or maintainer tests: use the sibling model-integration sub-skill.
Always read first
- API reference for verified signatures, prompt keys, sampling parameters, and output fields.
- Workflows for copyable local-script patterns.
- Troubleshooting before running large models or debugging missing modalities/OOM/version warnings.
Safety and execution checklist
- Confirm the environment can import compatible
vllmandvllm_omnipackages before loading a model. - Treat model execution as GPU/accelerator- and model-cache-dependent. Do not assume network access, checkpoint availability, or gated-repo permission.
- Prefer local model paths when the user has already cached weights.
- For generated examples, start from the safe bundled helper:
python scripts/build_offline_request.py --help. The helper only prints code; it does not import vLLM-Omni, contact a server, download weights, or instantiate a model. - Keep original full-model examples as evidence only. Do not tell a future agent to run repository examples as a prerequisite for using this skill.
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).