2 ms·
That last link is interesting. See https://github.com/outlines-dev/outlines#using-context-free-grammars-to-guide-generation https://github.com/outlines-dev/outl
by airstrike 3y ago
That last link is interesting. See https://github.com/outlines-dev/outlines#using-context-free-grammars-to-guide-generation https://github.com/outlines-dev/outlines#using-context-free-... specifically
# ...
sequence = generator("Write a formula that returns 5 using only additions and subtractions.")
# It looks like Mistral is not very good at arithmetics :)
print(sequence)
# 1+3-2-4+5-7+8-6+9-6+4-2+3+5-1+1
sure, that's "correct" per the definition of the grammar, but it's also one of the worst possible way to get to the number 5