The Local Model Ledger
Desk Setup & Maintenance 2026-10-20 09:48 0 reads

My Reproducible AI Test Notebook: The Fields I Record Every Time

My Reproducible AI Test Notebook: The Fields I Record Every Time

Discover a practical, fixed notebook template designed to ensure reliable, reproducible AI model testing. Learn the essential pre-flight fields, run logs, and evaluation metrics needed to track latency, token usage, and behavior changes over time. Stop relying on memory and turn your experimental AI prompts into rigorous, verifiable workflows that stand up to real-world deployment.

I used to trust my memory. Then I spent an entire evening trying to reconstruct why a prompt that “worked last week” was suddenly producing softer, less faithful answers. The model version looked the same. The temperature looked the same. Something had changed, and I had no clean record of what.

That evening ended with a simple decision: every meaningful test I run on Mistral Large 4 (or any adjacent model) now starts with the same notebook template. The template is deliberately plain—Markdown plus a few tables—so it works offline, survives tool changes, and can be copied into a git repo or a paper folder without ceremony. This post is the template itself, the reason each field exists, and the habits that keep it honest.

If it only works in the demo, it isn’t in the workflow yet. A test that cannot be re-read and re-run three weeks later is still a demo.

Why a Fixed Template Beats Ad-Hoc Notes

Ad-hoc notes optimize for speed on the day of the test. Fixed fields optimize for the day you need the test again. I have lost more time to incomplete notes than I have ever spent filling the extra cells. The template forces me to write down the things I am most likely to assume I will remember—and therefore most likely to forget.

The notebook lives in the same directory tree as the prompts, the source documents, and the raw outputs. One folder per test series. One index note that links them. That is the entire organizational system.

The Fields I Record Before the First Call

A close-up documentary shot of a person writing pre-flight AI test parameters and hypotheses into a paper notebook.

These are filled out before any tokens are generated. Writing them first prevents the common failure mode of adjusting settings mid-test and then forgetting which run used which values.

Test ID & Date
A short unique identifier and the UTC date. Example: 2026-10-05-mistral-large4-stability-v3.

Hypothesis or Question
One or two sentences. What am I trying to learn? “Does lowering temperature from 0.3 to 0.1 improve JSON field fidelity on messy support emails?” is a good question. “Test the model” is not.

Model Identity
Exact model name, endpoint or runtime, quantization level if local, and any revision or snapshot identifier the provider or runtime exposes. “Mistral Large 4” is not enough. “Mistral Large 4 via official API, stable endpoint, 2026-09-28” or “Mistral Large 4 Q4_K_M via llama.cpp commit abc123” is enough.

Sampling Settings
Temperature, top-p, max tokens, and any other knobs that were set. If a setting is left at the runtime default, I write “default” rather than leaving the cell blank.

System Prompt & User Prompt
The full text, or a clear reference to a versioned prompt file plus the exact hash or commit. I no longer trust “the usual system prompt.”

Source Materials
Document names, versions, chunking method if RAG is involved, and the retrieval parameters. For pure generation tests I note “none.”

Hardware / Environment
API versus local, GPU model if local, runtime version, and any relevant host constraints (available VRAM, concurrent load). This field has already explained more than one “it was fast yesterday” mystery.

Success Criteria
What will count as a pass, a partial, or a fail—written before I see the outputs. Rubrics can be simple numeric scores or short checklists. The important part is that they exist before the answers appear.

The Fields I Record During and After the Runs

Run Log
A table with one row per call: run number, request ID if any, latency, input tokens, output tokens, status, and a short qualitative note. Five runs is my current minimum for any claim about stability or variance.

Raw Outputs
Stored as separate files or as clearly delimited blocks in the notebook. I keep them even when they are long. Summaries lie; raw text does not.

Scores Against the Rubric
Filled immediately after each run or immediately after the set. Delaying scoring is how optimistic memory creeps in.

Observed Failure Modes
A free-text section that records the quiet errors: synonym substitution, dropped citations, softened numbers, lost checkpoints, positional bias, etc. I use the same vocabulary across notebooks so patterns become visible over time.

Cost
API dollars or local proxy (GPU-seconds, estimated electricity). Attention cost—the time I spent reviewing—goes in a separate line when it is material.

What Changed From Previous Related Tests
Explicit delta. “Same prompt as 2026-09-18 test, temperature lowered from 0.3 to 0.1, source document unchanged.” This field is the one I am most likely to need later and most likely to omit if the template does not force it.

Conclusions & Open Questions
What I believe the data supports, what it does not support, and what I still do not know. I try to keep this section short and linked to the actual scores rather than to the story I wanted to tell.

A Concrete Example of the Template in Use

When I ran the five-run stability test on a single support-triage prompt, the notebook header looked roughly like this:

  • Test ID: 2026-09-22-stability-triage-prompt-v2

  • Hypothesis: Five identical runs at temperature 0.3 will stay within a production-acceptable score band (≥16/20) on classification, JSON fidelity, reply quality, and action-list safety.

  • Model: Mistral Large 4, official API, stable endpoint

  • Settings: temperature 0.3, top-p 0.95, max tokens 2048

  • Success criteria: predefined 0–5 scores on four axes, total ≥16 counts as acceptable

The run log then captured the five scores (18, 19, 13, 19, 15), the latency band, the token counts, and the specific quiet failures on runs 3 and 5. Because the criteria were written first, the conclusion stayed honest: three of five runs met the bar; the prompt was not yet stable enough for unsupervised use.

That notebook later let me compare a revised prompt under the same conditions without relying on memory.

Habits That Keep the Notebook Trustworthy

  • Fill the pre-flight fields before the first API or local call. No exceptions for “quick checks.”

  • Treat five runs as the default minimum when variance matters. One run is a demo; five runs are a sample.

  • Store raw outputs. They are the only ground truth.

  • Re-use the same failure-mode vocabulary across notebooks. “Soft priority inflation” and “citation drop” mean the same thing six months apart only if I write them the same way.

  • Commit or copy the notebook folder when the test is complete. Future me should not have to hunt through unsaved editor buffers.

  • When a test is later superseded, leave the original notebook intact and link to the new one. History is data.

Tooling Notes (Deliberately Lightweight)

I use ordinary Markdown files and, when tables become heavy, a companion CSV or JSONL for the run log. The same structure works in Obsidian, a plain git repo, or a simple folder of text files. I have no dependency on a particular notebook platform. If the tool disappears, the records remain readable.

For local runs the same template applies; I simply fill the hardware and quant fields more carefully. The discipline does not change when the endpoint does.

What Changed After I Started Using the Template

Three practical effects appeared quickly:

  1. Reproducing an earlier result stopped being an archaeology project.

  2. Quiet regressions after model, runtime, or prompt changes became visible within a single comparison session instead of after days of vague unease.

  3. The failure notebook and the test notebooks began to reinforce each other. Patterns that showed up in ad-hoc failures could be turned into formal test cases with almost no extra framing.

The time cost of filling the fields is real and small. The time saved when something breaks is larger.

What I Still Don’t Know

I have not yet built automatic diffing between notebooks. I still compare them by eye. I have not standardized a machine-readable export that would let me plot score trends across dozens of tests without manual work. I have not stress-tested the template on multi-day agentic experiments where the state evolves continuously. Those are open improvements.

The current template is good enough that I trust the records it produces. That is the bar.

Closing Checklist

A documentary photo of stacked technical notebooks and a laptop on a clean desk, representing organized AI testing workflows.

Before the first call:
Test ID, hypothesis, model identity, sampling settings, full prompts, sources, environment, success criteria.

During and after:
Run log, raw outputs, rubric scores, failure modes, cost, deltas from prior tests, conclusions, open questions.

Keep the raw text. Write the criteria first. Re-use the same language for failures. Store the folder where future you can find it.

Here is what I controlled, here is what changed, and here is what I still don’t know. The controlled part is the notebook discipline itself. The rest continues every time I open a new file and force myself to fill the pre-flight fields before I hit send.

If it only works in the demo, it isn’t in the workflow yet. And if the test only lives in your head or in an unsaved buffer, it is not yet a test you can trust.

Last updated — 2026-10-20 09:49
Comments [ 0 ]

No comments yet.

Leave a comment