Mit dem Guide verknüpftes Quiz · Schwer Ebene
Schätzung des GPU-Speicherbedarfs für LLMs-Quiz
Schätzen Sie den LLM-Speicher anhand von Gewichtungen, Trainingsstatus, Aktivierungen und KV-Cache und ermitteln Sie, wie sich Kontext, Batch und Präzision auf das Budget auswirken.
Frage 1 von 8
Welche Formel liefert eine Schätzung erster Ordnung des gespeicherten Gewichtsspeichers?
Sehen Sie sich jede Frage in der Vorschau an8 Fragen
Während Sie am Quiz teilnehmen, werden Antworten und Erklärungen angezeigt.
- Welche Formel liefert eine Schätzung erster Ordnung des gespeicherten Gewichtsspeichers?
- Number of layers multiplied by context length alone
- Parameter count without accounting for numeric precision
- Number of parameters multiplied by bytes per parameter
- Batch size multiplied by the output vocabulary only
- Warum benötigt die vollständige Feinabstimmung normalerweise mehr Speicher als die Inferenz?
- Training avoids loading the model weights
- It stores gradients, optimizer state, and training activations
- Forward activations are never needed for backward computation
- Gradients and optimizer state are absent during training
- Was bedeutet der Faktor zwei in einer Standard-KV-Cache-Schätzung?
- Two bytes are assumed per cache value even when another precision is used
- Separate forward and backward model copies are cached
- The number of KV heads is doubled to include query heads
- Separate key and value tensors are stored
- Welche Variablen erhöhen die Standard-KV-Cache-Größe?
- Batch size, cached tokens, KV heads, head dimension, and bytes per value
- Only the layer count in the model configuration
- The model parameter count and the number of training examples
- Only context length; active batch size cannot affect cache memory
- Wie kann sich die Aufmerksamkeit einer gruppierten Abfrage auf den KV-Cache-Speicher auswirken?
- It uses more KV heads than query heads by definition
- It requires all cached values to use float32
- It can use fewer key-value heads than query heads
- It removes the KV cache from autoregressive inference
- Why should memory be tested at maximum context and concurrency?
- The cache is fixed once weights are loaded, regardless of active tokens
- The cache and runtime state grow with active tokens and sequences
- Concurrency changes output quality but not memory
- The weight file is rewritten for each simultaneous request
- Which statement about optimizer memory estimates is sound?
- All optimizers use the same state size per parameter
- FP16 weights require every optimizer tensor to use FP16
- Training memory equals weight size plus input tokens only
- Bytes per parameter depend on optimizer and precision choices
- What should follow a formula-based GPU memory estimate?
- Measure peak memory with the actual model, runtime, and workload
- Assume all advertised device memory is usable for weights
- Ignore allocator and temporary workspace buffers
- Test only an empty prompt with no concurrent requests