{"schema_version":"1.0","language":"zh-CN","generated_from":"NEWVAR 从零开始学AI structured Markdown","write_access":false,"full_text_access":false,"content_boundary":"This endpoint exposes metadata, objectives, prerequisites, labs and source summaries. It does not expose chapter body text or answer text.","chapter":{"slug":"pytorch-engineering","title":"PyTorch工程：数据、检查点与推理","english_title":"PyTorch engineering","chapter_number":48,"volume":2,"volume_title":"第二卷：经典AI与机器学习","month":12,"unit_title":"神经网络、自动微分与PyTorch","review_status":"draft","updated_at":"2026-08-06","estimated_hours":8,"focus":"掌握Dataset、DataLoader、Module、state_dict、设备和推理模式。","objectives":["掌握Dataset、DataLoader、Module、state_dict、设备和推理模式。","解释核心数学关系并完成最小实现","运行单变量实验并记录失败样例","完成工程线或研究线至少一项迁移任务"],"prerequisites":["training-regularization"],"exercise_count":3,"tracks":["engineering","research"],"human_url":"/learn/pytorch-engineering"},"labs":[{"id":"lab-pytorch-engineering","chapter_slug":"pytorch-engineering","title":"PyTorch工程：数据、检查点与推理：单变量实验","kind":"batch_size","data_status":"教学模拟","variable":{"label":"批量大小","unit":"","min":1,"max":256,"step":1,"default":32},"objective":"只改变“批量大小”，观察结果、代价和风险如何一起变化，理解掌握Dataset、DataLoader、Module、state_dict、设备和推理模式。","static_fallback":"静态替代：把批量大小分别设为1、32和256，手工比较三组教学模拟输出。","keyboard":"聚焦滑块后使用方向键微调，Page Up/Page Down大步调整，Home/End到达边界。","measurement_note":"页面数值由公开公式生成，只用于教学，不代表真实模型性能或现实世界因果效果。","source_ids":["S010","S015","S025"]}],"project":{"id":"project-12","month":12,"title":"训练并发布一个CPU可运行的小型神经网络","brief":"从张量、数据加载、模型、优化、检查点到推理脚本形成可复现实验包。","deliverables":["问题与边界说明","可运行最小实现","实验记录与失败分析","来源与许可清单","风险、隐私与人工闸门","复现README"]},"sources":[{"id":"S010","author":"Aston Zhang et al.","title":"Dive into Deep Learning","source_level":"开放教材","published_at":"持续更新","accessed_at":"2026-08-06","doi_or_url":"https://d2l.ai/"},{"id":"S015","author":"PyTorch","title":"Automatic Differentiation with torch.autograd","source_level":"官方教程","published_at":"持续更新","accessed_at":"2026-08-06","doi_or_url":"https://pytorch.org/tutorials/beginner/basics/autogradqs_tutorial.html"},{"id":"S025","author":"PyTorch","title":"PyTorch Tutorials","source_level":"官方教程","published_at":"持续更新","accessed_at":"2026-08-06","doi_or_url":"https://pytorch.org/tutorials/"}]}