Mit dem Guide verknüpftes Quiz · Mittel Ebene
Gradient Checkpointing-Quiz
Erklärt die Rematerialisierung der Aktivierung, Speichereinsparungen, zeitplanabhängigen Rechenaufwand und Kombinationen mit Sharding und gemischter Präzision.
Frage 1 von 8
Was wird beim Gradienten-Checkpointing hauptsächlich gehandelt, um Speicher zu sparen?
Sehen Sie sich jede Frage in der Vorschau an8 Fragen
Während Sie am Quiz teilnehmen, werden Antworten und Erklärungen angezeigt.
- Was wird beim Gradienten-Checkpointing hauptsächlich gehandelt, um Speicher zu sparen?
- Zusätzliche Rechenleistung (Neuberechnung) für geringere Speichernutzung
- Modellgenauigkeit für Geschwindigkeit
- Speicherplatz für Netzwerkbandbreite
- Präzision für die Losgröße
- Warum werden Aktivierungen normalerweise während des Vorwärtsdurchlaufs gespeichert?
- Um sie dem Benutzer anzuzeigen
- Weil die Backpropagation sie benötigt, um Gradienten zu berechnen
- Um das Laden von Daten zu beschleunigen
- Sie werden nie wirklich benötigt
- 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
- Welches Dienstprogramm wird in PyTorch häufig verwendet, um Gradientenprüfpunkte auf ein Modul anzuwenden?
- Torch.utils.checkpoint
- Torch.optim.SGD
- Torch.nn.Dropout
- 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