File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ This package provides:
14
14
- High-level Python API for text completion
15
15
- OpenAI-like API
16
16
- [ LangChain compatibility] ( https://python.langchain.com/docs/integrations/llms/llamacpp )
17
+ - [ LlamaIndex compatibility] ( https://docs.llamaindex.ai/en/stable/examples/llm/llama_2_llama_cpp.html )
17
18
- OpenAI compatible web server
18
19
- [ Local Copilot replacement] ( https://llama-cpp-python.readthedocs.io/en/latest/server/#code-completion )
19
20
- [ Function Calling support] ( https://llama-cpp-python.readthedocs.io/en/latest/server/#function-calling )
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class ModelSettings(BaseSettings):
60
60
seed : int = Field (
61
61
default = llama_cpp .LLAMA_DEFAULT_SEED , description = "Random seed. -1 for random."
62
62
)
63
- n_ctx : int = Field (default = 2048 , ge = 1 , description = "The context size." )
63
+ n_ctx : int = Field (default = 2048 , ge = 0 , description = "The context size." )
64
64
n_batch : int = Field (
65
65
default = 512 , ge = 1 , description = "The batch size to use per eval."
66
66
)
You can’t perform that action at this time.
0 commit comments