(cls, cfg: Any)
| 40 | |
| 41 | @field_validator("config") |
| 42 | def validate_config(cls, cfg: Any): |
| 43 | if issubclass(type(cfg), DictConfig): |
| 44 | return cfg |
| 45 | |
| 46 | raise TypeError("Wrong type for `config`, must be subclass of BaseConfig") |
| 47 | |
| 48 | def create_llm(self): |
| 49 | GPUS = os.environ.get('CUDA_VISIBLE_DEVICES', "0").split(',') |
nothing calls this directly
no outgoing calls
no test coverage detected