Skip to content

Commit a4ee0a9

Browse files
committed
restore orchestrator_type env
Signed-off-by: Superjomn <[email protected]>
1 parent 2bcafb3 commit a4ee0a9

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

tensorrt_llm/llmapi/llm_args.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from strenum import StrEnum
2222
from transformers import PreTrainedTokenizerBase
2323

24-
from tensorrt_llm.llmapi.utils import logger_debug, orchestrator_type_env
2524
from tensorrt_llm.lora_helper import (LoraConfig,
2625
get_default_trtllm_modules_to_hf_modules)
2726

@@ -2161,26 +2160,6 @@ def validate_peft_cache_config(self):
21612160
"while LoRA prefetch is not supported")
21622161
return self
21632162

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-
21842163
def _update_plugin_config(self, key: str, value: Any):
21852164
setattr(self.build_config.plugin_config, key, value)
21862165

tensorrt_llm/llmapi/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,6 @@ def enable_llmapi_debug() -> bool:
349349
return _enable_llmapi_debug_
350350

351351

352-
def orchestrator_type_env() -> Optional[str]:
353-
return os.environ.get("TLLM_ORCHESTRATOR_TYPE", None)
354-
355-
356352
@cache
357353
def enable_worker_single_process_for_tp1() -> bool:
358354
''' Tell whether to make worker use single process for TP1.

0 commit comments

Comments
 (0)