lightllm
Route LightLLM serving, deployment, and validation workflows into bundled references and sub-skills.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- lightllm
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route LightLLM serving, deployment, and validation workflows into bundled references and sub-skills.
- disable-model-invocation
- true
02 资源文件 10
- 参考文档references/api-reference.md4.4 KB
- 参考文档references/cli-reference.md4.4 KB
- 参考文档references/repo-provenance.md2.6 KB
- 参考文档references/repo-routing-metadata.json523 B
- 参考文档references/troubleshooting.md4.4 KB
- 脚本scripts/inspect_api_surface.py2.6 KB
- 脚本scripts/inspect_cuda.py1.9 KB
- 脚本scripts/inspect_start_args.py1.9 KB
- 脚本scripts/model_module_roster.py1.3 KB
- 脚本scripts/request_smoke.py2.9 KB
03 SKILL.md 正文
LightLLM
LightLLM is a GPU-accelerated LLM serving framework with OpenAI-compatible, Anthropic-compatible, TGI-style, and LightLLM-native request paths. Use this skill when a user wants to start the server, understand its HTTP surface, choose a supported model/backend combination, or validate the runtime with repo-native benchmark and smoke flows.
Quick verification
If the package is not already installed, install the public lightllm
distribution into a CUDA-capable Python environment first, for example with
python -m pip install lightllm, then confirm that the installation is usable.
A healthy inspection environment should be able to do all of the following:
- Import the installed
lightllmdistribution. - Pass
python -m pip check. - Report CUDA readiness from the target environment.
- Print
python -m lightllm.server.api_server --help.
Use the bundled helper scripts when you need a fast check:
scripts/inspect_cuda.pyfor a tiny torch/CUDA smoke.scripts/inspect_start_args.pyfor the liveStartArgssurface.scripts/inspect_api_surface.pyfor route and request-schema inspection.scripts/request_smoke.pyfor a local/generateor/v1/*request against a running server.
Route map
serving-api
Use this sub-skill for HTTP serving, endpoint payloads, streaming, function calling, reasoning parsers, multimodal requests, health/readiness, metrics, and profiler control.
Read:
model-runtime
Use this sub-skill for supported model families, registry behavior, quantization/backend selection, multimodal model toggles, reward/RL model support, and adding a new model support path.
Read:
deployment-topologies
Use this sub-skill for single-node and multi-node launch topologies,
pd_master / prefill / decode layouts, config server flows, multimodal
worker placement, cache modes, RDMA/NIXL/UCX caveats, and startup sequencing.
Read:
- sub-skills/deployment-topologies/SKILL.md
- sub-skills/deployment-topologies/references/deployment-matrix.md
benchmark-validation
Use this sub-skill for repository benchmarks, service throughput/QPS checks, static inference tests, prompt-cache timing, scenario regressions, and selected accuracy/validation scripts.
Read:
- sub-skills/benchmark-validation/SKILL.md
- sub-skills/benchmark-validation/references/benchmark-catalog.md
Cross-cutting references
- references/repo-provenance.md records the source commit, dirty state, and evidence set.
- references/repo-routing-metadata.json captures router placement and selection guidance.
- references/troubleshooting.md summarizes install, import, CUDA, optional dependency, and startup failures that cut across sub-skills.
Runtime notes
- Treat the bundled references and scripts as the public operating context. Do not depend on the original checkout remaining available.
- Prefer the smallest workflow that answers the user’s question: serving
requests go to
serving-api, model support questions go tomodel-runtime, topology and startup sequencing go todeployment-topologies, and benchmark or regression questions go tobenchmark-validation. - For questions that mix multiple areas, start with the sub-skill that owns the user-facing action, then read the cross-cutting references above.
- If a workflow needs a running server, use
deployment-topologiesfirst and then return here for the API or benchmark route. - If a question is about profiler control only, treat it as part of
serving-apiandbenchmark-validation, not as a separate route.
Staleness check
If the repository version, package version, or supported backend story changes, refresh the provenance and routing metadata before reusing 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).