ガイド連動クイズ · 中 レベル
GPU メモリ管理と断片化に関するクイズ
GPU の割り当てメモリと予約メモリ、アロケータの再利用、および empty_cache と拡張可能なセグメントの制限を含む断片化診断をテストします。
質問 1 の 8
GPU メモリの断片化とは何ですか?
すべての質問をプレビューする8 質問
クイズに答えると、答えと解説が表示されます。
- GPU メモリの断片化とは何ですか?
- GPUが物理的に壊れた場合
- モデルのレイヤーが多すぎる場合
- 2 つの GPU の結果が一致しない場合
- 空きメモリが、大規模な連続リクエストを満たすには小さすぎる散在チャンクに分割されている場合
- PyTorch のようなフレームワークがキャッシュ メモリ アロケータを使用するのはなぜですか?
- モデルをより正確にするには
- プールされたメモリ ブロックを再利用することで、直接ドライバーの割り当てや無料呼び出しの遅延を回避するには
- 重みを暗号化するには
- 必要な GPU の数を 1 つに減らすには
- A CUDA allocation fails despite apparently unused reserved memory. What should a developer investigate?
- Whether fragmentation is proven by the error alone
- Whether all live tensors have already been freed
- Whether inactive split blocks or other allocations explain the failure
- Whether changing the learning rate releases GPU memory
- Which PyTorch allocator option can be tested for changing-size workloads that leave unused memory slivers?
- Expandable segments in the allocator configuration
- Increasing every tensor dimension
- Disabling the GPU cooling system
- Increasing the optimizer learning rate
- vLLM の PagedAttendance は、推論中のメモリの無駄を削減するために何を管理していますか?
- モデルのトレーニング データ
- 固定サイズのページを使用したアテンション キー/値 (KV) キャッシュ
- GPUのクロック速度
- ログのフォントサイズ
- メモリ不足エラーを回避するためにアクティベーション メモリを削減する手法はどれですか?
- さらにレイヤーを追加する
- より長い学習速度のウォームアップを使用する
- 勾配チェックポイント設定 (再計算)
- より多くのチェックポイントをディスクに保存する
- A live CUDA tensor still has Python references. Will empty_cache release that tensor’s allocation?
- No; it releases unused cached memory rather than live tensor storage
- Yes; it deletes every referenced tensor
- Yes; it moves the tensor automatically to NVMe
- Only if the tensor contains zero values
- PyTorch reports reserved memory greater than allocated memory. What distinction explains the gap?
- Reserved memory measures only CPU RAM
- Allocated memory includes every process on the GPU
- The difference directly proves a model accuracy error
- The allocator can retain cached blocks beyond memory currently used by tensors