Open hans00 opened 3 weeks ago
ref: https://github.com/huggingface/transformers/blob/main/src/transformers/generation/stopping_criteria.py
This will helpful for abstraction EOS stopping, max length stopping etc. And could support stop words.
I'll implement it if I have time.
Hi there 👋 This has been added to v3 (see here).
Feature request
ref: https://github.com/huggingface/transformers/blob/main/src/transformers/generation/stopping_criteria.py
Motivation
This will helpful for abstraction EOS stopping, max length stopping etc. And could support stop words.
Your contribution
I'll implement it if I have time.