Back to directory

Texts to Transformer

A complete pipeline that trains a tiny decoder-only Transformer, from a randomly initialized tokenizer and model, on a person's own iMessage history, entirely on a Mac, to learn their phrasing and common replies.

Texts to Transformer

The pipeline snapshots the Messages database in read-only SQLite mode from a consistent private backup, never the live database, extracts and pseudonymizes text with keyed HMAC pseudonyms, redacts URLs, email addresses and phone-number-shaped strings by default, splits data chronologically to resist leakage, trains a custom byte-level BPE tokenizer, and trains a custom decoder-only Transformer with MLX, before evaluating it, checking for memorization, exporting the model and offering a local terminal chat interface.

The default preset is a 4-layer, 1.38-million-parameter model with a 4,096-token tokenizer and a 256-token context window; a larger 6.16-million-parameter preset is included for larger message histories. Nothing is pretrained: the tokenizer and model both start from zero, so the result is a small personal style model rather than a generally capable assistant, and it can memorize private text.

No command uploads data or sends a message; a chat command only prints a suggested reply in the terminal, and it requires an Apple Silicon Mac.

More in Models

See all 405
  • mini-AGI

    github.com

    A continual learning language model that trains from scratch on a single 8 GB VRAM GPU, assembling its own architecture and adapting its size to the hardware and data available rather than shipping as a fixed pretrained model.

  • An open-source contrastive-embedding pipeline that maps technical CVE vulnerability descriptions to formal cybersecurity compliance controls in NIST SP 800-53 and CMMC, published with its model generation, fine-tuning and evaluation code.

  • peekaboolean

    github.com

    A small vision-language model, fine-tuned with LoRA on a 500-million-parameter backbone, that answers typed multiple-choice, ordinal-score and yes/no questions about an image with calibrated probabilities, in about 400 milliseconds on a laptop.