local-inference
Run or adapt local Skywork-R1V3 inference commands with safe Transformers/vLLM guidance.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- local-inference
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Run or adapt local Skywork-R1V3 inference commands with safe Transformers/vLLM guidance.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-and-parameters.md5.4 KB
- 参考文档references/troubleshooting.md5.8 KB
- 参考文档references/workflows.md7.6 KB
- 脚本scripts/build_inference_command.py6.7 KB
- 脚本scripts/check_image_grid.py5.1 KB
03 SKILL.md 正文
Local Skywork-R1V3 inference
Use this sub-skill when a user wants to run, adapt, or debug local Skywork-R1V3 multimodal inference with either the Transformers entrypoint or the vLLM entrypoint.
Do not use this sub-skill for Skywork-R1V4 API batch testing; route that workflow to r1v4-api-testing. Do not use it for VLMEvalKit, EMMA, MMK12, or benchmark reproduction; route those workflows to evaluation-reproduction.
Operating posture
- Treat full Skywork-R1V3-38B inference as a heavy CUDA workflow. The safe helpers in this subtree do not load models, download checkpoints, initialize vLLM, import torch, or touch GPUs.
- Default model identity for local inference is
Skywork/Skywork-R1V3-38B; allow a local checkpoint path or compatible model id when the user has already prepared weights. - Confirm the backend first: Transformers for direct
model.chat()behavior and explicit image patch lists; vLLM for tensor-parallel generation using chat templates. - Confirm image count and prompt tags before running. Multi-image prompts need one image token per image unless the backend helper already adds them.
- Be explicit that native full-run verification is optional/unexecuted unless the user supplies model weights, CUDA dependencies, GPUs, and runtime budget.
Fast routing checklist
- Need a command without loading the model? Use
scripts/build_inference_command.py. - Need to estimate image tiling/patch pressure without torch? Use
scripts/check_image_grid.py. - Need command and setup details? Read
references/workflows.md. - Need exact flags and defaults? Read
references/api-and-parameters.md. - Hit CUDA, model-loading, vLLM, image-tag, or OOM errors? Read
references/troubleshooting.md.
Minimal safe helper examples
python scripts/build_inference_command.py --backend transformers \
--image-path demo.png \
--question "Describe the image and reason step by step."
python scripts/check_image_grid.py --width 1600 --height 900 --thumbnail
The generated command is only a command string for the user to run in their prepared inference environment; it is not executed by the helper.
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).