MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / llm_models_root

Function llm_models_root

tests/test_common/llm_data.py:49–63  ·  view source on GitHub ↗
(check: bool = False)

Source from the content-addressed store, hash-verified

47
48
49def llm_models_root(check: bool = False) -> Optional[Path]:
50 root = Path("/home/scratch.trt_llm_data_ci/llm-models/")
51
52 if "LLM_MODELS_ROOT" in os.environ:
53 root = Path(os.environ.get("LLM_MODELS_ROOT"))
54
55 if not root.exists():
56 root = Path("/scratch.trt_llm_data/llm-models/")
57
58 if check:
59 assert root.exists(), (
60 "You must set LLM_MODELS_ROOT env or be able to access /home/scratch.trt_llm_data_ci to run this test"
61 )
62
63 return root if root.exists() else None
64
65
66def llm_datasets_root() -> str:

Callers 15

TestNemotronHClass · 0.90
TestNemotronMOEClass · 0.90
TestNemotronSuperV3Class · 0.90
create_link_for_modelsFunction · 0.90
model_filesFunction · 0.90
_build_base_commandMethod · 0.90
test_deepseek_r1_ctx_depFunction · 0.90
test_deepseek_r1_ctx_tepFunction · 0.90
test_nemotron_gen_depFunction · 0.90

Calls 1

getMethod · 0.45

Tested by 15

create_link_for_modelsFunction · 0.72
model_filesFunction · 0.72
_build_base_commandMethod · 0.72
test_deepseek_r1_ctx_depFunction · 0.72
test_deepseek_r1_ctx_tepFunction · 0.72
test_nemotron_gen_depFunction · 0.72
test_qwen3_next_gen_tepFunction · 0.72
get_model_pathFunction · 0.72