-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve performance, memory usage & initialization time (#50)
fixes #18 fixes #35 feat: add missing models chore: preliminary benchmarking tool feat: update tokenization format to make the package smaller docs: update README chore: add npmignore
- Loading branch information
Showing
72 changed files
with
5,168 additions
and
580 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.vscode | ||
.eslintignore | ||
.eslintrc.js | ||
.prettierignore | ||
.editorconfig | ||
tsconfig.json | ||
tsconfig.*.json | ||
babel.config.js | ||
jest.config.js | ||
prettier.config.js | ||
vite.config.ts | ||
webpack.config.js | ||
*.tsbuildinfo | ||
|
||
/.pnp.* | ||
|
||
# Logs | ||
logs/ | ||
*.log | ||
|
||
# Cache | ||
.eslintcache | ||
.idea | ||
.npm | ||
.vscode | ||
.yarnclean | ||
|
||
# Directories | ||
coverage/ | ||
dist/ | ||
dts/ | ||
esm/ | ||
mjs/ | ||
cjs/ | ||
node_modules/ | ||
|
||
# Custom | ||
*.min.js | ||
*.map | ||
|
||
.DS_Store | ||
*.local | ||
|
||
tsconfig.json | ||
jest.config.js | ||
|
||
benchmark/ | ||
.yarn/ | ||
.config/ | ||
.github/ | ||
.swc/ | ||
.vscode/ | ||
data/ | ||
docs/ | ||
.yarnrc.yml | ||
*.config.js | ||
tsconfig*.json |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
!tsconfig.json | ||
.yarn | ||
results/ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# benchmark |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "benchmark", | ||
"packageManager": "yarn@4.5.0", | ||
"type": "module", | ||
"scripts": { | ||
"start": "yarn tsc && node dist/benchmarkRunner.js", | ||
"profile": "yarn tsc && node --inspect dist/benchmarkWorker.js --run" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.5.5", | ||
"chalk": "^5.3.0", | ||
"cli-table3": "^0.6.5", | ||
"inquirer": "^11.0.2", | ||
"typescript": "^5.6.2" | ||
}, | ||
"dependencies": { | ||
"gpt-3-encoder": "^1.1.4", | ||
"gpt-tokenizer": "^2.2.3", | ||
"gpt3-tokenizer": "^1.1.5", | ||
"js-tiktoken": "^1.0.14", | ||
"tiktoken": "^1.0.16", | ||
"tiktoken-node": "^0.0.7" | ||
} | ||
} |
Oops, something went wrong.