﻿# TensorBoard resumed runs: event-file boundaries and restored model-step boundaries are different

Organize TensorBoard log directories for fresh and resumed experiments, reconciling orphaned progress points with the actual restored checkpoint instead of relying on event filenames.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-tensorboard-logdir-resume-step-event-history/
Language: en

## Define the logical run before selecting a directory

A training process writes metrics beyond its last saved checkpoint, crashes and resumes from that earlier snapshot. The resumed writer creates another event file, but the model has returned to an earlier state. The [TensorBoard project documentation](https://github.com/tensorflow/tensorboard/blob/master/README.md?plain=1) explains loading event files from directories and stitching execution history. File creation boundaries do not automatically express which observations belong to the accepted model continuation. Preserve the restored checkpoint step separately from the latest previously logged metric step.

## Keep independent experiments in distinct run locations

The [PyTorch SummaryWriter reference](https://docs.pytorch.org/docs/2.15/tensorboard.html) describes log_dir and organizing runs with separate directories. Reusing a path is appropriate when it represents a deliberate continuation, but misleading when unrelated candidate models should be compared independently. Similar metric tags under one shared directory can blur experiment identity. Choose the directory policy from the logical execution relationship rather than assuming that a new event filename or a writer comment creates a distinct scientific run.

## Reconcile orphaned points with restored progress

SummaryWriter exposes purge_step for handling reports at and beyond the restart point in the same log directory. This concerns which history TensorBoard displays; it does not restore model weights or alter the optimizer's state. Select the restart boundary from the checkpoint actually loaded by the application. Otherwise the displayed history can preserve abandoned future points or hide valid observations at the wrong boundary, producing a clean-looking curve that does not correspond to the training state being evaluated.

## Inspect events rather than guessing from chart shape

The [event-file inspector implementation](https://github.com/tensorflow/tensorboard/blob/master/tensorboard/backend/event_processing/event_file_inspector.py) documents inspection of tags, step ranges and out-of-order steps. Use those records to understand the written history when a resumed curve looks surprising. A nonmonotonic step sequence can reflect a restart instead of numerical model instability. Keep event-writing time, reported progress and checkpoint progress distinct while diagnosing the mismatch so a visualization artifact is not mistaken for a learning-algorithm defect.

## Exercise a small crash-and-resume fixture

Write recognizable metrics, save a checkpoint before the last reports and resume from that saved state under the intended directory and purge policy. Inspect displayed and recorded history separately. Related guides cover [random-state replay](/journal/data-guide-data-rng-state-replay/) and [artifact release manifests](/journal/tokenizer-artifact-release-manifest/). The goal is a traceable accepted continuation. A continuous line alone does not prove that the checkpoint, data position and optimizer state were restored consistently or that all pre-crash reported steps remained valid.
