candle
candle copied to clipboard
Does candle provide pytorch's torch.multinomial?
https://pytorch.org/docs/stable/generated/torch.multinomial.html. If it is not implemented, I can implement this interface
+1
https://docs.rs/candle-transformers/latest/candle_transformers/generation/struct.LogitsProcessor.html#method.sample provides it, I believe.