MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / gpt_example_root

Function gpt_example_root

tests/integration/defs/conftest.py:368–376  ·  view source on GitHub ↗

Get gpt example root

(llm_root, llm_venv)

Source from the content-addressed store, hash-verified

366
367@pytest.fixture(scope="module")
368def gpt_example_root(llm_root, llm_venv):
369 "Get gpt example root"
370 example_root = os.path.join(llm_root, "examples", "models", "core", "gpt")
371 llm_venv.run_cmd([
372 "-m", "pip", "install", "-r",
373 os.path.join(example_root, "requirements.txt")
374 ])
375
376 return example_root
377
378
379@pytest.fixture(scope="module")

Callers

nothing calls this directly

Calls 1

run_cmdMethod · 0.45

Tested by

no test coverage detected