The tokenizer, the model and the data pipeline
Most teams fine tune someone else’s model and present it as their own. That approach costs quality on a language the big labs treat as an afterthought. We built the tokenizer, the model and the corpus ourselves. Bayaga uses no existing language model from the first token to the live server.
The tokenizer
A root aware tokenizer for Semitic text
Hebrew and Aramaic carry meaning in a consonantal root that survives across every inflection, and standard tokenizers split that root into fragments. Ours is morphological and lossless. Our tokenizer keeps a single root recognisable across all its forms and handles Hebrew and Aramaic together. Decoding reconstructs the original text character for character. It is the subject of a published technical report.
The model
A transformer trained from the first token
We pretrained the transformer of roughly 134 million parameters from scratch on next token prediction over the canon. Its modern primitives are rotary position embeddings, RMSNorm, SwiGLU, grouped query attention and tied embeddings. We used our own corpus and no base checkpoint.
The corpus
A canon rebuilt into training data
We cleaned thousands of curated sources into hundreds of millions of tokens and balanced them by genre across Talmud, Halakhah, Tanakh, Mishnah, responsa and more. Train, validation and test splits stay strictly disjoint. For the next generation we are rebuilding this into billions of tokens across streams that align every base text with its commentaries and its cross references.
Tokenizer, lineage and corpus figures
The tokenizer results were measured head to head on the same text and published in a public technical report.
1.3 to 1.6×
tighter than ChatGPT's tokenizer
On the same text, head to head, Hebrew costs this much less to tokenize than under the tokenizer behind ChatGPT.
98%
of roots kept intact
Meaning bearing roots stay a single token on the gold standard reference.
0
borrowed models
We built the tokenizer, model and corpus from scratch, so no existing language model sits anywhere in the lineage.
2.4B
tokens of training data
We rebuilt the classical canon into an aligned corpus that ties every base text to its commentaries and cross references.
Roadmap from morphology to epistemic status
The Talmud records debates of questions, difficulties, resolutions and claims weighed against counter claims across centuries. Plain text flattens that structure. Bayaga is the first step of a longer thesis that treats it as first class.
Live
Morphology first
We built the rest of the work on a tokenizer that keeps the root visible. It is live and published.
Research
Dialectical structure
The aim is to represent a passage as its argument (question, difficulty, resolution) so the model reasons with the dialectic.
Research
Epistemic status
Each claim would be marked settled, disputed or unresolved, and the model would carry its confidence as a tracked property.
Client model engineering
We built Bayaga for a two thousand year old canon. We do the same work for clients who need a competent model for a language or a domain the big labs ignore, and for problems where generic models are weak.
A model trained from scratch
We take the work from raw data to a running model when fine tuning a generic model falls short on a domain, a language or a corpus.
A tokenizer for your language
We design a tokenizer for your language when the standard ones waste tokens or break its script or morphology.
Fine tuning and alignment
We run supervised fine tuning, preference tuning and instruction following on our base model or yours. We then evaluate the result.
Model evaluation
We measure a model on its own held out data with metrics that track real quality before it ships.
Novel model conception
The standard transformer recipe fails on some problems. For those we design an original architecture and take it from a thesis to a trained model.
Productionised inference
We take a checkpoint to a served model with a clean API and streaming, and we build clients for the browser, the command line and other agents.
Specialist models for Hebrew and Aramaic
Our model work covers models from scratch, tokenizers for your language, fine tuning, alignment and evaluation. Send us a problem the big labs ignore to get our proposal for a specialist model.