MethodCard

MethodCard screenshot

When to use

A MethodCard per named method (e.g. M1, M2, M3) you’re defining or comparing. One per definition. Don’t use a bulleted list of definitions — use multiple cards.

Example

import MethodCard from '../../components/widgets/MethodCard.astro';

<MethodCard tag="M1" title="Per-token softmax">
  <div class="method-eq">$$ p_i = \frac{\exp(z_i / \tau)}{\sum_j \exp(z_j / \tau)} $$</div>
  Standard temperature-scaled softmax over per-token logits.
</MethodCard>

Props

PropTypeRequiredNotes
tagstringyesShort uppercase id (≤ 3 chars).
titlestringyesOne-line method name.
eqstringnoDisplay math (KaTeX, pre-rendered HTML). Prefer slot-based math (see example).
expandstringnoOptional follow-on expansion equation.

The component body (slot) is the prose note describing the method.

When not to use