Skip to content

Javascript BPE Encoder Decoder for GPT-2 / GPT-3

License

Notifications You must be signed in to change notification settings

kunal8164705/GPT-3-Encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

How to Use

  1. Install Node
  2. clone https://github.com/AIDungeon/GPT-3-Encoder.git
  3. cd GPT-3-Encoder.git
  4. npm install
  5. node example.js

About

Javascript BPE Encoder Decoder for GPT-2 / GPT-3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.8%
  • Python 37.2%