|
|
|
|
|
by JohnKemeny
424 days ago
|
|
But the problem is that the tokens are subwords, which means that if you simply disallowed tokens with es, you'd make it hard to complete a word given a prefix. For example, it may start like this "This is a way to solv-", or "This is th-" |
|
One beam could be "This is a way to solv-". With no obvious "good" next token. Another beam could be "This way is solv-". With "ing" as the obvious next token.
It will select the best beam for the output.
[1]:https://github.com/dottxt-ai/outlines