Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gpt-3-encoder

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpt-3-encoder - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

encoder.js

@@ -64,7 +64,7 @@ // This file includes code which was modified from https://github.com/openai/gpt-2

const encoder = JSON.parse(fs.readFileSync('encoder.json'))
const encoder = JSON.parse(fs.readFileSync('./encoder.json'))
const decoder = {}
Object.keys(encoder).map(x => { decoder[encoder[x]] = x })
const bpe_file = fs.readFileSync('vocab.bpe', 'utf-8')
const bpe_file = fs.readFileSync('./vocab.bpe', 'utf-8')
const lines = bpe_file.split('\n')

@@ -71,0 +71,0 @@

{
"name": "gpt-3-encoder",
"version": "1.0.3",
"version": "1.0.4",
"description": "Javascript BPE Encoder Decoder for GPT-2 / GPT-3",

@@ -5,0 +5,0 @@ "main": "encoder.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc