错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Performance Engineering

  • Martin Hander

摘要

Fast beats clever. This chapter is a field guide to speeding up PyTorch training and inference with torch.compile, AMP, CUDA Graphs, KV-cache, quantization (torch.ao.quantization, bitsandbytes), and platform-specific tips for CPU/NPU/GPU. The goal: fewer milliseconds, fewer watts, same (or better) accuracy.