Lumbridge Compute

Open

Lumbridge Train Small models that learn your jobs.

Lumbridge Train turns examples you already have into a small model that makes one decision: which team a ticket goes to, whether a message needs a reply. It builds a dataset, fine-tunes a small open model on your GPU and puts the new version live if it beats the old one on held-out data.

Tour

See Train at work.

Lumbridge TrainDark theme
A terminal running a Lumbridge Train job: the last fine-tuning steps of a 0.6B mail-triage student, with the loss falling to 0.0089 at step 80, then the evaluation printing a category accuracy of 0.7925 and a needs-reply accuracy of 0.96
The last steps of a training run, then its evaluation.Dark themeOpen full size

The numbers

Before and after, on held-out mail.

One run as a chart: the loss over 80 steps, then accuracy on 400 threads the model never saw in training.

  • Category: 11.8% before, 79.3% after
  • Needs a reply: 12.8% before, 96.0% after
Lumbridge TrainDark theme
A chart of the same run: training loss falling over 80 steps from 3.05 to 0.009, then bars showing category accuracy rising from 11.8% to 79.3% and needs-a-reply accuracy from 12.8% to 96.0% on 400 held-out threads
Loss over 80 steps, then accuracy before and after: 11.8% to 79.3%.Dark themeOpen full size
FIG. 1 — From your traces to a promoted model

What it does

What Train does.

One TOML file per job

A job names its instructions and answer fields: one choice field plus optional true/false fields, answered as one JSON object. Sources, teachers, the split, training, the gate and the training day live in the same file.

Data you already have

Sources read trace archive exports, a SQLite query or JSONL files. A profile command prints counts from an archive and never prints message text.

Synthetic top-up, checked twice

For answers with too few rows, a teacher model writes made-up inputs with invented names and numbers. A second pass labels each one blind, and rows where both agree are kept.

A gate that tests tomorrow’s data

The newest rows are split off by time as a frozen eval set. The new model goes live if it gains on the chosen metric there and returns valid JSON often enough.

Outputs that may not teach

Some model terms forbid training other models on their outputs. Rows from matching model names are marked eval-only: they can grade your model but never enter its training set.

A labeling page

lumbridge-train label serves a page on localhost that shows one example at a time with the teacher’s answer picked. Your answers win over the source in every build and can become the eval set.

How it works

A job file, a loop and a log.

Train uses the Python standard library and nothing else. The heavy work happens in the RL trainer it drives and in the teacher endpoints you name.

  1. 1

    Build

    build reads every source, applies your labels, drops duplicates, tops up rare answers and splits the newest rows off as the eval set. It writes a run folder you can read before anything trains.

  2. 2

    Train and evaluate

    run builds, then calls Lumbridge RL for supervised fine-tuning and exports the weights. The baseline and the new weights are scored on the same frozen set.

  3. 3

    Gate and promote

    A win moves the current link in the job’s folder to the new weights. Every promotion, rejection or hold is appended to promotions.jsonl with both scores, so a rollback is pointing the link back.

  4. 4

    Schedule and rented GPUs

    Each job picks a training day, and due exits 0 on that day for a timer. A job can train on a rented GPU instead, and the runner refuses unless the job says the data may leave your machines.

Use it

Check the data, then train and gate.

The repository ships an example job that routes support tickets. Point its teacher at any OpenAI-compatible endpoint and it trains on synthetic tickets alone.

The example job: build, run, then the labeling page and the timer check
# data only: look at the run folder before you train
python3 -m lumbridge_train build jobs/example-ticket-routing.toml

# build, train, score old and new, promote on a win
python3 -m lumbridge_train run jobs/example-ticket-routing.toml

# train and score, but never move the current link
python3 -m lumbridge_train run jobs/example-ticket-routing.toml --no-promote

# confirm or fix labels in the browser at 127.0.0.1:8861
python3 -m lumbridge_train label jobs/example-ticket-routing.toml

# for a timer: exits 0 only on the job's training day
python3 -m lumbridge_train due jobs/example-ticket-routing.toml

Docs

The manual for Train.

In the repository.

  1. 01

    The learning loop

  2. 02

    Job files

  3. 03

    Outputs that may not teach

  4. 04

    The labeling page

  5. 05

    Rented GPUs

  6. 06

    Privacy

Guide chapter: Factory and models

Works with

What Train works with.

Not yet

  • Logit-only decisions with calibrated probabilities, in one forward pass.
  • Training from verdicts with RL. The trainer supports it and no job uses it.
  • Image and audio inputs. Jobs take text.
  • Serving. You load the current folder into your own model server.
  • A new version every week, on a schedule.
FIG. 2 — Where Train sits in Lumbridge

Questions

Questions about Train.

Does my data leave my machine?

Not unless you say so. The network calls go to the teacher endpoints in your job file, and training on a rented GPU is refused unless the job sets data_leaves_fleet = true.

What kind of job can it learn?

A decision with fixed answers: routing, triage and yes/no checks. Open-ended writing does not fit.

What do I need to run it?

Linux with one GPU, Python 3.11 or newer, zstd for trace archives and a working Lumbridge RL checkout.