(self)
| 609 | self.grammar.reset() |
| 610 | |
| 611 | def cp(self): |
| 612 | return LlamaSamplingContext( |
| 613 | params=self.params, |
| 614 | mirostat_mu=self.mirostat_mu, |
| 615 | grammar=self.grammar, |
| 616 | prev=self.prev.copy(), |
| 617 | cur=self.cur.copy(), |
| 618 | ) |
| 619 | |
| 620 | def last(self) -> Optional[int]: |
| 621 | if len(self.prev) > 0: |
nothing calls this directly
no test coverage detected