引導式測驗 · 中等 等級
PyTorch 閃電組織訓練測驗
了解 LightningModule 和 Trainer 的職責、回調、檢查點監控、最佳化模式以及對 PyTorch 基礎知識的需求。
問題 1 的 8
Which class typically defines model and task-specific steps in PyTorch Lightning?
預覽每個問題8 問題
當您參加測驗時,就會出現答案和解釋。
- Which class typically defines model and task-specific steps in PyTorch Lightning?
- Trainer
- DataLoader worker
- LightningModule
- TensorBoard event file
- Which responsibility does the Trainer handle around task-specific model code?
- Choosing labels from raw data
- Orchestrating the training lifecycle and configured execution
- Guaranteeing test-set accuracy
- Defining every model layer automatically
- Why verify the metric name monitored by a checkpoint callback?
- A missing monitor key can cause checkpoint selection to fail or monitor the wrong signal
- It selects whether the Trainer uses CPU or GPU
- It automatically normalizes the validation metric across devices
- It chooses the model architecture
- When might manual optimization be appropriate?
- When the algorithm needs custom control over optimizer steps
- For every ordinary classifier
- When no gradients are used
- To remove validation
- Which claim about Lightning abstraction is accurate?
- Lightning automatically decides the scientific evaluation metric
- Lightning infers training labels from model outputs
- PyTorch knowledge remains useful beneath training orchestration
- Lightning removes the need for callback configuration
- What should be tested before scaling to distributed training?
- A small run reveals device, metric and checkpoint behavior before costly scaling
- A model title is enough to verify execution
- Training-set loss alone validates distributed aggregation
- A successful import proves the multi-device run is correct
- Why keep validation logic separate from the training objective?
- To make callbacks optional
- To reduce the number of model layers
- To allow test labels into training
- To evaluate without updating model weights on held-out data
- How can a team check that loop migration preserves training behavior?
- Compare updates and metrics against a small reference run
- Assume matching class names imply identical training behavior
- Remove tests after conversion to Lightning
- Compare checkpoint file sizes only