You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs when trying to replicate the classification example here. This error seems to be due to the isinstance always returning False. This might be more of a Python oddity.
This fixes issue #978. Specifically for the classification example in
the outlines cookbook section
[here](https://outlines-dev.github.io/outlines/cookbook/classification/),
it fixes the piece of code in
outlines.generate.api.SequenceGeneratorAdapter that keeps returning the
wrong result (i.e. returning False even if a specific sampler is passed
(greedy, multinomial, or beam search).
Describe the issue as clearly as possible:
The error occurs when trying to replicate the classification example here. This error seems to be due to the
isinstance
always returning False. This might be more of a Python oddity.Steps/code to reproduce the bug:
Expected result:
Error message:
No response
Outlines/Python version information:
Outlines: 0.0.44
Python: 3.10.14
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: