|
21 | 21 | from strenum import StrEnum |
22 | 22 | from transformers import PreTrainedTokenizerBase |
23 | 23 |
|
24 | | -from tensorrt_llm.llmapi.utils import logger_debug, orchestrator_type_env |
25 | 24 | from tensorrt_llm.lora_helper import (LoraConfig, |
26 | 25 | get_default_trtllm_modules_to_hf_modules) |
27 | 26 |
|
@@ -2161,26 +2160,6 @@ def validate_peft_cache_config(self): |
2161 | 2160 | "while LoRA prefetch is not supported") |
2162 | 2161 | return self |
2163 | 2162 |
|
2164 | | - @model_validator(mode='before') |
2165 | | - def validate_orchestrator_config(cls, values): |
2166 | | - # The environment variable will override the orchestrator_type field. |
2167 | | - # TODO: remove the environment variable after RPC path is stable, then |
2168 | | - # there will be only two stable options: None(RPC) and 'ray'. |
2169 | | - if (ev := orchestrator_type_env()) is not None: |
2170 | | - logger_debug( |
2171 | | - f"changing orchestrator_type to {ev} from environment variable") |
2172 | | - if ev not in ['rpc', 'ray']: |
2173 | | - raise ValueError( |
2174 | | - f"Invalid orchestrator type: {ev}. Please set orchestrator_type to 'rpc' or 'ray'." |
2175 | | - ) |
2176 | | - values['orchestrator_type'] = ev |
2177 | | - |
2178 | | - if 'orchestrator_type' in values: |
2179 | | - logger.warning( |
2180 | | - f"Setting orchestrator_type to: {values['orchestrator_type']}") |
2181 | | - |
2182 | | - return values |
2183 | | - |
2184 | 2163 | def _update_plugin_config(self, key: str, value: Any): |
2185 | 2164 | setattr(self.build_config.plugin_config, key, value) |
2186 | 2165 |
|
|
0 commit comments