Markdown on the Site

This Note shows what Markdown renders on the Site.

Math#

Inline math like eiπ+1=0e^{i\pi} + 1 = 0, and block math:

softmax(x)i=exi∑jexj\mathrm{softmax}(x)_i = \frac{e^{x_i}}{\sum_j e^{x_j}}

Code#

def attention(q, k, v):
    scores = q @ k.T / k.shape[-1] ** 0.5
    return softmax(scores) @ v

Tables and footnotes#

Feature Supported
Tables yes
Tasks yes

Footnotes work too.1

See why attention scores are scaled for a Note with a heading link.

The Vault supplies content to the Site

Footnotes#

  1. Like this one. ↩