random programmer: "This PR adds a provision for adding custom samplers when using the transformers library for generation. We include the tail-free and top-a samplers, but the file sampler_hijack.py can be extended later to add more samplers.

To do this, we monkey-patch:

transformers.GenerationMixin to add the new samplers into _get_logits_warper() after the existing samplers, but before logit normalization
transformers.GenerationConfig to add the new samplers' values as generation arguments
This is intended to be a temporary solution to #2198 until HF adds these samplers to the transformers library. When that happens, it is trivial to just remove the custom samplers from sampler_hijack.py."

developer: "I appreciate the effort to provide new samplers, but I don't think it's worth it to add a new monkey patch just for this. A similar parameter already exists in the ui (eta_sampling). I have recently added a proper preset for using it:"

developer: "Well, ffs, so many people are asking for this that I'll just merge it before I get lynched"

what is this github pull request conversation about? Provide your response in exactly 3 paragraphs (separated nearby paragraphs with 3 aterisk symbols ***).
user