(logits)
| 108 | max_tokens: int = 100, |
| 109 | ): |
| 110 | def sample(logits): |
| 111 | return mx.argmax(logits, axis=-1) |
| 112 | |
| 113 | prompt = mx.array(self.tokenizer.encode(prompt), mx.uint32)[None] |
| 114 | memory = self.model.encode(prompt) |
nothing calls this directly
no outgoing calls
no test coverage detected