Currently, the Sampler resource only supports autoregressive-type generation: one token per request, and only returns the sampled tokens. For discrete diffusion, we need to be able to sample multiple (an arbitrary number) of tokens per request, and also return the log probabilities. This would probably make sense as a new Resource, but is also could be incorporated into the existing Sampler.
Currently, the
Samplerresource only supports autoregressive-type generation: one token per request, and only returns the sampled tokens. For discrete diffusion, we need to be able to sample multiple (an arbitrary number) of tokens per request, and also return the log probabilities. This would probably make sense as a newResource, but is also could be incorporated into the existingSampler.