DeallocateCache

Applicability

Product

Supported (Yes/No)

Atlas 350 Accelerator Card

No

Atlas A3 training product/Atlas A3 inference product

Yes

Atlas A2 training product/Atlas A2 inference product

Yes

Atlas 200I/500 A2 inference product

No

Atlas inference product

No

Atlas training product

No

Note: For the Atlas A2 training product/Atlas A2 inference product, only the Atlas 800I A2 inference server and A200I A2 Box heterogeneous subrack are supported.

Function Description

Deallocates a cache.

Prototype

1
Status DeallocateCache(int64_t cache_id)

Parameters

Parameter

Input/Output

Description

cache_id

Input

Cache ID.

Example

1
Status ret = llm_datadist.DeallocateCache(cache.cache_id)

Returns

  • LLM_SUCCESS: Success.
  • Other values: Failure.

Constraints

Before calling this API, call the Initialize API to complete initialization.