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

Function main

examples/llm-api/llm_speculative_decoding.py:82–91  ·  view source on GitHub ↗
(algo: str, model: Optional[str] = None)

Source from the content-addressed store, hash-verified

80 default=None,
81 help="Path to the model or model name.")
82def main(algo: str, model: Optional[str] = None):
83 algo = algo.upper()
84 if algo == "MTP":
85 run_MTP(model)
86 elif algo == "EAGLE3":
87 run_Eagle3()
88 elif algo == "NGRAM":
89 run_ngram()
90 else:
91 raise ValueError(f"Invalid algorithm: {algo}")
92
93
94if __name__ == "__main__":

Callers 1

Calls 3

run_MTPFunction · 0.85
run_Eagle3Function · 0.85
run_ngramFunction · 0.85

Tested by

no test coverage detected