Search results

7 packages found

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

published version 2.9.0, a month ago113 dependents licensed under $MIT
752,368

Javascript BPE Encoder Decoder for GPT-2 / GPT-3. The "gpt-3-encoder" module provides functions for encoding and decoding text using the Byte Pair Encoding (BPE) algorithm. It can be used to process text data for input into machine learning models, or to

published version 1.4.0-rc5, 2 years ago0 dependents licensed under $MIT
16,392

Javascript BPE Encoder Decoder for GPT-2 / GPT-3. The "gpt-3-encoder" module provides functions for encoding and decoding text using the Byte Pair Encoding (BPE) algorithm. It can be used to process text data for input into machine learning models, or to

published version 0.1.0, 2 years ago2 dependents licensed under $MIT
3,825

Lightweight trimmed down encoder/decoder/tokenizer/token counter for gpt3 that is compatible with both node and browser environments

published version 0.0.1, 2 years ago1 dependents licensed under $MIT
80

A pure JavaScript implementation of a BPE tokenizer (Encoder/Decoder) for GPT-2 / GPT-3 / GPT-4 / Claude Instant / Claude 2

published version 0.3.2, 2 years ago1 dependents licensed under $MIT
38

Prevent GPT prompt attacks for Node.js & TypeScript

published version 0.2.0, 2 years ago0 dependents licensed under $Apache-2.0
41

Simple GPT

published version 1.0.501, 2 years ago0 dependents licensed under $ISC
11