Package ai.djl.modality.nlp.generate
package ai.djl.modality.nlp.generate
Contains utility classes for image manipulation.
-
ClassesClassDescriptionBatchTensorList represents a search state, and the NDArrays inside are updated in each iteration of the autoregressive loop.CausalLMOuput is used to contain multiple output of a language model.
ContrastiveSeqBatchScheduleris a class which implements the contrastive search algorithm used in SeqBatchScheduler.SearchConfigis a class whose fields are parameters used for autoregressive search / text generation.SeqBatcherstores the search state (BatchTensorList), the control variables (e.g.This is a scheduler, serving as an API to the consumer of the system, allowing for three major actions: initForward, addBatch, fastForward, collectResults.StepGenerationis a utility class containing the step generation utility functions used in autoregressive search.TextGeneratoris an LMSearch (language model search) which contains multiple autoregressive search methods.