Cuestionario vinculado a una guía · duro Nivel
Estimación de la memoria GPU necesaria para el cuestionario LLM
Calcule la memoria LLM a partir de pesos, estado de entrenamiento, activaciones y caché KV, e identifique cómo el contexto, el lote y la precisión cambian el presupuesto.
Pregunta 1 de 8
¿Qué fórmula proporciona una estimación de primer orden de la memoria de peso almacenada?
Vista previa de cada pregunta8 preguntas
Las respuestas y explicaciones aparecen a medida que realiza el cuestionario.
- ¿Qué fórmula proporciona una estimación de primer orden de la memoria de peso almacenada?
- 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
- ¿Por qué el ajuste completo suele necesitar más memoria que la inferencia?
- 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
- ¿Qué representa el factor de dos en una estimación de caché KV estándar?
- 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
- ¿Qué variables aumentan el tamaño de caché KV estándar?
- 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
- ¿Cómo puede afectar la atención de consultas agrupadas a la memoria caché KV?
- 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