inference-and-evaluation
Helps with LMFlow generation, evaluation, benchmark, and optional vLLM or SGLang inference workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- inference-and-evaluation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Helps with LMFlow generation, evaluation, benchmark, and optional vLLM or SGLang inference workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-reference.md1.3 KB
- 参考文档references/results-and-dataproto.md856 B
- 参考文档references/troubleshooting.md1.6 KB
- 参考文档references/workflows.md1.7 KB
- 脚本scripts/build_inference_command.py7.9 KB
03 SKILL.md 正文
Inference and Evaluation
Use this sub-skill when the task is about generating text with LMFlow, running evaluator/benchmark flows, handling inference results, or choosing between the Hugging Face, vLLM, and SGLang routes.
Typical Triggers
inference,generate,chat,tool inference,speculative inferenceevaluator,benchmarking,metric,answer extractionvllm,sglang,save_inference_results,results_pathreward model inference,text_regression,DataProto
What This Sub-Skill Owns
- Batch generation and evaluation commands built from the installed LMFlow package.
- Engine selection for Hugging Face, vLLM, and SGLang.
- Result-format guidance, save/load paths, and DataProto usage.
- Safe command rendering for non-training inference and evaluation.
Read These First
references/workflows.mdfor the supported inference and evaluation paths.references/cli-reference.mdfor the important generation/evaluation dataclass fields.references/results-and-dataproto.mdfor result objects and output files.references/troubleshooting.mdfor deepspeed, engine, and result-path issues.scripts/build_inference_command.pyto render a copyable command.
Cross-Links
- Dataset preparation lives in
../data-and-templates/SKILL.md. - Fine-tuning lives in
../training-and-optimization/SKILL.md. - Reward-modeling and DPO workflows live in
../post-training-alignment/SKILL.md.
Workflow
- Decide whether the user wants plain generation, evaluation, or a backend engine.
- Confirm the dataset path and model path.
- Decide whether outputs should be printed, saved, or both.
- Check whether the task needs
vllmorsglangand whether those extras are installed in a separate environment. - Render the command before running anything expensive.
Common Decisions
- Use Hugging Face inference for the simplest path and base-install compatibility.
- Use vLLM only when the user explicitly wants vLLM and has that extra installed.
- Use SGLang only when the user explicitly wants SGLang, deterministic inference, or return-logprob behavior.
- Use the evaluator path when the user asks for metrics rather than raw generations.
What Not To Do
- Do not mix vLLM and SGLang dependency assumptions.
- Do not hide
save_inference_resultsoutput paths. - Do not promise
return_logprobunless the route is SGLang. - Do not route training tasks here.
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).