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
This PR addresses #1335
I have kept the `SamplingParameters` in `outlines/generate/api.py` cause
its imported at many places and may break examples ig.
Would you want to change that @dgerlanc ??
Otherwise if this looks good, I can make docs changes if needd, lmk.
What behavior of the library made you think about the improvement?
Since we already have classes for samplers, we should encapsulate the known behaviors of the samplers within that class.
How would you like it to behave?
Currently, the
SamplingParameters
are processed in conditional statement at line 431 ofoutlines/generate/api.py
I think we should move the generation of the sampling parameters to the individual sampler classes.
The new code in
SequenceGeneratorAdapter
would be:And each of these classes would get a
sampling_parameters
property or method.This will allow us to add new samplers without modifying the code in
SequenceGeneratorAdapter
The text was updated successfully, but these errors were encountered: