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

Function init_app

fastdeploy/entrypoints/api_server.py:37–50  ·  view source on GitHub ↗

init LLMEngine

(args)

Source from the content-addressed store, hash-verified

35
36
37def init_app(args):
38 """
39 init LLMEngine
40 """
41
42 global llm_engine
43 engine_args = EngineArgs.from_cli_args(args)
44 llm_engine = LLMEngine.from_engine_args(engine_args)
45 if not llm_engine.start():
46 api_server_logger.error("Failed to initialize FastDeploy LLM engine, service exit now!")
47 return False
48
49 api_server_logger.info("FastDeploy LLM engine initialized!")
50 return True
51
52
53@app.get("/health")

Callers 1

launch_api_serverFunction · 0.85

Calls 5

from_cli_argsMethod · 0.80
from_engine_argsMethod · 0.45
startMethod · 0.45
errorMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected