mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-08 16:10:18 +08:00
update model_config.py
This commit is contained in:
parent
3b4b660d3c
commit
b3f83060c8
@ -1,6 +1,6 @@
|
|||||||
import torch.cuda
|
import torch.cuda
|
||||||
import torch.backends
|
import torch.backends
|
||||||
|
import os
|
||||||
|
|
||||||
embedding_model_dict = {
|
embedding_model_dict = {
|
||||||
"ernie-tiny": "nghuyong/ernie-3.0-nano-zh",
|
"ernie-tiny": "nghuyong/ernie-3.0-nano-zh",
|
||||||
@ -31,7 +31,7 @@ USE_PTUNING_V2 = False
|
|||||||
# LLM running device
|
# LLM running device
|
||||||
LLM_DEVICE = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
|
LLM_DEVICE = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
|
||||||
|
|
||||||
VS_ROOT_PATH = "./vector_store/"
|
VS_ROOT_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "vector_store")
|
||||||
|
|
||||||
UPLOAD_ROOT_PATH = "./content/"
|
UPLOAD_ROOT_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "content")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user