"tests/models/convnext/__init__.py" did not exist on "5b396457e5035a8b16ddee14b205c098598fe6bb"
  • Konstantin Kotik's avatar
    `MinNewTokensLengthLogitsProcessor` for `.generate` method #20814 (#20892) · 367fdf33
    Konstantin Kotik authored
    
    
    * feat: add min new length logit processor
    
    * test: add min new length logit processor
    
    * docs: add MinNewTokensLengthLogitsProcessor
    
    * feat: import MinNewTokensLengthLogitsProcessor
    
    * fix: update pytorch dummy objects
    
    * refactor & fix: rename attributes and var and get rid of dynamic attribute
    
    * tests: align test with new interface
    
    * docs: fix typo
    
    * docs: minor clarification
    
    * Empty-Commit
    
    * empty commit
    
    * run automated quality edits
    Co-authored-by: default avatarJoao Gante <joao@huggingface.co>
    367fdf33
test_logits_process.py 25.7 KB