mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 23:22:57 +01:00
Added chat history and chat item
This commit is contained in:
parent
542ed0ef4e
commit
4bc9dd7870
19 changed files with 409 additions and 121 deletions
|
|
@ -11,8 +11,7 @@ from private_gpt.paths import models_cache_path, models_path
|
|||
from private_gpt.settings.settings import Settings
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
local_path = models_path / "tokenizer/Mistral-7B-Instruct-v0.1"
|
||||
@singleton
|
||||
class LLMComponent:
|
||||
llm: LLM
|
||||
|
|
@ -23,8 +22,7 @@ class LLMComponent:
|
|||
if settings.llm.tokenizer:
|
||||
set_global_tokenizer(
|
||||
AutoTokenizer.from_pretrained(
|
||||
pretrained_model_name_or_path=settings.llm.tokenizer,
|
||||
cache_dir=str(models_cache_path),
|
||||
local_path
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue