MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / enable_llm_debug

Function enable_llm_debug

tensorrt_llm/llmapi/utils.py:339–344  ·  view source on GitHub ↗

Tell whether to enable the debug mode for LLM class.

()

Source from the content-addressed store, hash-verified

337
338
339def enable_llm_debug() -> bool:
340 ''' Tell whether to enable the debug mode for LLM class. '''
341 global _enable_llm_debug_
342 if _enable_llm_debug_ is None:
343 _enable_llm_debug_ = os.environ.get("TLLM_LLM_ENABLE_DEBUG", "0") == "1"
344 return _enable_llm_debug_
345
346
347_enable_llmapi_debug_ = None

Callers 11

write_guardMethod · 0.90
get_scoresMethod · 0.90
get_scoresMethod · 0.90
__call__Method · 0.90
print_alive_threadsFunction · 0.90
main_taskMethod · 0.90
_build_modelMethod · 0.85
executor.pyFile · 0.85
closeMethod · 0.85
shutdownMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected