LLM Training Log Plotter
Turn trainer_state, JSONL, axolotl or CSV logs into loss, learning-rate and grad-norm curves with anomaly flags.
Log text
367 chars · 0 skippedPlot settings
ema · 4 train pointsRun health
steps 100–400 · zoom 1.0×Statistics
min 1.2000 · mean 1.6000 · final 1.2000 · best eval 1.3500 @ 400 · 400 steps
Loss
trainevalLearning rate
lrGrad norm
grad_normAnomalies
No anomalies detected.
Examples
HF run
trainer_state.json sample4 train points, 2 eval points, 1 grad spikeTrain/eval split by key presence and the spike at step 300 appears in the anomaly list.
Axolotl stdout
Colored progress lines3 train points, 1 eval point, NaN flagProgress prefixes and ANSI escapes are ignored, but the NaN loss is retained as a flagged gap.
CSV export
Comma-separated metrics3 train points, 1 eval pointHeader names map directly to the loss, lr and grad series.
About this tool
The LLM Training Log Plotter converts raw fine-tuning logs into health curves without a notebook. It recognizes Hugging Face trainer_state.json, JSONL metric rows, axolotl/unsloth dict lines with tqdm prefixes and ANSI colors, and CSV files with a header row.
Train and eval loss are split into separate series and drawn on the same step axis; learning rate and grad norm get their own panes so their very different scales never distort the loss curve. Raw points are ghosted under an exponential or trailing moving average, and a data table mirrors every plotted value for keyboard and screen-reader access.
The anomaly panel flags NaN or zero losses, grad-norm spikes beyond mean + 3 sigma, learning-rate restarts after a decreasing phase and eval-train divergence over the last three eval points. Each flag names its step and moves the chart crosshair there. A second run can be overlaid as a dashed series, and the aligned data exports as CSV. Logs are parsed entirely in the browser.
What this tool does not do
- No live training connection; logs are pasted or typed.
- The overlay aligns on step numbers; runs with unrelated steps are shown on a union axis.
- Downsampling is intentionally omitted: extremely large logs are limited by browser memory.
- Flags are heuristics, not a diagnosis of model quality.
How to use this tool
Paste or load a log
Drop in trainer_state JSON, JSONL, axolotl stdout or CSV, or click one of the bundled samples. The detected format is shown as a badge.
Smooth the curves
Choose raw, EMA or a trailing moving average; tune alpha or the window size. Toggle the log scale when loss spans orders of magnitude.
Inspect health flags
Read the anomaly list and click a flag to place the crosshair on its step. Scroll over a chart to zoom, double-click to reset.
Compare and export
Paste a second log for a dashed overlay, toggle the data table, then download the aligned series as CSV.
Use cases
Run triage
Decide whether a run is diverging, stalled or healthy without installing plotting libraries.
Hyperparameter comparison
Overlay two runs with different learning rates and compare their loss curves on a shared step axis.
Training reports
Export the smoothed, aligned series as CSV for a spreadsheet or a lab notebook.
Recognized log formats
| Format | Typical source |
|---|---|
| trainer_state | Hugging Face Trainer state with a log_history array |
| jsonl | One metrics object per line from custom training loops |
| dict | Axolotl / unsloth stdout with Python dict lines and tqdm prefixes |
| csv | Header-based exports with step, epoch, loss, learning_rate, grad_norm or eval_loss columns |
ANSI color codes are stripped; skipped lines are counted and reported rather than silently ignored.
Common mistakes
Mistake:Reading grad norm on the loss axis.
Fix:The tool uses separate panes; keep them separate when comparing runs too.
Mistake:Assuming NaN points are plotted as zero.
Fix:They are kept as gaps and flagged explicitly; zero losses get their own warning.
Mistake:Trusting a spike detector as a verdict.
Fix:Flags are statistical observations with the threshold stated in the message — inspect the surrounding curve.
Mistake:Pasting logs into a random online plotter.
Fix:Trainer logs can contain hostnames and paths; this tool parses entirely in your tab.
Frequently asked questions
Which log formats are supported?
Hugging Face trainer_state.json (the log_history array), one-metric-per-line JSONL, axolotl/unsloth dict lines including tqdm prefixes and ANSI color codes, and CSV with a header row. The detected format is shown in the header badge and non-metric lines are counted in the skip report.
Why do train and eval loss use different point densities?
Train loss is logged at every logging step, while eval loss is usually produced only at evaluation intervals. Both are plotted on the same step axis, but the eval series naturally has fewer points; the data table shows exactly where each point landed.
What smoothing window should I use?
For EMA, alpha around 0.1 keeps the trend visible without erasing short-term changes; alpha = 1 is identical to raw data. A trailing moving average of 10–20 points is a readable alternative. Neither changes the exported raw values — choose the view that answers your question.
What does a grad-norm spike indicate?
A step whose gradient norm exceeds mean + 3 sigma (with a robust median/MAD fallback) — often a noisy batch, a too-high learning rate or an instability beginning. The flag is a statistical observation, not proof of divergence, so check the surrounding loss curve.
Can I compare two runs?
Yes. Paste a second log into the overlay panel and its train loss is drawn as a dashed amber line on the same step axis. If the runs cover different step ranges, the chart uses their union and the legend marks the overlay.
Are my logs uploaded?
No. Parsing, smoothing, anomaly detection and CSV export happen in your browser. Nothing is transmitted, which matters because trainer logs often contain hostnames, paths and dataset names.
References & standards
Related tools
Agent Tool Flowchart Builder
Design agentic tool-call DAGs with decision branches and bounded loops. Validates reachability, cycle handling, and emits clean Mermaid flowcharts — fully in your browser.
AI Agent Memory & Buffer Simulator
Compare sliding window, summary buffer, and vector memory strategies
AI API Client SDK Generator
Generate typed API client SDK files from OpenAPI specifications or cURL requests
AI Code Explainer
Explain code snippets with grounded cloud AI
AI Code Security Auditor
Scan source code for high-confidence OWASP Top 10 vulnerabilities
AI Code Translator
Translate code into idiomatic implementations in another language