Token generation method, computer device, and storage medium
Патент · US A1
Полный текст
Token generation method and device are provided. The method includes obtaining input information for a current inference stage of a target model, the input information including first tokens and second tokens, the first tokens including target tokens output from a previous inference stage, and the second tokens including guessing tokens output from the previous inference stage; generating, based on inference performed by the target model, candidate weights for the first tokens and the second tokens, the candidate weights indicating likelihoods that candidate tokens are to be selected as target tokens; and decoding the candidate weights for the first tokens using a first decoding algorithm to generate first target tokens and decoding the candidate weights for the second tokens using a second decoding algorithm to generate second target tokens, and the first decoding algorithm being different from the second decoding algorithm.