5 PyTorch Memory Tactics for Bigger, Faster Models

Practical moves — KV cache reuse, gradient checkpointing, BF16, selective offload, and FlashAttention — that squeeze more sequence length…