MCPcopy Index your code
hub / github.com/abetlen/llama-cpp-python / n_ctx

Method n_ctx

llama_cpp/llama.py:2248–2250  ·  view source on GitHub ↗

Return the context window size.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 3

__init__Method · 0.95
__call__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected