Skip to content
cccskills
FreePublished on GitHub

distributed-inference

Compare ways to distribute AI inference across multiple instances, including replicas and separate input-processing and generation stages. Estimate capacity, throughput, delays, state-transfer costs, and recovery overhead to support routing and scaling decisions.

OriginalShow the original description

比较推理副本、prefill/decode 分离、专家放置与共享 KV 的跨实例方案。用于容量规划、路由、扩缩容和故障恢复。

See how to install

Good for

  • Compare replicas with separate inference stages
  • Plan routing around compute capacity and cached state
  • Evaluate expert placement and load imbalance
  • Estimate scaling and failure recovery overhead

Files included (1)

  • SKILL.md1.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

分布式推理部署

适用:单实例配置已知,需把计算和状态分配到多个实例。依据 manuscripts/09-分布式推理.md 第 9.1—9.7 节。

  1. 用相同任务质量、请求分布与资源总量比较完整副本、PD 分离、异构执行等候选;先列出每阶段的服务率与状态驻留量。
  2. 对每次切分,计算交接的 KV 或激活字节、链路传输时间、发送端与接收端同时占用的容量,以及可能与计算重叠的部分。状态表示改变后重新计算,不能沿用旧模型的 KV 大小。
  3. 路由同时考虑空闲算力和缓存亲和性。专家放置要考虑热点 skew、复制容量与最慢专家,不只看平均 token 数。
  4. 在启动、扩容和故障恢复中列出模型加载、预热、状态迁移、checkpoint 或重算的时间;评估流式输出中断后的用户可见影响。
  5. 用容量、吞吐、尾延迟和恢复后的按期完成率比较方案,并指出负载发生何种变化时需要重新部署。

报告资源配比、阶段服务率、链路瓶颈及状态交接成本。只有局部 kernel 指标时,先取得完整请求轨迹再做部署结论。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Compare computing devices for a defined AI model workload using memory capacity, computing speed, data transfer, energy use, and cost. Build a comparison that separates predicted performance from measurements and identifies the constraints that determine the choice.

  • Choosing hardware for a specific AI model
  • Checking whether a model fits in device memory
  • Explaining gaps between advertised and measured performance
bojieli/ai-infra-book6.9KUpdated Oct 1, 2026

Plan when an agent’s tool environments are created, kept available, released, and restored. Estimate peak concurrency, resource use during work and waiting, total task duration, and cost across model calls, tool execution, validation, and retries.

  • Estimating peak concurrent agent environments
  • Comparing environment retention and recreation
  • Assessing cold starts and shared environment pools
bojieli/ai-infra-book6.9KUpdated Oct 1, 2026

Estimate cross-server traffic, network bottlenecks, and synchronization waits for AI training or inference. Map communication onto physical network paths and assess how topology or communication changes affect the time needed to complete the job.

  • Find communication bottlenecks in distributed AI workloads
  • Compare network topologies and communication paths
  • Estimate synchronization waits under concurrent traffic
bojieli/ai-infra-book6.9KUpdated Oct 1, 2026

Compare running models or tasks on a device, nearby edge infrastructure, or in the cloud. Break down interaction delays, data transfers, energy use, costs, and failure recovery to assess deployment choices for multimodal and real-time agents.

  • Comparing device, edge, and cloud execution
  • Estimating interaction delays on unstable networks
  • Assessing battery use and sustainable processing speed
bojieli/ai-infra-book6.9KUpdated Oct 1, 2026

Compare batching, request scheduling, and memory management for a single model serving instance. Assess concurrent request capacity, response times, generation speed, and GPU time per result that meets the required quality and deadline.

  • Comparing batching and request scheduling options
  • Checking memory capacity for concurrent requests
  • Assessing cache reuse and offloading tradeoffs
bojieli/ai-infra-book6.9KUpdated Oct 1, 2026

Analyze GPU operation timings and execution traces to find costly data access, repeated computation, launch overhead, and synchronization waits. Check whether improving an individual operation actually reduces the time needed to complete a full request.

  • Investigating slow GPU operations
  • Assessing whether combining operations reduces data access
  • Checking pipeline dependencies and buffer reuse
bojieli/ai-infra-book6.9KUpdated Oct 1, 2026

See all skills by bojieli

Report a problem with this skill