ガイド連動クイズ · 中 レベル
グラデーションチェックポイントクイズ
アクティベーションの再具体化、メモリの節約、スケジュールに依存する計算オーバーヘッド、シャーディングと混合精度との組み合わせについて説明します。
質問 1 の 8
メモリを節約するために、勾配チェックポインティングは主に何を交換しますか?
すべての質問をプレビューする8 質問
クイズに答えると、答えと解説が表示されます。
- メモリを節約するために、勾配チェックポインティングは主に何を交換しますか?
- メモリ使用量を削減するための追加の計算 (再計算)
- 速度に対するモデルの精度
- ネットワーク帯域幅用のディスク容量
- バッチサイズの精度
- 通常、アクティベーションが転送パス中に保存されるのはなぜですか?
- ユーザーに表示するには
- バックプロパゲーションでは勾配を計算するためにそれらが必要であるため
- データの読み込みを高速化するには
- 実際には必要ありません
- In a simplified chain of N similarly sized layers, what can checkpoint boundaries spaced about sqrt(N) layers apart achieve in the textbook schedule?
- It stores no activations and performs no recomputation
- It guarantees constant memory for every model graph
- Activation storage can scale on the order of sqrt(N) checkpoints
- It makes optimizer-state memory scale as sqrt(N)
- What most determines gradient-checkpointing runtime overhead in a practical model?
- Only the model’s file extension
- A fixed 20–30% slowdown for every model
- The number of labels in the dataset
- Which operations are recomputed, checkpoint placement, graph structure, and hardware
- PyTorch では、モジュールに勾配チェックポイントを適用するためにどのユーティリティが一般的に使用されますか?
- torch.utils.チェックポイント
- torch.optim.SGD
- トーチ.nn.ドロップアウト
- torch.cuda.empty_cache
- What happens to operations inside a checkpointed region during backward?
- Their gradients are skipped entirely
- Their forward computations are rerun to regenerate needed activations
- Their weights are permanently discarded
- They are executed only during inference
- Which training techniques can be combined with activation checkpointing to reduce different memory costs?
- Only increasing the number of labels
- Turning off backpropagation
- FSDP for sharded model state and mixed precision for lower-precision tensors
- Replacing the model with a tokenizer
- What is selective activation checkpointing intended to choose?
- Which training labels are removed
- Which model outputs are published
- Which GPU becomes the tokenizer
- Which operations to save and which to recompute based on their memory and runtime costs