Skip to main content

SerenLyceum

Train your own model without reading fifty papers first. A dataset in, a model out, on this box or on a rented GPU, told in plain words the whole way.

Named for Aristotle's school - the one Diogenes heckled from the big clay jar (a pithos) he lived in outside it, lantern in hand. The jar is the colour.


The three rules everything else falls out of

1. We just train. The Lyceum does not choose your model, does not make or vet your data, and has no opinion on where a corpus came from or what a teacher model's licence says. That is your business. Not our monkey, not our circus.

2. A run is a directory. A training is a folder: job.yaml and data/ (written by the service), status.json, metrics.jsonl, train.log and out/ (written by the trainer), and a STOP file when you ask it to stop. That folder is the only thing the service and the trainer share, so a restart loses nothing, and a cloud run is the same folder shipped up and pulled home.

3. Fork, never import. Training is a command:

seren-lyceum-train /path/to/a/job

It runs in its own environment (seren-lyceum[train] plus a torch built for your GPU). The service forks exactly that command; you can type it yourself; a cloud plugin runs it on a pod. The service never imports torch, so it runs on any box, and the automated path and the hand-run path cannot drift apart.


What a person does

Open /viewer and New training asks five questions, each answered by picking a card:

  1. What should it learn? A dataset: one example per line (JSONL). Conversations (messages), ShareGPT (conversations), instruction/output, prompt/completion and plain text all work. It says what it found - how many examples, the lines it could not use and why.
  2. Start from which model? A few suggestions with what they are good for and whether they fit this box, or any Hugging Face name.
  3. Where should it train? This box (free, your data never leaves the house) or a cloud.
  4. How hard should it study? Light, Normal or Thorough, each a sentence. The numbers behind them are under Advanced, visible and overridable.
  5. What should come out? A GGUF at a quant (Q4_K_M, Q5_K_M, Q8_0), or the merged model and adapter only.

Trainings then shows each run: the five stages (reading your data, getting the model, learning, testing itself, saving the result), the learning curve, how long is left, a few answers the new model wrote to examples it never saw beside the answers in your data, and what it made - your model first, one file to download.

How it trains

A LoRA (a small add-on that teaches the model new habits without retraining all of it), with Hugging Face TRL: the last answer in each conversation is what it learns, everything before it is the question. Some examples are held back to test with. When it is done it saves the adapter, merges it into the base model, and - with llama.cpp on the box - converts to GGUF and quantizes. A GGUF that cannot be made is a warning on a finished run, not a failure: the merged model is the result.

The trainer prints the same [SEREN:STATUS|PROGRESS|METRIC|ERROR|COMPLETE] lines the original Seren engine's RunPod trainer printed.

Where it trains

  • local - this box. Set local.python to the training environment.
  • cloud - plugins, registered under the seren_lyceum.backends entry-point group and configured under clouds:. RunPod ships first; its round trip (start a pod, ship the job, run the same command, pull results home, stop the pod) is the next piece of work, and the UI lists it as coming until then.

Install

pip install seren-lyceum                       # the service
python3 -m venv ~/seren-lyceum/train           # the training environment
~/seren-lyceum/train/bin/pip install torch --index-url https://download.pytorch.org/whl/cu130
~/seren-lyceum/train/bin/pip install "seren-lyceum[train]"

Copy seren-lyceum.yaml.sample to ~/seren-lyceum/seren-lyceum.yaml, set local.python, then:

python -m seren_lyceum --config ~/seren-lyceum/seren-lyceum.yaml

and open http://127.0.0.1:7428/viewer.

Tests

pip install -e ".[dev]"
python -m pytest

The tests run the whole loop for real - upload, job, runner, the forked trainer, its folder - with the trainer's fake mode (SEREN_LYCEUM_FAKE_TRAIN=1: the stages walked, no torch), so they pass on any box. Fake mode is also how to see the UI on a box with no GPU; a fake run says so everywhere.

License

AGPL-3.0-or-later.

Metadata

Release files for seren-lyceum 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seren-lyceum 1.0.0
File Size Uploaded Provenance Actions
seren_lyceum-1.0.0.tar.gz 89.0 kB With provenance Details for seren_lyceum-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seren-lyceum 1.0.0
File Interpreter ABI Platform Actions
seren_lyceum-1.0.0-py3-none-any.whl Python 3 none any Details for seren_lyceum-1.0.0-py3-none-any.whl

Total release size: 174.2 kB

Release files / seren_lyceum-1.0.0.tar.gz

Download URL seren_lyceum-1.0.0.tar.gz
Size 89.0 kB
Tags Source
SHA-256 checksum
How to use checksums
22b43cf50d0aced0e26de06fc8d4e205e2abce70b7a3d6d5a29aedc53fd674a2
BLAKE2b-256 checksum
How to use checksums
7d082e88d596ceee0111bc4ac49df8b611d9b7bca0e8526007f177cdd94fdba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / seren_lyceum-1.0.0-py3-none-any.whl

Download URL seren_lyceum-1.0.0-py3-none-any.whl
Size 85.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
024feb6505b88cadeb89b176242c5bad59c26a11895b829a7eb20913cecdc889
BLAKE2b-256 checksum
How to use checksums
5dd231fb571827126b7d96faa2cc5075896e05aa9e3837a91183377f1ee06484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for seren-lyceum 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for seren_lyceum-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page