(self, ctx: llama_cpp.llama_context_p, output_index: int)
| 10336 | ) |
| 10337 | |
| 10338 | def sample(self, ctx: llama_cpp.llama_context_p, output_index: int) -> int: |
| 10339 | return int(llama_cpp.llama_sampler_sample(self._sampler, ctx, output_index)) |
| 10340 | |
| 10341 | def _ensure_sample_logits_buffer(self, size: int) -> None: |
| 10342 | if size == self._sample_logits_size and self._sample_logits_recarray is not None: |
no outgoing calls
no test coverage detected