# CIS-2 conformance vector: attention_block_v1 # op=attention_block, spec ref: docs/CIS2_SPEC_v0.2.md §9.2 (Score), §9.3 # (Softmax), §9.4 (V-mix) -- one query head's full score/softmax/V-mix # pipeline against a small causal KV cache. Deliberately covers ONE head # only: GQA's `kv_head = qh / group` head-mapping (§9, opening paragraph) # is a pure indexing detail on top of this same per-head arithmetic, not # additional numeric behavior, so it is not separately vectored here. # RoPE (§7, already covered by rope_v1) is assumed already applied to # `q_head`/`k_j` inputs below, per §9.1's ordering (RoPE happens before # scoring) -- this vector starts from already-rotated q/k, as the spec's # §9.2 step itself does. # # Fields are `key=value`. `head_dim`/`seq_len` are plain decimal integers. # `q_head_bits` is head_dim values (the current step's query head, already # RoPE-rotated). `k_bits`/`v_bits` are `seq_len * head_dim` values, # ROW-MAJOR (cached key/value at position 0's head_dim entries, then # position 1, ... up to and including the current step `pos = seq_len - # 1`, causal -- every cached position is attended, per §9.2's `j = # 0..=pos`). All comma-separated `0x`-prefixed 32-bit hex IEEE-754 binary32 # bit patterns, per tests/conformance/README.md's general convention. op=attention_block spec_ref=docs/CIS2_SPEC_v0.2.md#9-attention-gqa-causal-per-decode-step-normative head_dim=8 seq_len=3 q_head_bits=0x3F800000,0x3F000000,0xBF000000,0x40000000,0xBF800000,0x3E800000,0x3F400000,0xC0000000 k_bits=0x3F000000,0x3F800000,0x3F800000,0xBF800000,0x3F000000,0x3F000000,0xBF000000,0x3F800000,0x3F800000,0xBF800000,0x3F000000,0x3F000000,0x3F800000,0xBF000000,0x3F000000,0x3F000000,0xBF000000,0x3F000000,0x3F800000,0x3F800000,0xBF800000,0x3F800000,0x3F000000,0xBF000000 v_bits=0x3F800000,0x00000000,0x00000000,0x3F800000,0x3F000000,0x3F000000,0xBF000000,0x00000000,0x00000000,0x3F800000,0x3F000000,0x00000000,0x3F800000,0x00000000,0x3F000000,0x3F000000,0x3F000000,0x3F000000,0x3F800000,0xBF000000,0x00000000,0x3F800000,0x00000000,0x3F800000