deallocate_blocks_cache
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Note: For the
Function Description
Releases the cache allocated by allocate_blocks_cache in the PagedAttention scenario.
Prototype
1 | deallocate_blocks_cache(cache: Cache) |
Parameters
Parameter |
Data Type |
Description |
|---|---|---|
cache |
Cache to be released. |
Example
1 2 3 | from llm_datadist import BlocksCacheKey ... cache_manager.deallocate_blocks_cache(blocks_cache) |
Returns
In normal cases, no value is returned.
If the input data type is incorrect, a TypeError or ValueError is thrown.
If the execution time exceeds the value of sync_kv_timeout, an LLMException is thrown.
Restrictions
None