MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / llm_generate

Function llm_generate

fastdeploy/benchmarks/latency.py:99–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 dummy_prompts = [{"prompt_token_ids": batch} for batch in dummy_prompt_token_ids.tolist()]
98
99 def llm_generate():
100 llm.generate(dummy_prompts, sampling_params=sampling_params, use_tqdm=False, stream=True)
101
102 def run_to_completion():
103 start_time = time.perf_counter()

Callers 1

run_to_completionFunction · 0.85

Calls 1

generateMethod · 0.45

Tested by

no test coverage detected