File size: 569 Bytes
70f8d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from dataclasses import dataclass
from typing import Optional

@dataclass
class EnvironmentConfig:
    # Hugging Face configuration
    hf_model_path: str = "TeleologyHI/HIM-self"
    hf_token: Optional[str] = None
    
    # Hardware configuration
    device: str = "cuda"
    num_gpus: int = 1
    mixed_precision: bool = True
    
    # Logging configuration
    log_level: str = "INFO"
    enable_wandb: bool = False
    wandb_project: str = "HIM-self"
    
    # API configuration
    api_host: str = "0.0.0.0"
    api_port: int = 7860
    enable_cors: bool = True