Skip to content

A variable past_key_value is defined but not used correctly. #25

@Flanker-ultimate

Description

@Flanker-ultimate

In the provided code snippet, a variable past_key_value is defined but not used correctly. The code intends to process the key - value pairs for each layer during the forward pass of the decoder layers. However, when calling the decoder_layer for forward propagation, the entire past_key_values is passed instead of the current layer's past_key_value.

past_key_value = (
    past_key_values[idx]
    if (past_key_values is not None and idx < len(past_key_values))
    else None
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions