<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Mermaid on SciDraft | A Hugo Theme</title><link>https://www.zhumengyao.com/scidraft/tags/mermaid/</link><description>Recent content in Mermaid on SciDraft | A Hugo Theme</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 22 Sep 2026 07:15:00 +0900</lastBuildDate><atom:link href="https://www.zhumengyao.com/scidraft/tags/mermaid/index.xml" rel="self" type="application/rss+xml"/><item><title>Autoregressive Generation (sequence diagram)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-sequence/</link><pubDate>Tue, 22 Sep 2026 07:15:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-sequence/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A language model writes one token at a time. The prompt is processed once, then
each new token is appended to the sequence and fed back in, so generation is a
loop between the model and the sampler rather than a single call. The sequence
diagram below shows the participants and the messages between them.&lt;/p&gt;</description></item><item><title>Attention Variants by Cost and Cache (quadrant chart)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-quadrant-attention/</link><pubDate>Mon, 21 Sep 2026 14:21:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-quadrant-attention/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Choosing an attention variant is a two-constraint problem rather than a ranking:
the score cost decides how long a sequence can be trained on, and the per-token
cache decides how long a sequence can be served, and the two orderings of the
variants are not the same.&lt;/p&gt;</description></item><item><title>A Transformer Training Step (flowchart)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-flowchart/</link><pubDate>Mon, 21 Sep 2026 14:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-flowchart/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;One training step is a fixed cycle: the model predicts, the predictions are
scored against the targets, the error is propagated backwards, and the
parameters move a little in the direction that reduces it. The diagram below
shows that cycle; the repetition is the whole of training.&lt;/p&gt;</description></item><item><title>A Training Schedule (gantt)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-gantt-training/</link><pubDate>Mon, 21 Sep 2026 13:00:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-gantt-training/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A training run has a shape in time as well as in the loss curve: data preparation
that nothing else can start without, a warmup whose length is set by the step
size, a long stable phase, and a cooldown whose purpose is to end at a point the
optimiser has settled into.&lt;/p&gt;</description></item><item><title>Decoding as a State Machine (state diagram)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-state/</link><pubDate>Mon, 21 Sep 2026 10:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-state/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The same generation loop can be described without messages, as a machine with
a small number of states. This view is useful when the interesting questions are
about &lt;em&gt;transitions&lt;/em&gt; — when decoding starts, what keeps it running, and which
conditions end it. The state diagram below is the whole lifecycle of one
completion.&lt;/p&gt;</description></item><item><title>Families of Attention (mindmap)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-mindmap-attention/</link><pubDate>Mon, 21 Sep 2026 09:44:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-mindmap-attention/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The variants of attention that appear in long-context work are easier to keep
apart by what they replace than by their names: each one gives up the full score
matrix and puts something else in its place, and the something else is what the
family is called.&lt;/p&gt;</description></item></channel></rss>