llama-tokenizer-js
github.com · Package · Quiet
Browser-based tokenizer for LLaMA 1 and 2
- AI & agents
- Package
- JavaScript
- Day-7 check
- Day-30 check
- llama
- tokenizer
- javascript
- llm
- llama tokenizer
- token counter javascript
- llama token count
- client side tokenizer
- llm tokenizer
- Stars
- 364
- Forks
- 24
- Open issues
- 0
- Last commit
- Releases
- 9
- Found
- 3 years ago
GitHub figures as of . They are context, not a ranking.
llama-tokenizer-js is a JavaScript tokenizer for LLaMA 1 and LLaMA 2 models that runs in the browser. It lets you count tokens without sending text to a server. It suits developers estimating prompt sizes for those models.
Repository description on GitHub: “JS tokenizer for LLaMA 1 and 2”
What it does
- JavaScript tokenizer for LLaMA 1 and LLaMA 2 models
- Runs client-side in the browser and in Node
- Single file with no dependencies and TypeScript support
Good for
- Count tokens for a LLaMA prompt in the browser before sending it
- Estimate prompt sizes in a Node script
Suits: Developers estimating prompt sizes for LLaMA models.
Worth knowing: Covers LLaMA 1 and 2 only, with LLaMA 3 handled in a separate repository
What you can try
Read the README on GitHub and install from source.
Install
npm install llama-tokenizer-jsTaken from the project’s README. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw llama-tokenizer-js on , when belladoreai posted it to Show HN. The oldest published release on GitHub is v1.0.0, dated . Its first tagged release landed the same day it was found. 9 releases have been published in total; the latest is v1.2.2 ().
Day-7 and day-30 updates
Day 7 2 releases shipped
- 2 releases in the first 7 days: v1.0.1 (13 Jun 2023), v1.1.0 (16 Jun 2023)
- Show HN discussion at check time: 115 points, 23 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 3 releases shipped
- 3 releases in the first 30 days: v1.0.1 (13 Jun 2023), v1.1.0 (16 Jun 2023), v1.1.1 (24 Jun 2023)
- Show HN discussion at check time: 115 points, 23 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: belladoreai/llama-tokenizer-js
- Release v1.0.0
- Found: belladoreai posted it to Show HN. Show HN
- Release v1.1.1
- Release v1.1.2
- Release v1.1.3
- Release v1.2.0
- Release v1.2.1
- Release v1.2.2
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 9 releases. All releases on GitHub
Quick answers
- When was llama-tokenizer-js released?
- Its first tagged release on GitHub is dated 12 Jun 2023. Kip found it on Show HN on 13 Jun 2023.
- Is llama-tokenizer-js open source?
- Its source is public on GitHub at belladoreai/llama-tokenizer-js under the MIT licence.
- What does llama-tokenizer-js run on?
- Web, Library.
- Is llama-tokenizer-js free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is llama-tokenizer-js still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | belladoreai/llama-tokenizer-js REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-36316489. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
- Claude CounterMaintained
Browser extension that shows token count, cache timer and usage bars on claude.ai
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.