Lookback-Lens icon indicating copy to clipboard operation
Lookback-Lens copied to clipboard

LLamaQaStoppingCriteria not in transformers.generation.stopping_criteria?

Open li-yang23 opened this issue 1 year ago • 1 comments
trafficstars

I just checked codes in generation.py and I noticed it import LLamaQaStoppingCriteria from transformers.generation.stopping_criteria. However I did not find this function (or class) in the transformers/generation/stopping_criteria.py script. (not from the transformers installed by pip nor in this repo), may be it comes from another dependency?

li-yang23 avatar Jul 16 '24 08:07 li-yang23

Hi!

It's from this part of the code:

https://github.com/voidism/Lookback-Lens/blob/8298a9525943b3398fe20316867a53b322647c98/transformers-4.32.0/src/transformers/generation/stopping_criteria.py#L43

If you pip install ./transformers-4.32.0, you should be able to import it, at least it worked in my test. Let my know if it's still not working!

voidism avatar Jul 17 '24 05:07 voidism