Skip to content

size of package #3

Description

@weejulius

"gpt2": CoreBPEConstructor.gpt2,

firstly thanks for your tiktoken library, and there might be a consideration regarding the const variable "all". It will refer all the ranks, so that the treeshaking does not work well in case not all of the models are used.

The diff :
All model: 21.7MB
Only cl100k_base: 20.6MB

The number might not be too much(~1M) however it might be a step of improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions