---
title: cache_desc
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/llmdatadistdev/llmpr_42_0051.html
sourcePath: /source/zh/canncommercial/900/others/llmdatadistdev/llmpr_42_0051.html
indexId: baa6cea0a23532fc0763112bcd76993ff32818e5b61411122cdd570bb0c6292370
---
# cache_desc

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


说明：针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，仅支持Atlas 800I A2 推理服务器、A200I A2 Box 异构组件。


#### 函数功能

获取KvCache描述。


#### 函数原型

```
@property
cache_desc() -> CacheDesc
```


#### 参数说明

无


#### 调用示例

```
kv_cache = kv_cache_manager.allocate_cache(cache_desc, cache_keys)
print(kv_cache.cache_desc.num_tensors)
```


#### 返回值

正常情况返回类型为KvCache的cache描述。


#### 约束说明

无
