RuntimeError: Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you

在 Huggingface Diffusers 库中使用 Flux2 模型(transformer_flux2.py)进行训练或微调,启用了梯度检查点(gradient checkpointing)功能。具体发生在调制(modulation)计算的输出以元组(tuple of Tensors)形式传








