Description:
vLLM is a high-performance LLM inference and service framework that focuses on optimizing the inference efficiency of large-scale language models. Its core features include PageAttention and efficient memory management. The main function of the advance_step operator is to advance the inference step, that is, update the model status and generate new inputTokens, inputPositions, seqLens, and slotMapping in each generation step, improving the inference efficiency of vLLM.
Formula:
Each operator has calls. First, aclnnAdvanceStepGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnAdvanceStep is called to perform computation.
Parameters:
[object Object]Returns:
[object Object]: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown:
[object Object]- Deterministic compute:
- aclnnAdvanceStep defaults to a deterministic implementation.
The following example is for reference only. For details, see .