[LLM] change default n_threads of native int4 langchain API (#8779)

This commit is contained in:
Yishuo Wang 2023-08-21 13:30:12 +08:00 committed by GitHub
parent 3d1f2b44f8
commit 611c1fb628

View file

@ -110,7 +110,7 @@ class BigdlNativeLLM(LLM):
use_mlock: bool = Field(False, alias="use_mlock")
"""Force system to keep model in RAM."""
n_threads: Optional[int] = Field(2, alias="n_threads")
n_threads: Optional[int] = Field(-1, alias="n_threads")
"""Number of threads to use."""
n_batch: Optional[int] = Field(512, alias="n_batch")