Skip to content

Incorrect logprob sum #15

@ZeeshanZulfiqarAli

Description

@ZeeshanZulfiqarAli

The logprobs summation seems to incorrectly include the colon(:) token. This can simply be fixed by:

    def _compute_logprob_sum(self, start: int, end: int) -> float:
        token_start = self.token_indices[start+1]
        ...

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