Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Calculate correct input length for every prompt in a single batch #222

@kira-lin

Description

@kira-lin

After #209 closes, consider to calculate correct input length for every prompt in MultiplePromptInput, as well as generated tokens.

torch.sum(input_ids == tokenizer.pad_token_id, dim=0).tolist()

Doing so can remove pad tokens when calculating benchmark results.

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