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

Function wrapper

tests/test_common/llm_data.py:120–127  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

118
119 @wraps(func)
120 def wrapper(*args, **kwargs):
121 with (
122 patch.dict(os.environ, {"HF_HUB_OFFLINE": "1"}),
123 patch(
124 "tensorrt_llm.llmapi.utils.snapshot_download", side_effect=mock_snapshot_download
125 ),
126 ):
127 return func(*args, **kwargs)
128
129 return wrapper

Callers

nothing calls this directly

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected