计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
inference-and-serving【效率与协作】Use Colossal-Inference APIs and commands for LLM generation, speculative decoding, diffusion inference, serving, and benchmark planning.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task involves colossalai.inference, InferenceConfig, InferenceEngine, LLaMA generation, tensor-parallel inference, speculative decoding, Stable Diffusion 3 patched parallelism, or inference service/client benchmarks.
InferenceConfig and InferenceEngine usage.colossalai run commands for LLM generation, tensor parallelism, drafter/speculative decoding, or diffusion prompts.colossalai run, and hostfile issues: use ../installation-and-launch/SKILL.md.../parallelism-and-sharding/SKILL.md.../booster-training/SKILL.md.../application-recipes/SKILL.md.from colossalai.inference import InferenceConfig, InferenceEngine
config = InferenceConfig(max_batch_size=8, max_output_len=256, tp_size=1)
Generate commands without running models:
python scripts/inference_command_builder.py llama --model /models/llama --max-length 128 --nproc-per-node 1
python scripts/inference_command_builder.py llama --model /models/main --drafter-model /models/draft --tp-size 2 --nproc-per-node 2
python scripts/inference_command_builder.py diffusion --model /models/sd3 --prompt "hello world" --nproc-per-node 2
references/inference-api.md lists inspected InferenceConfig/InferenceEngine fields and API patterns.references/llm-and-speculative-decoding.md covers LLaMA generation, tensor parallelism, drafter models, and GLIDE caveats.references/diffusion-serving-benchmarks.md covers Stable Diffusion 3, patched parallelism, serving, clients, and benchmark safety.references/troubleshooting.md maps inference-specific failures to checks.scripts/inference_command_builder.py prints safe ColossalAI inference command templates.--nproc_per_node with tensor or patched parallelism sizes.