Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In assisted decoding, pass model_kwargs to model's forward call (fix prepare_input_for_generation in all models) #25242

Commits on Oct 11, 2023

  1. 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.
    sinking-point committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    d8dd986 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    977dd72 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8ce58b4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    81a04c2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2ee2e79 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    008e7ca View commit details
    Browse the repository at this point in the history
  7. Update position_ids creation in falcon prepare_inputs_for_generation …

    …to support assisted generation
    sinking-point committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    8ce040d View commit details
    Browse the repository at this point in the history