Skip to content
cccskills
FreePublished on GitHub

training-system-planning

Estimate GPU memory, training step time, checkpoint costs, and recovery overhead for training or reinforcement learning. Compare state partitioning, recomputation, offloading, and device counts to assess whether a job can finish within its deadline.

OriginalShow the original description

估算训练或 RL 作业的显存、步时、checkpoint、故障重做和完成期限。用于比较分片、重计算、卸载与集群规模。

See how to install

Good for

  • Check whether training can finish by a deadline
  • Compare memory-saving methods and their time costs
  • Plan checkpoint intervals and recovery overhead
  • Estimate usable sample throughput for reinforcement learning

Files included (1)

  • SKILL.md1.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

训练系统规划

适用:需要证明某训练目标能否在给定设备和期限内完成。依据 manuscripts/10-训练系统.md 第 10.1—10.6 节。

  1. 明确目标有效样本量、模型与优化器状态格式、序列长度、batch、设备数、故障率和截止时间;区分样本生成吞吐与有效样本吞吐。
  2. 逐项计算参数、梯度、优化器状态、激活、通信与临时缓冲的峰值显存。ZeRO、重计算和卸载都以额外通信或计算换容量,需同时检查步时。
  3. 沿一个训练步的依赖图累计前向、反向、归约、更新和未被覆盖的通信;最慢设备决定同步步时。检查 batch 扩大是否改变优化目标或收敛效率。
  4. 把数据准备、checkpoint 写入、故障概率与预期重做加入长期完成时间。checkpoint 保存参数/优化器状态,也保存数据进度;保存间隔需平衡写入与丢失工作。
  5. 对 RL 额外跟踪 rollout 样本、策略版本、行为概率、验证结果和训推数值一致性,避免把生成总量当作可训练样本数。

输出显存峰值、步时分解、有效样本吞吐、恢复开销和期限余量。硬件可行与训练质量可达应分别说明。

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 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.

  • Compare replicas with separate inference stages
  • Plan routing around compute capacity and cached state
  • Evaluate expert placement and load imbalance
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

See all skills by bojieli

Report a problem with this skill