Skip to content

Panic: Encoder and decoder must be of equal length; maybe you had duplicate token indices in your encoder? #67

@chris-monardo

Description

@chris-monardo

My team's CI occasionally hits this issue with the GPT OSS encoding.
Is this likely a network download issue? If so integrity checks would be helpful.
Improved debug messages would help too.

thread '<unnamed>' panicked at src/tiktoken.rs:483:9:
Encoder and decoder must be of equal length; maybe you had duplicate token indices in your encoder?

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