(self)
| 696 | self.close() |
| 697 | |
| 698 | def add_greedy(self): |
| 699 | sampler = llama_cpp.llama_sampler_init_greedy() |
| 700 | llama_cpp.llama_sampler_chain_add(self.sampler, sampler) |
| 701 | |
| 702 | def add_dist(self, seed: int): |
| 703 | sampler = llama_cpp.llama_sampler_init_dist(seed) |