0x7f3a 0xe891 0x2c4d 0xb7f0 0x51a3 0xd826 0x9f1b 0x4e70 0xa3c9 0x6d52 0xf148 0x8b95 0x3207 0xc6de 0x0a74 0x7f3a 0xe891 0x2c4d 0xb7f0 0x51a3 0xd826 0x9f1b 0x4e70 0xa3c9 0x6d52 0xf148 0x8b95 0x3207 0xc6de 0x0a74W_q @ x.T → softmax(QK^T/√d) @ V → concat(heads) → W_o → residual += out → layernorm(x + sublayer(x)) W_q @ x.T → softmax(QK^T/√d) @ V → concat(heads) → W_o → residual += out → layernorm(x + sublayer(x))transformer · self-attention · cross-entropy · backprop · gradient descent · batch norm · dropout · residual transformer · self-attention · cross-entropy · backprop · gradient descent · batch norm · dropout · residualtensor([0.0234, -0.1892, 0.4521, 0.0078, -0.3341, 0.2190, -0.0562, 0.1847, -0.2903, 0.3678, 0.0445]) tensor([0.0234, -0.1892, 0.4521, 0.0078, -0.3341, 0.2190, -0.0562, 0.1847, -0.2903, 0.3678, 0.0445])logits[:, -1, :] → top_p(0.9) → temperature(0.7) → sample() → token_id:31842 → detokenize logits[:, -1, :] → top_p(0.9) → temperature(0.7) → sample() → token_id:31842 → detokenizeattention_mask · position_ids · kv_cache · rope_theta · sliding_window · flash_attn · paged_attention attention_mask · position_ids · kv_cache · rope_theta · sliding_window · flash_attn · paged_attentionsha256:e3b0c44298fc sha256:1c3bc8a2f1d sha256:9f86d081884 sha256:5e884898da sha256:d7a8fbb307d sha256:e3b0c44298fc sha256:1c3bc8a2f1d sha256:9f86d081884 sha256:5e884898da sha256:d7a8fbb307dinput → embed → encode → attend → decode → project → sample → detokenize · ctx: 1M input → embed → encode → attend → decode → project → sample → detokenize · ctx: 1M██░░██████░░░███░██░░░░██████░░███████░░░██░░██████░░░░███░░██████░░███░░░░██░████░░░░██████░░░███ ██░░██████░░░███░██░░░░██████░░███████░░░██░░██████░░░░███░░██████░░███░░░░██░████░░░░██████░░░███RLHF → DPO → KTO → ORPO · reward_model.score() · preference_pairs += 1 · policy.update() RLHF → DPO → KTO → ORPO · reward_model.score() · preference_pairs += 1 · policy.update()0xfa91 0xbb03 0x44d7 0x1ef2 0x73c8 0xa605 0xde3b 0x5910 0x8c4a 0x27fd 0xf0b6 0x6389 0x9d2e 0xc571 0x0847 0xfa91 0xbb03 0x44d7 0x1ef2 0x73c8 0xa605 0xde3b 0x5910 0x8c4a 0x27fd 0xf0b6 0x6389 0x9d2e 0xc571 0x0847loss: 0.0234 → 0.0198 → 0.0156 → 0.0121 → 0.0089 · embed → encode → attend → decode → project loss: 0.0234 → 0.0198 → 0.0156 → 0.0121 → 0.0089 · embed → encode → attend → decode → project
Every weekday CtrlAltDebrief
AI moves fast.
Here's your debrief.
News, analysis, tools, and more.