Class LogitsProcessorList
java.lang.Object
chat.octet.model.components.processor.LogitsProcessorList
- All Implemented Interfaces:
LogitsProcessor
Stopping criteria list
- Author:
- William
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(LogitsProcessor processor) booleanisEmpty()float[]Logits processor
-
Constructor Details
-
LogitsProcessorList
public LogitsProcessorList()
-
-
Method Details
-
add
-
isEmpty
public boolean isEmpty() -
processor
Description copied from interface:LogitsProcessorLogits processor- Specified by:
processorin interfaceLogitsProcessor- Parameters:
inputTokenIds- Indices of input sequence tokens in the vocabulary.scores- Prediction scores of a language modeling head. These can be logits for each vocabulary.args- Specific args to a logits processor.- Returns:
- float[] The processed prediction scores.
-