UnregisterKvCache
Applicability
Product |
Supported (√/x) |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
Note: For
Function Description
Deregisters the local KV cache memory.
Prototype
1 | Status UnregisterKvCache(int64_t cache_id); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
cache_id |
Input |
Cache ID generated during local registration. If the specified cache_id does not exist, LLM_SUCCESS is returned by default. |
Example
Click Gitee, download the sample package of the matching version based on the tag name, and obtain the sample from the cplusplus/level1_single_api/11_llm_data_dist directory.
Returns
- LLM_SUCCESS: Success.
- Other values: Failure.
Restrictions
Before calling this API, call the Initialize API to complete initialization. The value of cache_id must be that returned by the RegisterKvCache API.