LLM-DataDist API List_V1
LLM-DataDist is a distributed LLM cluster and data acceleration component. It provides clustered KV data management capabilities and supports disaggregated deployment of full graphs and incremental graphs.
The following products are supported:
Atlas A2 training product /Atlas A2 inference product : ForAtlas A2 training product /Atlas A2 inference product , only the Atlas 800I A2 inference server and A200I A2 Box heterogeneous subrack are supported.Atlas A3 training product /Atlas A3 inference product
The related APIs are stored in ${INSTALL_DIR}/include/llm_datadist/llm_datadist.h. Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.
The library file corresponding to the following APIs is libllm_engine.so.
The LLM-DataDist APIs are listed as follows.
API |
Description |
|---|---|
Constructs an LLM-DataDist instance. |
|
Destructs an LLM-DataDist instance. |
|
Initializes the LLM-DataDist instance. |
|
Releases the LLM-DataDist instance. |
|
Sets the role of the current LLM-DataDist. |
|
Establishes a link. |
|
Disconnects a link. |
|
Pulls the KV cache in contiguous memory mode. |
|
Pulls the KV cache in block list mode. |
|
Copies the KV cache in contiguous memory mode. |
|
Copies the KV cache in block list mode. |
|
Pushes the cache to the remote node. This API can be called only when the role is Prompt. |
|
Pushes the cache to the remote node in block list mode. This API can be called only when the role is Prompt. |
|
Allocates a cache. |
|
Deallocates a cache. |