(module)
| 502 | use_cache = False |
| 503 | |
| 504 | def create_custom_forward(module): |
| 505 | def custom_forward(*inputs): |
| 506 | return module(*inputs, past_key_value, output_attentions) |
| 507 | |
| 508 | return custom_forward |
| 509 | |
| 510 | layer_outputs = torch.utils.checkpoint.checkpoint( |
| 511 | create_custom_forward(layer_module), |
nothing calls this directly
no outgoing calls
no test coverage detected