Return the context window size.
(self)
| 2246 | raise RuntimeError("Failed to set llama state data") |
| 2247 | |
| 2248 | def n_ctx(self) -> int: |
| 2249 | """Return the context window size.""" |
| 2250 | return self._ctx.n_ctx() |
| 2251 | |
| 2252 | def n_embd(self) -> int: |
| 2253 | """Return the embedding size.""" |