OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Texts To Transformer

Texts To Transformer is an open-source Python pipeline that extracts and pseudonymizes iMessage text, prepares leakage-resistant dataset splits, trains a tokenizer and a small decoder-only Transformer from scratch with MLX, and supports evaluation, model export and local terminal chat.

Independent OpenViST project profile, based on linked sources.

Texts To Transformer — Personal-style text generation based on the owner's phrasing, slang and common responses
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when the goal is to experiment with a local, personal-style model trained on an iMessage history, rather than to build a general-purpose assistant or factual question-answering system.

Who it is for

  • Apple Silicon Mac users who want to train a small model on their own iMessage writing style.
  • Developers exploring text preparation, privacy checks and from-scratch Transformer training with MLX.

Documented uses

  • Prepare a private snapshot of a macOS Messages database for model training.
  • Extract, redact and pseudonymize message data, then make chronological train, validation and test splits.
  • Train a custom tokenizer and a small language model from random initialization.
  • Evaluate the model for memorization, export it and generate replies locally in a terminal.
Before you choose

Requirements & limits

The project is an MIT-licensed public GitHub repository. Its documented workflow requires an Apple Silicon Mac running macOS 14 or newer; at least 16 GB of unified memory is recommended.

  • Nothing is pretrained: the tokenizer and model start from zero.
  • The default model has 1.38 million parameters, four layers, a 4,096-token byte-level BPE vocabulary and a 256-token context window; a larger 6.16-million-parameter preset is available for unusually large histories.
  • Real training is refused below one million tokens, and low token-to-parameter ratios are flagged as potentially prone to memorization.
  • The pipeline uses a read-only database backup, redacts some identifiers by default, and pseudonymizes handles and chat identifiers; these safeguards do not make the data anonymous.
  • The model is not presented as reliably capable of reasoning or answering factual questions.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the repository and check local prerequisites

Install the project environment and run its diagnostic checks before preparing an iMessage dataset.

Before you start

  • Apple Silicon Mac (M1 or newer) with macOS 14 or newer
  • Enough disk space for a private Messages database copy and training artifacts
  • A way to install uv, such as Homebrew
  • Full Disk Access for the app that will run the snapshot command

Steps

  1. Clone the repository and change into its directory.

  2. Install uv if needed, then run uv sync.

  3. Run uv run imessage-mlx doctor to check Apple Silicon, MLX Metal support, disk space, Git ignore coverage, private directory permissions and read-only Messages database access.

  4. If the diagnostic reports that real-data snapshotting is not permitted, grant Full Disk Access to the command-running app, restart that app, and rerun the diagnostic.

Expected outcome

The project environment is installed and its diagnostic has checked the local prerequisites for the data pipeline.

Guide limitations

  • This is a setup and diagnostic procedure, not a training or execution result.
  • The documented setup requires macOS 14 or newer on Apple Silicon.
  • Do not manually copy the live Messages database or change its permissions as a workaround.
Source-based practical guide

Create a private iMessage dataset

Snapshot the local Messages database and prepare pseudonymized, chronologically split training data.

Before you start

  • An installed project environment
  • Full Disk Access for the application running the snapshot command
  • Read the project's privacy documentation before running the data pipeline

Steps

  1. Run uv run imessage-mlx snapshot --config configs/data.yaml to create a private SQLite backup.

  2. Inspect the local Messages schema with uv run imessage-mlx inspect-schema --database work/snapshot/chat.db --output work/schema/schema.json.

  3. Run uv run imessage-mlx prepare --config configs/data.yaml, then run uv run imessage-mlx privacy-audit.

  4. Keep the resulting work data private; the project recommends storing work/ and outputs/ on a FileVault-protected Mac.

Expected outcome

A prepared dataset with filtered message rows, redactions, pseudonymized identities, conversation sessions and chronological train, validation and test splits, subject to the privacy audit.

Guide limitations

  • The workflow is documented for the macOS Messages database, not other corpus formats.
  • Pseudonymization is not anonymization, and the resulting data and model may contain private text.
  • Attachments are not opened or copied; processing is from a private snapshot rather than the live database.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 November 2026
Original website title
Doriandarko/texts-to-transformer · Official homepage title · retained in its source language