bennyschmidt/next-token-prediction
Next-token prediction in JavaScript — build fast language and diffusion models.
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.
Stars
143
Forks
6
Language
JavaScript
License
—
Category
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.
Higher-rated alternatives
lfnovo/esperanto
A unified interface for various AI model providers
apocas/restai
RESTai is an AIaaS (AI as a Service) open-source platform. Built on top of LlamaIndex &...
sbhjt-gr/InferrLM
On-device AI for iOS & Android
baidubce/bce-qianfan-sdk
Provide best practices for LMOps, as well as elegant and convenient access to the features of...
solygambas/python-openai-projects
13 projects using ChatGPT API, Whisper, Embeddings, and DALL-E with Python.