(module)
| 592 | use_cache = False |
| 593 | |
| 594 | def create_custom_forward(module): |
| 595 | def custom_forward(*inputs): |
| 596 | return module(*inputs, past_key_value, output_attentions) |
| 597 | |
| 598 | return custom_forward |
| 599 | |
| 600 | layer_outputs = torch.utils.checkpoint.checkpoint( |
| 601 | create_custom_forward(layer_module), |
nothing calls this directly
no outgoing calls
no test coverage detected