mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
20 lines
421 B
Python
20 lines
421 B
Python
from pydantic import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_environment = 'dev'
|
|
model: str = 'ggml-mpt-7b-chat.bin'
|
|
gpt4all_path: str = '/models'
|
|
inference_mode: str = "cpu"
|
|
hf_inference_server_host: str = "http://gpt4all_gpu:80/generate"
|
|
sentry_dns: str = None
|
|
|
|
temp: float = 0.18
|
|
top_p: float = 1.0
|
|
top_k: int = 50
|
|
repeat_penalty: float = 1.18
|
|
|
|
|
|
|
|
settings = Settings()
|