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.
ContrastiveSeqBatchScheduler
is a class which implements the contrastive search algorithm used in SeqBatchScheduler.SearchConfig
is a class whose fields are parameters used for autoregressive search / text generation.SeqBatcher
stores 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.StepGeneration
is a utility class containing the step generation utility functions used in autoregressive search.TextGenerator
is an LMSearch (language model search) which contains multiple autoregressive search methods.