UNPKG

gpt-tokenizer

Version:

A pure JavaScript implementation of a BPE tokenizer (Encoder/Decoder) for GPT-2 / GPT-3 / GPT-4 and other OpenAI models

4 lines (3 loc) 99 B
export default bpe; /** @type {(string | number[])[]} */ declare const bpe: (string | number[])[];