Skip to content

Latest commit

 

History

151 Commits

Folders and files

Repository files navigation

DearDiary logo

DearDiary.jl

A diary for your machine learning experiments, written in Julia.

CI codecov Aqua QA Documentation

A tour of the DearDiary dashboard: the project list, a learning-rate sweep with its metric charts, one iteration's environment snapshot, and the dark theme

DearDiary records what you train: the parameters you chose, the metrics you got, the files you saved, and the exact Julia environment each run used. By default everything lives in one DuckDB file, so you can start on a laptop with no server at all. When more people join, the same calls log to a shared server over HTTP, and everyone browses the results in the built-in web dashboard.

Install

using Pkg
Pkg.add("DearDiary")

Or type ]add DearDiary in the REPL. DearDiary needs Julia 1.10 or later.

Log your first run

using DearDiary
DearDiary.initialize_database()

project_id, _ = create_project("Iris classification")
experiment_id, _ = create_experiment(project_id, DearDiary.IN_PROGRESS, "Decision-tree sweep")

with_iteration(experiment_id) do iter
    create_parameter(iter.id, "max_depth", 7)
    create_metric(iter.id, "accuracy", 0.96)
end

with_iteration opens a run, executes your code, and closes the run for you. A clean return marks it SUCCEEDED. If your code throws, the run is marked FAILED and keeps the error text. Either way, DearDiary saves a snapshot of the active environment so you can rebuild it later.

To look around, start the server and open http://127.0.0.1:9001:

DearDiary.run()

A quick tour

The screenshots below come from a small demo store: a learning-rate sweep for a Fashion-MNIST classifier, a gradient-boosting search, and a model registry with a version in production.

Compare runs at a glance

An experiment page listing seven iterations with their status, duration, parameters, and final metrics

Each experiment lists its iterations with one column per parameter and one per final metric. Trials from a sweep sit under the run that launched them. Click a header to sort, or type in the filter box to narrow the rows.

See every metric over time

Line charts of train_loss and val_accuracy for six iterations, with a tooltip listing each run's value at step 11

Hover a chart to read each run's value at that step. Click a legend entry to hide a run, or click a line to open it. Here the diverged run (learning_rate = 0.01) is easy to spot.

Rebuild any run's environment

The environment section of an iteration: Julia 1.12.6, the git commit, the entrypoint script, and a ready-to-paste restore call

A run's snapshot holds the Julia version, the git commit, the entrypoint, and the full Project.toml and Manifest.toml. DearDiary.restore(iteration_id) writes them to a fresh directory, ready for Pkg.instantiate.

Keep a model registry

A model page showing v2 in production and v1 archived, each linked to its source iteration and checkpoint file

Register a checkpoint as a model version, linked to the iteration that trained it and the artifact that holds its bytes. Move versions through staging and production. Promoting a new version to production archives the previous one.

Edit right on the page

Editing an experiment description in place, with the actions menu open and a tooltip explaining why the delete action is blocked

Names, descriptions, notes, statuses, stages, and tags can all be changed in place. When an action is blocked, the menu says why. In this screenshot the experiment can't be deleted while a model version still points at one of its runs.

Share it with your team

A per-project permission grid with read, create, update, and delete checkboxes for one user

Turn on authentication and administrators can create accounts and grant read, create, update, and delete access project by project.

Store artifacts where you like

Artifact bytes can sit inside the database, on a local filesystem, or in any S3-compatible store such as AWS S3, MinIO, or Cloudflare R2. migrate_artifacts! moves existing artifacts between backends while the database stays live.

Work with an AI assistant

With ModelContextProtocol.jl installed, DearDiary.run_mcp serves DearDiary to MCP clients such as Claude Code. The assistant can compare runs, read training curves, log results, store reports, and register models, through the same rules and permissions as the rest of DearDiary.

Why DearDiary?

Reproducible ML depends on knowing which code, data, and environment produced each result. Established trackers such as MLflow, Weights & Biases, and Aim are Python-first, and Python environment capture usually records dependency specifications that the installer resolves again at install time. DearDiary is written for Julia and saves the Manifest.toml of every run, so DearDiary.restore(iteration_id) can bring back the same dependency tree later. The tracking API is the same whether the store is a single DuckDB file on a laptop or a multi-worker deployment backed by S3.

Learn more

The documentation starts with a quickstart and has guides for:

Contributing

Bug reports, questions, and pull requests are welcome on the GitHub repository. Please follow BlueStyle and add tests for new features. CONTRIBUTING.md walks through the setup.

Releases

Packages

Used by

Contributors

Languages