(self, ctx: LlamaContext, idx: int = -1)
| 855 | return llama_cpp.llama_sampler_get_seed(self.sampler) |
| 856 | |
| 857 | def sample(self, ctx: LlamaContext, idx: int = -1) -> int: |
| 858 | return llama_cpp.llama_sampler_sample(self.sampler, ctx.ctx, idx) |
| 859 | |
| 860 | def accept(self, token: int): |
| 861 | llama_cpp.llama_sampler_accept(self.sampler, token) |
no outgoing calls