{% from "_macros.html" import chart %} {# Vocabulary projection for _experiment.html. Expects `v` and `sub`. #} {% from "_macros.html" import fold, read_more %} {% if sub.vocabulary_lens %} {% set vl = sub.vocabulary_lens %}{% set vc = v.vocab %} {% call fold("Vocabulary projection") %}
The tokens that this unit's output raises and lowers most.
{% if vc %}| # | {% for panel in vc.panels %}{{ panel.title }} promotes | suppresses | {% endfor %}||
|---|---|---|---|---|
| {{ row.rank }} | {% for panel in vc.panels %}{% for side in ("promoted", "suppressed") %}{% set cell = row[panel.key ~ "_" ~ side] %}{% if cell %}{{ cell[0] }}{% endif %} |
{% if cell %}{{ "%+.2f" | format(cell[1]) }}{% endif %} | {% endfor %}{% endfor %}||
| Jacobian lens | Logit lens | |
|---|---|---|
| {{ label }} | {% for t in jac[:8] %}{{ t }}{% endfor %} |
{% for t in logit[:8] %}{{ t }}{% endfor %} |
This record predates vocabulary z-scores, so the tokens are listed without bars.
{% endif %}Top-10 overlap {{ vl.overlap | pct }} · cos(w, J·w) {{ vl.direction_cosine | num(2) }} · kurtosis {{ vl.jacobian_kurtosis | num(1) }} (Jacobian) / {{ vl.logit_kurtosis | num(1) }} (logit) · {{ vl.prompts }} prompts
{% call read_more() %}The output direction is read through the final norm and the unembedding. The Jacobian lens first carries it to the last layer. Bar length is the token's z-score over the vocabulary, and ␣ marks a space. A kurtosis near 3 means no specific set of tokens.
{% endcall %}