Skip to main content
Fig. 2 | Journal of Cheminformatics

Fig. 2

From: Accelerating the inference of string generation-based chemical reaction models for industrial applications

Fig. 2

Speculative decoding accelerates product prediction with the Molecular Transformer or a similar autoregressive SMILES generator. Before generating an output sequence, we prepare a list of subsequences of a desired length, e.g., four, of the tokenized query SMILES of reactants. Then, at every generation step, the model can copy up to four tokens from one of the draft sequences to the output, thus generating from one to five tokens in one forward pass. Colors highlight the best draft at every decoding step

Back to article page