"docs/vscode:/vscode.git/clone" did not exist on "73ec4340ec651ca1fe4f8ead9206297a4d4ed79c"
  1. 07 Jun, 2021 5 commits
  2. 04 Jun, 2021 2 commits
  3. 03 Jun, 2021 2 commits
  4. 02 Jun, 2021 8 commits
  5. 01 Jun, 2021 15 commits
  6. 31 May, 2021 4 commits
  7. 28 May, 2021 3 commits
  8. 27 May, 2021 1 commit
    • Nicolas Patry's avatar
      Adding new argument `max_new_tokens` for generate. (#11476) · 80d712fa
      Nicolas Patry authored
      * Adding new argument `max_new_tokens` for generate.
      
      This is a proposal to add a new argument `max_new_tokens` to `generate`.
      This include a `MaxNewTokensCriteria` that enables callers that don't
      know about the token length ahead (like pipelines callers) to manage
      more easily the length of their generated output.
      
      * Adding a test for the user warning when both`max_length` and
      `max_new_tokens` are used together.
      
      * Removed redundant `no_grad`.
      80d712fa