Download src/config.py from InvestmentResearchAI/LLM-ADE-dev: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/InvestmentResearchAI/LLM-ADE-dev/resolve/bc2413e8a08fc2beb61a1e100d3fb166c0e1bc23/src/config.py
- Command line
-
hf download hf://spaces/InvestmentResearchAI/LLM-ADE-dev@bc2413e8a08fc2beb61a1e100d3fb166c0e1bc23/src/config.py
-
curl -L -o config.py https://huggingface.co/spaces/InvestmentResearchAI/LLM-ADE-dev/resolve/bc2413e8a08fc2beb61a1e100d3fb166c0e1bc23/src/config.py
665 Bytes
| from pydantic import Field | |
| from pydantic_settings import BaseSettings | |
| class Config(BaseSettings): | |
| hf_token: str = Field(...) | |
| model_path: str = Field("InvestmentResearchAI/LLM-ADE-dev") | |
| headless: bool = Field(False, description="Run in headless mode.") | |
| chat_template: str = Field("chatml", description="Chat template for prompt formatting") | |
| num_fewshot: int | None = Field(None, description="Option to use json mode examples") | |
| load_in_4bit: str = Field("False", description="Option to load in 4bit with bitsandbytes") | |
| max_depth: int = Field(5, description="Maximum number of recursive iteration") | |
| config = Config(_env_file=".env") | |