Skip to content

Commit

Permalink
revert npm for semi major release 1.2.0 latitudegames ... note you wi…
Browse files Browse the repository at this point in the history
…ll need to deploy docs to github pages for demo to work
  • Loading branch information
syonfox committed Jan 18, 2023
1 parent c3c2e25 commit 70c4b30
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 30 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@ documentation.
To install with npm:

```
npm install @syonfox/gpt-3-encoder
npm install gpt-3-encoder
```

## Usage

<a href="https://www.npmjs.com/package/@syonfox/gpt-3-encoder">
<img src="https://img.shields.io/npm/v/@syonfox/gpt-3-encoder.svg" alt="npm version">
<a href="https://www.npmjs.com/package/gpt-3-encoder">
<img src="https://img.shields.io/npm/v/gpt-3-encoder.svg" alt="npm version">
</a>



[![JSDocs](https://img.shields.io/badge/JS%20Docs-Read%20them%20maybe-brightgreen)](https://syonfox.github.io/GPT-3-Encoder/)
[![JSDocs](https://img.shields.io/badge/JS%20Docs-Read%20them%20maybe-brightgreen)](https://latitudegames.github.io/GPT-3-Encoder/)

Also check out the browser demo [browser demo](https://syonfox.github.io/GPT-3-Encoder/browser.html)
Also check out the browser demo [browser demo](https://latitudegames.github.io/GPT-3-Encoder/browser.html)

[![GitHub last commit](https://img.shields.io/github/last-commit/syonfox/GPT-3-Encoder)](https://github.com/syonfox/GPT-3-Encoder/commits)
[![example workflow](https://github.com/syonfox/GPT-3-Encoder/actions/workflows/node.js.yml/badge.svg)](https://github.com/syonfox/GPT-3-Encoder/actions)
[![github](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/syonfox/GPT-3-Encoder/)
[![GitHub last commit](https://img.shields.io/github/last-commit/latitudegames/GPT-3-Encoder)](https://github.com/latitudegames/GPT-3-Encoder/commits)
[![example workflow](https://github.com/latitudegames/GPT-3-Encoder/actions/workflows/node.js.yml/badge.svg)](https://github.com/latitudegames/GPT-3-Encoder/actions)
[![github](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/latitudegames/GPT-3-Encoder/)

Compatible with Node >= 12

To use the library in your project, import it as follows:

```js
const GPT3Encoder = require('@syonfox/gpt-3-encoder');
const GPT3Encoder = require('gpt-3-encoder');
```

### Additional Features
Expand Down Expand Up @@ -97,7 +97,7 @@ I have added som other examples to the examples folder.
Please take a look at package.json for how to do stuff

```sh
git clone https://github.com/syonfox/GPT-3-Encoder.git
git clone https://github.com/latitudegames/GPT-3-Encoder.git

cd GPT-3-Encoder

Expand All @@ -120,7 +120,9 @@ npm publish --access public # dev publish to npm


```

Performance

Built bpe_ranks in 100 ms

// using js loading (probably before cache)
Expand Down
2 changes: 1 addition & 1 deletion docs/Encoder.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Sun Jan 08 2023 03:34:35 GMT-0500 (Eastern Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Wed Jan 18 2023 17:24:41 GMT-0500 (Eastern Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Sun Jan 08 2023 03:34:35 GMT-0500 (Eastern Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Wed Jan 18 2023 17:24:41 GMT-0500 (Eastern Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
26 changes: 13 additions & 13 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ <h3> </h3>
documentation.</p>
<h2>Installation</h2>
<p>To install with npm:</p>
<pre class="prettyprint source"><code>npm install @syonfox/gpt-3-encoder
<pre class="prettyprint source"><code>npm install gpt-3-encoder
</code></pre>
<h2>Usage</h2>
<a href="https://www.npmjs.com/package/@syonfox/gpt-3-encoder">
<img src="https://img.shields.io/npm/v/@syonfox/gpt-3-encoder.svg" alt="npm version">
<a href="https://www.npmjs.com/package/gpt-3-encoder">
<img src="https://img.shields.io/npm/v/gpt-3-encoder.svg" alt="npm version">
</a>
<p><a href="https://syonfox.github.io/GPT-3-Encoder/"><img src="https://img.shields.io/badge/JS%20Docs-Read%20them%20maybe-brightgreen" alt="JSDocs"></a></p>
<p>Also check out the browser demo <a href="https://syonfox.github.io/GPT-3-Encoder/browser.html">browser demo</a></p>
<p><a href="https://github.com/syonfox/GPT-3-Encoder/commits"><img src="https://img.shields.io/github/last-commit/syonfox/GPT-3-Encoder" alt="GitHub last commit"></a>
<a href="https://github.com/syonfox/GPT-3-Encoder/actions"><img src="https://github.com/syonfox/GPT-3-Encoder/actions/workflows/node.js.yml/badge.svg" alt="example workflow"></a>
<a href="https://github.com/syonfox/GPT-3-Encoder/"><img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&amp;logo=github&amp;logoColor=white" alt="github"></a></p>
<p><a href="https://latitudegames.github.io/GPT-3-Encoder/"><img src="https://img.shields.io/badge/JS%20Docs-Read%20them%20maybe-brightgreen" alt="JSDocs"></a></p>
<p>Also check out the browser demo <a href="https://latitudegames.github.io/GPT-3-Encoder/browser.html">browser demo</a></p>
<p><a href="https://github.com/latitudegames/GPT-3-Encoder/commits"><img src="https://img.shields.io/github/last-commit/latitudegames/GPT-3-Encoder" alt="GitHub last commit"></a>
<a href="https://github.com/latitudegames/GPT-3-Encoder/actions"><img src="https://github.com/latitudegames/GPT-3-Encoder/actions/workflows/node.js.yml/badge.svg" alt="example workflow"></a>
<a href="https://github.com/latitudegames/GPT-3-Encoder/"><img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&amp;logo=github&amp;logoColor=white" alt="github"></a></p>
<p>Compatible with Node &gt;= 12</p>
<p>To use the library in your project, import it as follows:</p>
<pre class="prettyprint source lang-js"><code>const GPT3Encoder = require('@syonfox/gpt-3-encoder');
<pre class="prettyprint source lang-js"><code>const GPT3Encoder = require('gpt-3-encoder');
</code></pre>
<h3>Additional Features</h3>
<p>In addition to the original <code>encoding</code> and <code>decoding</code> functions, this fork includes the following additional features:
Expand Down Expand Up @@ -112,7 +112,7 @@ <h2>Example</h2>
<h2>Developers</h2>
<p>I have added som other examples to the examples folder.
Please take a look at package.json for how to do stuff</p>
<pre class="prettyprint source lang-sh"><code>git clone https://github.com/syonfox/GPT-3-Encoder.git
<pre class="prettyprint source lang-sh"><code>git clone https://github.com/latitudegames/GPT-3-Encoder.git

cd GPT-3-Encoder

Expand All @@ -135,8 +135,8 @@ <h2>Developers</h2>


</code></pre>
<p>Performance
Built bpe_ranks in 100 ms</p>
<p>Performance</p>
<p>Built bpe_ranks in 100 ms</p>
<p>// using js loading (probably before cache)
Loaded encoder in 121 ms
Loaded bpe_ranks in 91 ms</p>
Expand Down Expand Up @@ -181,7 +181,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Sun Jan 08 2023 03:34:35 GMT-0500 (Eastern Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Wed Jan 18 2023 17:24:41 GMT-0500 (Eastern Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@syonfox/gpt-3-encoder",
"version": "1.4.0rc3",
"name": "gpt-3-encoder",
"version": "1.2.0-rc0",
"description": "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 convert tokenized text back into human-readable format. It also includes functions for counting tokens in a given text and generating statistics about the tokens in a string or array.",
"main": "index.js",
"types": "./index.d.ts",
Expand Down Expand Up @@ -28,14 +28,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/syonfox/GPT-3-Encoder.git"
"url": "git+https://github.com/latitudegames/GPT-3-Encoder.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/syonfox/GPT-3-Encoder/issues"
"url": "https://github.com/latitudegames/GPT-3-Encoder/issues"
},
"homepage": "https://github.com/syonfox/GPT-3-Encoder#readme",
"homepage": "https://github.com/latitudegames/GPT-3-Encoder#readme",
"devDependencies": {
"browserify": "^17.0.0",
"jest": "^26.4.2",
Expand Down

0 comments on commit 70c4b30

Please sign in to comment.