Added support for SamplingParams to LlamaProcessor.
Also added SamplingProcessor to the Llama constructor instead of passing it as a param to Llama.getNext(). You can change this back if you like but it makes prompting with the LlamaProcessor cleaner as this way SamplingParam doesn't need to be passed to the isolate for each prompt.
@danemadsen I have just committed sampling code, seems it made outputs follows system instruction more closely... can you play with it and see if that works for you? I will accept your changes.
Added support for
SamplingParams
toLlamaProcessor
.Also added
SamplingProcessor
to theLlama
constructor instead of passing it as a param toLlama.getNext()
. You can change this back if you like but it makes prompting with theLlamaProcessor
cleaner as this waySamplingParam
doesn't need to be passed to the isolate for each prompt.