<?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>Example on SciDraft | A Hugo Theme</title><link>https://www.zhumengyao.com/scidraft/tags/example/</link><description>Recent content in Example on SciDraft | A Hugo Theme</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 22 Sep 2026 07:05:00 +0900</lastBuildDate><atom:link href="https://www.zhumengyao.com/scidraft/tags/example/index.xml" rel="self" type="application/rss+xml"/><item><title>Attention with Two Tokens (example)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-example-attention-two-tokens/</link><pubDate>Tue, 22 Sep 2026 07:05:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-example-attention-two-tokens/</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 smallest interesting attention example has two positions and one head, which is
enough for a full calculation with no matrix product larger than two by two.&lt;/p&gt;
&lt;p&gt;Working it at this size makes the two roles visible: the score decides how much the output
at position two borrows from position one, and the value vectors set what is borrowed. With
a causal mask, the first row has nothing to attend to but itself.&lt;/p&gt;</description></item><item><title>Softmax of Three Scores (example)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-example-softmax-three/</link><pubDate>Mon, 21 Sep 2026 13:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-example-softmax-three/</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;An example is where a formula stops being notation, and this one is small enough to check
by hand: three scores, one softmax, three probabilities that must sum to one.&lt;/p&gt;
&lt;p&gt;The numbers below are the ones the companion snippet prints, so the arithmetic here and
the output of a few lines of code can be compared directly.&lt;/p&gt;</description></item></channel></rss>