()
| 483 | self.sampler = None # LlamaBatch doesn't use samplers, but some cleanup code expects this attribute |
| 484 | |
| 485 | def free_batch(): |
| 486 | if self.batch is None: |
| 487 | return |
| 488 | llama_cpp.llama_batch_free(self.batch) |
| 489 | self.batch = None |
| 490 | |
| 491 | self._exit_stack.callback(free_batch) |
| 492 |
nothing calls this directly
no outgoing calls
no test coverage detected