Experiment Template
- Blog prose for an outside reader (load
writing:style): no run names, arm codes or flags; say what each setup does. - No defensive writing in the main text (owner, 2026-10-28): state each finding plainly, without seed counts, comparisons with the spread between seeds, steps that did not resolve, failed attempts, or caveats that change no conclusion. When the finding is that we could not tell, say so once. Nothing is deleted, only moved: whatever leaves the main text, numbers and caveats included, goes into a Details fold, under its figure (the figure's
data-more-enanddata-more-zh, whichassets/exp-org.jsdraws) or at the end of its question or of Setup (details.eo-more). - The title names what the experiment measures, never its result; the card uses it. Cards run newest first, the grey template card last.
- English and Chinese for every text element.
- No standfirst and no Takeaways while the project runs. When it is finished, both are written, and the standfirst under the title (
p.ar-standfirst) is the Takeaways text word for word, in English and Chinese (owner, 2026-10-21). The Takeaways sentence is also the page's description (meta); cards carry no text. - While runs go on, the draft is a dashboard: every running or planned figure is already on the page with its axes, legend and a status word (Running, Queued, Planned), and fills in when its runs finish. A figure whose runs are dropped is deleted. Publish only when no placeholder is left.
- The page opens with the cover animation alone: no section, no heading, no caption, not in the side contents. Then the sections in order: Setup, Questions, Experiments, Takeaways, Related work, Acknowledgements, Experiment record, Citation (owner, 2026-10-28: Setup always comes first). A figure that tracks every setup at once is its own last question, such as "Which change lowers the result most?", so its runs belong to a question. The side contents lists every section and, under Experiments, every question with its status mark; on wide screens it sits in the left margin of the body from the cover down, scrolls with the page, sticks once it reaches the top of the window, and replaces the contents bar (owner, 2026-10-28).
- The question is the unit of the page (owner, 2026-10-28).
assets/exp-org.jsreads the questions, their answers, their figures and the record, and draws three things nobody types: the Questions map after Setup, the runs behind each question, and the record grouped by question. The map has one line per question in page order: its number, the question, the first clause of its answer or the word Testing, and its date, the day its first new run started. A figure's Details fold holds whatever its two-line caption leaves out. The page callsExpOrg.attachbeforesite.jswith its record and the variables it varies.
- 写给外部读者的博客(先加载
writing:style):不出现 run 名、分组代号或开关名,说清每种做法做了什么。 - 正文里不写防御性的话(作者,2026-10-28):每个发现直接说,不写种子数、与种子间差异的比较、没有定论的枝节、失败的尝试,以及不改变任何结论的保留语。如果发现本身就是分不清,就说一次分不清。只能挪,不能删:离开正文的内容,包括数字和保留语,都放进“详细说明”折叠,放在对应的图下面(图的
data-more-en和data-more-zh,由assets/exp-org.js画出),或放在对应问题、Setup 的末尾(details.eo-more)。 - 标题写实验衡量什么,不写结果;卡片用同一标题。卡片按新到旧排,灰色模板卡片放最后。
- 每个文字元素都有中英两版。
- 项目进行中,不写导语,也不写核心结论。项目完结后两者都写,标题下方的导语(
p.ar-standfirst)与核心结论一节逐字相同,中英两版(owner 2026-10-21)。核心结论那一句同时用作页面简介(meta);卡片上不放文字。 - 作业还在跑时,草稿就是看板:运行中或计划中的图先放上页面,画好坐标轴和图例,面板中间写状态(运行中、排队中、计划中),作业跑完就填上数据。不再跑的图直接删掉。没有占位图了才发布。
- 页面以封面动画开头,只放动画:不作为一节,没有标题和图注,也不列入侧边目录。之后各节顺序:Setup、Questions、Experiments、Takeaways、Related work、Acknowledgements、Experiment record、Citation(作者,2026-10-28:Setup 永远在最前面)。同时追踪所有做法的总览图单独作为最后一个问题,比如“哪种改动最能降低结果?”,这样它的 run 也有所属的问题。侧边目录列出每一节,并在 Experiments 下列出每个问题和它的状态标记;宽屏上它在正文左侧的边栏里,从封面那一行开始,随页面滚动,到达窗口顶部后固定,并取代顶部的目录条(作者,2026-10-28)。
- 问题是整页的基本单位(作者,2026-10-28)。
assets/exp-org.js读取页面上的问题、结论、图和实验记录,画出三样不手写的东西:Setup 之后的问题地图、每个问题背后的 run、按问题分组的实验记录。地图每个问题一行,按页面顺序:编号、问题、结论的第一句(检验中的问题写“检验中”)和日期,即它第一个新 run 开始的那天。每张图的“详细说明”折叠放两行图注之外的内容。页面在site.js之前调用ExpOrg.attach,传入实验记录和页面改变的变量。
- Cover: the page's main result in motion (owner, 2026-10-28; it was a schematic of the setup, which carried no information). The rest of this list keeps the site's Epoch illustration style for the setup schematics and explainers on the page: white ground, flat GM2 fills inside a grey 700
#5F6368outline (grey 100#F1F3F4at rest, blue 50#E8F0FEreached), Google blue#1A73E8for what moves or matters, blue 300#8AB4F8for inputs, near-black#202124for the fixed or target part, which takes no outline; no wobble filter and no offset fills. The primitives are intools/exp-art/style.js. - Card picture: the homepage and Experiments card shows an abstract picture, not the cover, as a flow field after Tyler Hobbs's Fidenza (owner, 2026-10-28, picked from 100 modern-art styles; it replaces the low-poly terrain of 2026-10-14): on a warm paper ground, bands of several widths that never cross flow along the nearest stretch of the page's own data lines, each band in the colour that line has in the page's figure, and one band in seven in ink or paper. The generator is
tools/exp-art/flow_cards.py; add a card as one entry intools/exp-art/flow-cards-data.js(the series of the main figure and a seed). The cover animation on the page shows the result. - Animation: one figure of the page in steady motion, read from the same generated data file, never typed: the vocabulary page draws its cost curves pass by pass. It keeps the labels a chart needs, namely the quantity, a few ticks and the line names, and the colours of the figure it comes from. A page with
render(t)andwindow.Tdrawn withstyle.js, rendered bytools/exp-art/render_anim.py, placed asfigure.ar-video#overview, first on the page. - Content: a reader who watches the cover knows what the experiment found. Pick the figure that carries the page's main finding; the setup belongs to Setup.
- One style: every illustration on the page, setup schematics and step-by-step explainers alike, uses the Epoch illustration style above: the same palette and grey outlines, moving tokens instead of arrows, and as few labels as possible (owner, 2026-10-04; style changed 2026-10-12).
- Card: the flow-field card picture, the date and the title, with no text below them: no description and no Takeaways (owner, 2026-10-04).
- 封面:本页主结果的动画(作者,2026-10-28;原来是实验做法的示意图,没有信息量)。下面几条保留网站的 Epoch 插图风格,用于页面上的做法示意图和讲解动画:白底,GM2 纯色块加灰 700
#5F6368轮廓(静止的部件用灰 100#F1F3F4,已经到达的用蓝 50#E8F0FE),移动的和要比较的部分用 Google 蓝#1A73E8,输入用蓝 300#8AB4F8,固定的或目标部分用近黑#202124,深色块不加轮廓;不用抖动滤镜,不用偏移色块。绘图函数在tools/exp-art/style.js。 - 卡片图:首页和 Experiments 列表的卡片用抽象图,不用封面动画,画法是仿 Tyler Hobbs 的 Fidenza 的流场(作者,2026-10-28,从 100 种现代艺术风格中选出,取代 2026-10-14 的低多边形地形):暖色纸底上,粗细不一、互不交叉的色带沿页面自己的数据线就近流动,每条色带取那条线在页面原图里的颜色,约七分之一的色带用墨色或纸色。生成脚本是
tools/exp-art/flow_cards.py,新卡片在tools/exp-art/flow-cards-data.js里加一条(主图的数据线和一个种子)。页面里的封面动画画结果。 - 动画:把页面上的一张图匀速画出来,读同一个生成的数据文件,不手填数字:词表那一页把代价曲线一遍一遍画出来。保留图表必需的标签,即纵轴量、少量刻度和线名,颜色和原图一致。页面用
style.js绘制,提供render(t)和window.T,用tools/exp-art/render_anim.py渲染,放成figure.ar-video#overview,页面第一项。 - 内容:看完封面就知道实验发现了什么。选承载本页主结论的那张图;实验做法交给 Setup。
- 同一风格:页面上所有插图,包括做法示意图和分步讲解动画,都用上面的 Epoch 插图风格:同样的配色和灰色轮廓,用移动的小圆点代替箭头,文字标签越少越好(作者,2026-10-04;2026-10-12 换成新风格)。
- 卡片:只有流场卡片图、日期和标题,下面不放文字:不放简介,也不放 Takeaways(作者,2026-10-04)。
Setup设置
[At most five sentences: the baseline by its exact name, linked to the original recipe; what we change; the data and the sizes; the metric and the quantity the page compares; the runs use this code.] Code
【最多五句:准确写出基线名字,链接到原始配方;改了什么;数据和规模;指标和本页比较的量;所有 run 使用的代码。】代码
- First after the cover, and short: at most five sentences (owner, 2026-10-28). The baseline by its exact name, linked to the original recipe at a fixed commit; what we change; the data and the sizes; the metric and the quantity the page compares, defined once; a link to the exact public commit of the runs. A detail that does not change how a reader reads the figures stays out.
- No code diff on the page (owner, 2026-10-28): the Code links of the record carry the code.
- Controls that need no code change are named in the legend of the figures that use them.
- 封面之后第一节,要短:最多五句(作者,2026-10-28)。写准基线名字,链接到原始配方的固定提交;改了什么;数据和规模;指标和本页比较的量,只定义一次;最后链接到实验所用的公开提交。不影响读者读图的细节不写。
- 页面上不放代码 diff(作者,2026-10-28):代码由实验记录里的“代码”链接给出。
- 不改代码的对照组写在用到它的图的图例里。
- One branch per experiment on the public fork
wenhaochai/marin-pli, named after the slug, carrying the history as it was run. - In a fresh clone,
scrub.sh(git filter-repo) replaces only the cluster user, group directory and Slurm account withUSER,GROUPandgroup, in contents, archives, file names and messages. Scan every blob and archive member until keys and identifiers are zero. The private original stays onarchive. A.gitignoreblock keeps credentials and job output out. - Each public push needs the owner's approval, or a standing approval the owner gave for that branch; either way, push only when both scans are zero. Code links go live after the push.
- 每个实验一个分支,推到公开的
wenhaochai/marin-pli,分支名用 slug,历史保持实际运行时的样子。 - 在新克隆里用
scrub.sh(git filter-repo)只把集群用户名、组目录和 Slurm 账户换成USER、GROUP和group,文件内容、压缩包、文件名和提交信息都换。扫描所有文件和压缩包成员,直到密钥和标识都为 0。私有原始历史留在archive。.gitignore挡住凭据和作业输出。 - 每次公开推送都要作者批准,或者作者已对这个分支给了长期授权;两种情况都只在两项扫描都为 0 时才推。推送后代码链接才生效。
Experiments实验
Answered已有结论[First question]【第一个问题】
[The answer in one or two sentences, e.g. "Yes: our run follows the paper's curve."]
【一两句话的结论,例如“能复现:我们的 run 一路跟住论文的曲线。”】
Testing检验中[Question the results raised]【结果引出的问题】
- Experiments is organized by question: each subsection is titled with the question its figures answer, in the order the questions came up, so the page shows how the work went. A tag before the title gives its status: Answered or Testing. The page script numbers each question (Question n) and ends it with a folded list, Runs behind this question: the runs its figures use, its new runs first, with a filter by figure. A run is new in the first question whose figures use it.
- An Answered question is followed at once by its answer, one or two sentences in words, at the altitude the figures support (e.g. "Yes: our run follows the paper's curve."), without supporting numbers; the tag alone is not enough (owner, 2026-10-04). A Testing question gets its answer when it turns Answered.
- Each subsection opens with a schematic, in the Epoch illustration style, of the setups it introduces: one panel per setup, controls included, each with its name and one sentence; tags mark the main setup (Main) and the setup it is measured against (Baseline). A setup drawn in an earlier subsection is not drawn again.
- The first figure compares every setup on the raw metric with the baseline; a setup equal to the baseline by construction is left out. Each later figure makes one point, with the data processed around it. Once the page settles on a setup, later scales and variants follow that setup only.
- A title names what is plotted and never an axis or the comparison the y axis already states: no "against backbone compute", "by training tokens", "during training", "against the baseline" or "X minus Y", since the axis labels already say it.
- The compute axis is backbone compute 6ND: N the parameters of the layers counted, without the embedding and the heads; D the training tokens.
- A model outside the baseline's named sizes gives its shape in the title (layers, width) and its MLP width, heads and parameter counts (backbone, embedding, heads) in the setup schematic of the question that introduces it.
- Charts are
figure.vizdrawn byassets/article-charts.jsfrom a generated file inassets/data/, never typed numbers, under thewriting:plotrules. Titles and captions in both languages; no running text in Experiments that lists numbers or restates what a figure shows. A paragraph between figures says only what the next figure needs, in one or two sentences. - Every caption fits in two lines at desktop width in both languages (owner, 2026-10-28): what the figure shows, in words, plus a short reading key when the chart needs one, such as "Each gap is the cost of 8 passes." The question heading gives the motivation and the title names what is plotted, so the caption repeats neither, and the chart carries the numbers. A placeholder's caption says what the figure will test.
- 实验部分按问题组织:每个小节的标题是它的图所回答的问题,按问题出现的先后排列,让页面呈现研究推进和修正的过程。标题前用标签写状态:已有结论或检验中。页面脚本给每个问题编号(问题 n),并在问题末尾加一个折叠列表“这个问题背后的 run”:列出它的图用到的 run,新 run 在前,可以按图筛选。一个 run 算在第一个用到它的问题下,是那个问题的新 run。
- 标为“已有结论”的问题,标题后紧接着用一两句话写出结论:用文字说图里得出了什么,说到证据支持的程度为止(例如“能复现:我们的 run 一路跟住论文的曲线。”),不配支撑数字;只有标签不够(作者,2026-10-04)。“检验中”的问题在改标为“已有结论”时再写结论。
- 每个小节开头放一张Epoch 插图风格的示意图,只画本小节引入的做法:每种做法一格,包括对照组,每格配名字和一句话;用标签标出主做法和它所对照的基线。前面小节画过的做法不再重画。
- 第一张图用原始指标比较所有做法和基线;按构造等于基线的做法不画。之后每张图只讲一件事,数据围绕它处理。页面定下主做法以后,更大规模和变体实验只跑这一种做法。
- 标题只写画了什么,不写坐标轴:不写“与骨干算力”“按训练 token”“训练过程中”这类话,坐标轴标签已经写了。
- 算力轴用骨干算力 6ND:N 是计入的各层参数量,不算 embedding 和头;D 是训练 token 数。
- 基线命名规模之外的模型,标题写形状(层数、宽度),引入它的那个问题的示意图写 MLP 宽度、头数和参数量(骨干、embedding、头)。
- 图用
figure.viz,由assets/article-charts.js根据assets/data/里脚本生成的文件绘制,数字不手填,遵守writing:plot。标题和图注中英双语;实验部分不写罗列数字、复述图中结果的正文。图与图之间的段落只写下一张图需要的东西,一两句话。 - 每条图注在桌面宽度下中英文都不超过两行(作者,2026-10-28):用文字写这张图说明了什么;图需要时加一句很短的读图说明,比如“两点之间的差距是重复 8 遍的代价。”动机由问题标题给出,画了什么由图标题给出,图注都不重复;数字由图本身给出。占位图的图注写这张图将要检验什么。
Takeaways核心结论
[Empty while drafting. Right before publishing: one precise sentence with the result, negatives included; the same sentence is the page's description.]
【起草时留空。发布前再写:一句准确的话给出结果,负面结果也写;同一句话用作页面简介。】
Acknowledgements致谢
The author is pleased to acknowledge that the work reported on in this post was substantially performed using the Princeton Research Computing resources at Princeton University. Princeton Research Computing is a consortium of groups including the Princeton Institute for Computational Science and Engineering (PICSciE) and Research Computing at Princeton University.
本文报告的工作主要使用普林斯顿大学 Princeton Research Computing 的计算资源完成。Princeton Research Computing 是由普林斯顿计算科学与工程研究所(PICSciE)和普林斯顿大学 Research Computing 等团队组成的联合体。
Experiment record实验记录
1[The first question]【第一个问题】
Main runs: [X] H100-hours, [N] jobs正式的 job:[X] H100 小时,[N] 个 job
Other compute: [X] H100-hours, [N] jobsOther compute:[X] H100 小时,[N] 个 job
- No text above the record. The record is grouped by question, in page order, one folded line per question with its run count and H100-hours; each group lists the runs that question adds, so a run appears once, under the first question whose figures use it. Runs in no figure yet come last. Inside a question the runs are grouped by setup: the values a group shares go on its header line, and each row names only the values that differ (owner, 2026-10-28).
- One row per training run behind the page, generated by
build_record.pyintoassets/data/SLUG-record.jsand drawn byassets/exp-org.js: finished runs from W&B, queued and running jobs fromsacct(which fails loudly rather than guess), the rest planned. Never typed. Only main runs get rows. The table ends with two lines, "Main runs: X H100-hours, N jobs" and then "Other compute: X H100-hours, N jobs", counted fromsacctover every GPU job of the project (H100-hours = GPUs x elapsed), so the two add up to everything the page cost. A job is a main run job if it belongs to a run that has a row in the table, every resume segment included. Everything else is other compute: smoke tests, debug runs, superseded versions, abandoned runs, probes not on the page (owner, 2026-10-05). A packed job (several tasks in one allocation: smoke then run, runs in order, or two 4-GPU runs side by side) writes a task ledger,logs/packed/JOBID.tsv, one line per task: task, run, main or other, GPUs, start, end, exit code. ItssacctH100-hours are split by the ledger: each task's GPUs x its wall time goes to its run's line, smoke copies and failed tasks to other compute, and the remainder (startup, gaps, GPUs a task left idle) to other compute, so the two lines still add up to thesaccttotal. The job counts once, as a main run job if any of its tasks is (owner, 2026-10-07). - Columns: the run, H100s, hours, time, figures, code and W&B. The variables the page varies, layers on a depth page for example, are named in the page's
ExpOrg.attachcall and written on the group headers and rows. No state column: a run that has not finished shows its state where its links go. H100-hours appear only on the folded lines of the record and in the two closing lines. - Figures link to the figures on the page (figure n is the n-th
figure.viz; when a figure has moved since the record was generated, the page'sfigOrdermaps the old numbers until the record is regenerated). Code links to the public commit the run used: the commit W&B recorded, mapped through the scrub's commit map. The links are for tracing a run afterwards, not for monitoring it (owner, 2026-10-04): every finished run links both, and a queued or running run may leave them empty until it finishes; never create a W&B page ahead of a run. W&B links are absolute. Both open in a new tab. - Every finished run appears in at least one figure; a run in no figure gets a figure or leaves the page.
- On phones each run takes two lines: its name, then every other column with its label. No column is hidden, and nothing scrolls sideways at 420, 375 and 360 px in both languages.
- 实验记录上方不写说明文字。记录按问题分组,按页面顺序,每个问题折叠成一行,写 run 数和 H100 小时;每组列出这个问题新增的 run,所以每个 run 只出现一次,在第一个用到它的问题下。还没进入任何图的 run 放在最后。问题内部再按做法分组:组内共有的值写在组头一行,每行只写不同的值(作者,2026-10-28)。
- 页面背后的每个训练 run 一行;由
build_record.py生成到assets/data/SLUG-record.js,再由assets/exp-org.js绘制:已完成的 run 取自 W&B,排队和运行中的作业取自sacct(取不到就报错,不猜),其余标为计划中。不手填。只有正式的 run 占行。表格最后两行依次写“正式的 job:X H100 小时,N 个 job”和“Other compute:X H100 小时,N 个 job”,从sacct统计项目的全部 GPU job(H100 小时 = GPU 数 × 运行时长),两行相加就是这个页面的全部花费。属于表格中某个 run 的 job(包括它的每一段续跑)算正式的 job;其余都算 other compute:冒烟测试、调试、被替换的旧版本、放弃的 run、不在页面上的探针(作者,2026-10-05)。打包的 job(一个分配里跑多个任务:先 smoke 再训练、按顺序跑几个 run、或两个 4 卡 run 并排跑)要写任务台账logs/packed/JOBID.tsv,每个任务一行:任务、run、正式或 other、GPU 数、开始、结束、退出码。它在sacct里的 H100 小时按台账拆分:每个任务的 GPU 数 × 运行时长记到它的 run 那一行;smoke 副本和失败的任务记到 other compute;剩下的部分(启动、任务之间的空隙、任务没用上的 GPU)也记到 other compute。这样两行相加仍等于sacct的总数。这个 job 只算一个;只要有一个任务是正式的,它就算正式的 job(作者,2026-10-07)。 - 列依次是:run、H100 数、小时、时间、图、代码和 W&B。页面改变的变量(比如研究深度的页面就是层数)写在页面的
ExpOrg.attach调用里,显示在组头和每一行。不设状态列:还没跑完的 run 在链接的位置写状态。H100 小时只出现在实验记录的折叠行和最后两行。 - “图”链接到页面上的图(第 n 张图是第 n 个
figure.viz;如果生成记录之后图的位置变了,在重新生成记录之前,由页面的figOrder把旧编号对应到新位置)。“代码”链接到这个 run 所用的公开提交:取 W&B 记下的提交号,按清除时的对照表换成公开提交号。这两种链接用于事后追溯,不用于监控(作者,2026-10-04):每个跑完的 run 两种链接都要有;排队或运行中的 run 可以先空着,跑完再填;不要为还没开跑的 run 预先建 W&B 页面。W&B 链接用绝对地址。两种链接都在新标签页打开。 - 每个完成的 run 至少出现在一张图里;不在任何图里的 run,要么补一张图,要么从页面上去掉。
- 手机上每个 run 占两行:第一行是名字,第二行是其余各列,每列带名称。不隐藏任何列;在 420、375、360 像素下,中英文两版都不需要横向拖动。
Citation
@misc{chai2026SLUG,
title = {[Title]},
author = {Chai, Wenhao},
year = {2026},
howpublished = {Blog post},
url = {https://wenhaochai.com/exps/SLUG.html}
}