forked from openai/GPT-3-Encoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1f583c
commit 9fa3183
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
GPT-3-Encoder | ||
Javascript BPE Encoder Decoder for GPT-2 / GPT-3 | ||
|
||
## About | ||
GPT-2 and GPT-3 use byte pair encoding to turn text into a serires of integers to feed into the model. This is a javascript implementation of OpenAI's original python encoder/decoder which can be found [here](https://github.com/openai/gpt-2) | ||
|
||
## How to Use | ||
1. [Install Node](https://nodejs.org/en/download/package-manager/) | ||
2. `clone https://github.com/AIDungeon/GPT-3-Encoder.git` | ||
3. `cd GPT-3-Encoder.git` | ||
4. `npm install` | ||
5. `node example.js` |