---
title: 功能说明
description: "基于传统flash attention按照layerId管理kvcache的机制计算attention score。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0257.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0257.html
indexId: 40bc66576010df434808ce5e32828c73945a807d361f8d95892144c77e51decd64
---
# 功能说明

基于传统flash attention按照layerId管理kvcache的机制计算attention score。
