bennyschmidt/next-token-prediction

Next-token prediction in JavaScript — build fast language and diffusion models.

26
/ 100
Experimental

Supports both n-gram and optional vector embedding-based prediction with 144-dimensional token pair embeddings for semantic context, switchable via environment variable. Trains directly on local .txt files or pre-loaded datasets without external dependencies, generating completion suggestions, sequence predictions, and similarity-based alternatives. Includes readline and browser UI examples for autocomplete, search, and spell-checking applications.

143 stars. No commits in the last 6 months.

No License Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 8 / 25
Community 8 / 25

How are scores calculated?

Stars

143

Forks

6

Language

JavaScript

License

Last pushed

Sep 18, 2024

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/embeddings/bennyschmidt/next-token-prediction"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.