1. 11 Oct, 2023 1 commit
    • Billy Bradley's avatar
      In assisted decoding, pass model_kwargs to model's forward call (fix... · dcc49d8a
      Billy Bradley authored
      In assisted decoding, pass model_kwargs to model's forward call (fix prepare_input_for_generation in all models) (#25242)
      
      * In assisted decoding, pass model_kwargs to model's forward call
      
      Previously, assisted decoding would ignore any additional kwargs
      that it doesn't explicitly handle. This was inconsistent with other
      generation methods, which pass the model_kwargs through
      prepare_inputs_for_generation and forward the returned dict to the
      model's forward call.
      
      The prepare_inputs_for_generation method needs to be amended in all
      models, as previously it only kept the last input ID when a past_key_values
      was passed.
      
      * Improve variable names in _extend_attention_mask
      
      * Refactor extending token_type_ids into a function
      
      * Replace deepcopy with copy to optimize performance
      
      * Update new persimmon model with llama changes for assisted generation
      
      * Update new mistral model for assisted generation with prepare_inputs_for_generation
      
      * Update position_ids creation in falcon prepare_inputs_for_generation to support assisted generation
      dcc49d8a
  2. 14 Sep, 2023 1 commit
  3. 12 Sep, 2023 1 commit
  4. 23 Aug, 2023 1 commit
  5. 16 Aug, 2023 1 commit
  6. 09 Aug, 2023 1 commit
  7. 06 Aug, 2023 1 commit
  8. 20 Jul, 2023 1 commit
  9. 27 Jun, 2023 1 commit
  10. 23 Jun, 2023 1 commit
  11. 07 Jun, 2023 1 commit
  12. 18 May, 2023 2 commits
  13. 16 May, 2023 1 commit
  14. 08 May, 2023 1 commit
  15. 03 May, 2023 1 commit
  16. 29 Apr, 2023 1 commit
  17. 24 Apr, 2023 1 commit
  18. 18 Apr, 2023 2 commits
  19. 13 Apr, 2023 1 commit
  20. 23 Mar, 2023 1 commit
  21. 22 Mar, 2023 1 commit
  22. 16 Mar, 2023 1 commit
  23. 22 Feb, 2023 1 commit
  24. 14 Feb, 2023 1 commit
  25. 13 Feb, 2023 3 commits
  26. 09 Feb, 2023 1 commit
  27. 08 Feb, 2023 2 commits
  28. 07 Feb, 2023 1 commit
  29. 06 Feb, 2023 2 commits
  30. 03 Feb, 2023 2 commits
  31. 01 Feb, 2023 1 commit
  32. 31 Jan, 2023 1 commit
  33. 30 Jan, 2023 1 commit