next-token-prediction
github.com · Open source · Active
Next-token prediction in plain JavaScript using nested objects
- AI & agents
- Open source
- JavaScript
- Day-7 check
- Day-30 check
- next token
- language model
- javascript
- ai
- autocomplete
- autocompletion
- diffusion model
- llm
- markov chain
- next token prediction
- Stars
- 145
- Forks
- 6
- Open issues
- 0
- Last commit
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
This JavaScript project predicts the next word in a sentence by storing known sentences in nested objects and looking up continuations. It was built as a hands-on test of the idea that predicting words is closely tied to knowing facts.
Repository description on GitHub: “Next-token prediction in JavaScript - build fast language and diffusion models.”
What it does
- Predicts the next word or phrase from a model trained on text
- Trains on .txt files in a training folder or on supplied training data
- Returns top-k completion samples for a prompt
Good for
- Predict the next word of a phrase from a small text corpus
- Generate top-k completions for a prompt in a Node.js script
Suits: JavaScript developers exploring simple language models.
What you can try
Read the README on GitHub and install from source.
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 next-token-prediction on , when nopro posted it to Show HN. GitHub listed no published releases for bennyschmidt/next-token-prediction when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 88 points, 102 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 88 points, 102 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: bennyschmidt/next-token-prediction
- Found: nopro posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was next-token-prediction released?
- No dated release record is available. Kip found it on Show HN on 10 Apr 2024.
- Is next-token-prediction open source?
- Its source is public on GitHub at bennyschmidt/next-token-prediction; check the repository for licence terms.
- What does next-token-prediction run on?
- Library.
- Is next-token-prediction free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is next-token-prediction still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | bennyschmidt/next-token-prediction REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-39995908. 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
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.