gpt-tokenizer
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "gpt-tokenizer", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "BPE Encoder Decoder for GPT-2 / GPT-3", | ||
@@ -64,3 +64,3 @@ "keywords": [ | ||
"main": "esm/main.js", | ||
"unpkg": "dist/main.js", | ||
"unpkg": "dist/gpt3encoder.js", | ||
"module": "esm/main.js", | ||
@@ -67,0 +67,0 @@ "source": "src/main.ts", |
@@ -1,3 +0,5 @@ | ||
# `gpt-tokenizer` | ||
# gpt-tokenizer | ||
[![Play with gpt-tokenizer](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/gpt-tokenizer-tjcjoz?fontsize=14&hidenavigation=1&theme=dark) | ||
`gpt-tokenizer` is a highly optimized Token Byte Pair Encoder/Decoder for GPT-2, GPT-3, GPT-3.5 and GPT-4 designed for JavaScript applications. OpenAI's GPT models utilize byte pair encoding to transform text into a sequence of integers before feeding them into the model. This package is a JavaScript implementation of OpenAI's original Python encoder/decoder, which can be found [here](https://github.com/openai/gpt-2). | ||
@@ -31,2 +33,10 @@ | ||
## Playground | ||
You can play with the package in the browser using the [Playground](https://codesandbox.io/s/gpt-tokenizer-tjcjoz?fontsize=14&hidenavigation=1&theme=dark). | ||
[![GPT Tokenizer Playground](./docs/gpt-tokenizer.png)](https://codesandbox.io/s/gpt-tokenizer-tjcjoz?fontsize=14&hidenavigation=1&theme=dark) | ||
The playground mimics the official [OpenAI Tokenizer](https://platform.openai.com/tokenizer). | ||
## Usage | ||
@@ -33,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2422867
205