{# A unit's wiring for _experiment.html. Expects `v.wiring` from circuits.wiring_view, `what` and `root`. #} {% from "_site_macros.html" import fold, read_more %} {% if v.wiring %} {% call fold("Wiring", "Elhage et al., 2021; Syed et al., 2023") %}
The units that write most directly into this {{ what }} (upstream) and read most directly from it (downstream).{% if v.circuit %} See its circuit.{% endif %}
{% call read_more() %}"Directly" means along the residual stream, through no other unit. Linked units have pages in the registry. Reported, not gated.{% if v.wiring_backfilled %} Backfilled after the review by open-interpretability wiring-backfill, from the record's model revision and the review's prompts. It is not part of the record.{% endif %}
{{ "From the weights" if w.method == "weights" else "From activations" }}. {% if w.method == "weights" %} Virtual weights, with each norm's gain folded in. They rank units but have no absolute scale. Each number is how much one unit reads of the other's write. It is signed when one vector reads another (+ means a positive activation raises the read), and a norm otherwise. Heads count through their OV circuit upstream, and through their Q, K and V reads downstream. Channels are on hover. {% else %} Averaged over this {{ what }}'s peak on {{ w.prompts }} of the review's prompts where it fired. Upstream: the first-order change in its strength when a unit's direct write is removed (+ excites). Downstream: the change in a later unit when this {{ what }}'s write is removed from that unit's input alone (one of Q, K or V for a head). {% endif %}
{% endfor %} {% endcall %} {% for view in v.wiring %} {% set w = view.w %}Not measured.
{% elif not rows %}None: {{ "no earlier layer" if title.startswith("Upstream") else "no later layer" }}.
{% else %}| {% if row.href %}{{ label }}{% else %}{{ label }}{% endif %} | {{ row.via or "" }} | {{ '%+.3g' | format(e.weight) }} |