QianQu's picture
Upload folder using huggingface_hub
092577a verified
Raw History Blame Contribute Delete
379 kB
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CompoundingKernel Explorer: SOL-ExecBench on B200</title> <meta name="description" content="CompoundingKernel: the paper (arXiv 2611.19230), the method code, and a GPU kernel for each of the 235 SOL-ExecBench problems on NVIDIA B200."> <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1' y='1' width='24' height='24' rx='6' fill='%23FAF9F5' stroke='%231F1E1D' stroke-width='1.6'/%3E%3Crect x='6' y='6' width='6' height='6' rx='1.5' fill='%23405F87'/%3E%3Crect x='14' y='6' width='6' height='6' rx='1.5' fill='none' stroke='%23CE9DB3' stroke-width='1.6'/%3E%3Crect x='6' y='14' width='6' height='6' rx='1.5' fill='none' stroke='%236E8B74' stroke-width='1.6'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1.5' fill='none' stroke='%23C3B787' stroke-width='1.6'/%3E%3C/svg%3E"> <style> /* Paper style ("Editorial ink", tech-report/v6/ck-header.tex + blog/src/template.html tokens). Board colours come from the demo film (video/SPEC.md, muted on purpose): light = the film's marks; dark = lighter steps of the same hues, re-stepped to pass the CVD checks. Board names stay in ink, next to the colour (the logo is decorative). */ :root { --bg: #FAF9F5; --panel: #FFFFFF; --soft: #F0EEE6; --tint: #F6F4EE; --ink: #1F1E1D; --ink-2: #3D3D3A; --muted: #6B6A64; --rule: #CFCBC0; --hair: #EBE8E0; --clay: #C96442; --clay-ink: #A9502F; --ours: #F8ECE6; --l1: #405F87; --l2: #CE9DB3; --quant: #6E8B74; --fi: #C3B787; --focus: #A9502F; /* code colors: each is at least 4.9:1 on the code background */ --hl-k: #A9502F; --hl-t: #2F5E9E; --hl-s: #2B7041; --hl-n: #8A5A00; --hl-p: #7A48AE; --hl-c: #6B6A64; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "TeX Gyre Pagella", P052, Georgia, serif; --sans: Helvetica, Arial, "Nimbus Sans", "DejaVu Sans", sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace; --r: 4px; color-scheme: light; } :root[data-theme="dark"] { --bg: #262624; --panel: #30302E; --soft: #3A3A37; --tint: #2C2C2A; --ink: #DDD9CE; --ink-2: #C9C6BB; --muted: #AAA89F; --rule: #55544F; --hair: #3D3D3A; --clay: #E08A6D; --clay-ink: #EB9B80; --ours: #4C3128; --l1: #6599CF; --l2: #BC7496; --quant: #3C865E; --fi: #AD9247; --focus: #EB9B80; --hl-k: #EB9B80; --hl-t: #8DB3F2; --hl-s: #8FCB9B; --hl-n: #E0B66A; --hl-p: #C9A2F0; --hl-c: #AAA89F; color-scheme: dark; } * { box-sizing: border-box; } [hidden] { display: none !important; } html { -webkit-text-size-adjust: 100%; } body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); font-feature-settings: "tnum" 1; } h1, h2, h3, .serif { font-family: var(--serif); } a { color: var(--clay-ink); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; } a:hover { text-decoration-color: currentColor; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; } .wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; } code { font-family: var(--mono); font-size: .92em; } /* top bar: thin rule, like the report's running header */ header.top { border-bottom: 1px solid var(--rule); } header.top .wrap { display: flex; align-items: center; gap: 26px; height: 58px; } .brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; } .brand svg { flex: none; } nav.main { display: flex; gap: 18px; flex: 1; min-width: 0; font-size: 14.5px; overflow-x: auto; } nav.main a { text-decoration: none; color: var(--muted); padding: 4px 0; white-space: nowrap; } nav.main a:hover { color: var(--ink); } nav.main a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--clay); } .theme-btn { flex: none; border: 1px solid var(--rule); background: transparent; color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; } .theme-btn svg { width: 17px; height: 17px; } /* hero: report title block */ .hero { padding: 52px 0 6px; } .hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; font-weight: 600; max-width: 28ch; } .hero p.lede { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 0 0 22px; } .notice { display: flex; gap: 12px; align-items: baseline; padding: 12px 18px; background: var(--ours); border-left: 3px solid var(--clay); max-width: 62ch; } .notice b { font-weight: 700; } .made { margin: 14px 0 0; max-width: 62ch; font-size: 15px; color: var(--ink-2); } /* the demo film, right under the title so a visitor sees it first: the full width of the page column, in a 16:9 box (no jump while it loads) */ .film { margin: 22px 0 26px; } .film-box { border: 1px solid var(--rule); background: var(--tint); } .film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; } .film figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; max-width: none; } .film-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--sans); font-size: 14px; } .film-q { display: flex; gap: 6px; } .film-dl { white-space: nowrap; } /* board filter: a table-like strip with hairline rules */ .boards { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); margin: 38px 0 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); } .boards button { all: unset; cursor: pointer; padding: 14px 16px 12px; border-right: 1px solid var(--hair); position: relative; } .boards button:last-child { border-right: 0; } .boards button .n { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; } .boards button:first-child .n { color: var(--clay-ink); } .boards button .t { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; } .boards button .sw { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c); } .boards button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c, var(--clay)); transform: scaleX(0); transform-origin: left; transition: transform .2s; } .boards button[aria-pressed="true"] { background: var(--tint); } .boards button[aria-pressed="true"]::after { transform: scaleX(1); } .boards button:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; } /* floorplan as a report figure */ figure.plan-fig { margin: 0; } .plan-card { background: var(--tint); border: 1px solid var(--hair); padding: 14px; } .plan-head { display: flex; justify-content: flex-end; margin: 0 2px 10px; } .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; } .legend i.hollow { border: 1.5px solid var(--muted); } .legend i.solid { background: var(--muted); } figcaption { font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); margin: 10px 2px 0; max-width: 80ch; } figcaption b { color: var(--ink); } #plan { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .bbox { min-width: 0; border: 1px solid var(--rule); border-top: 3px solid var(--c); background: var(--panel); padding: 10px 10px 12px; } .bbox h3 { margin: 0 4px 6px; font-size: 16px; font-weight: 700; } .bbox h3 span { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; } .groups { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: flex-start; } .grp { font: inherit; color: var(--ink); background: transparent; border: 1.5px solid transparent; border-radius: var(--r); padding: 5px 6px 7px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 5px; max-width: 100%; } .grp:hover { border-color: var(--rule); } .grp[aria-pressed="true"] { border-color: var(--ink); } .grp .gl { font-size: 12.5px; line-height: 1.2; white-space: nowrap; color: var(--ink-2); } .grp .gl b { font-weight: 400; color: var(--muted); margin-left: 4px; } .cells { display: grid; grid-template-columns: repeat(var(--cols), 14px); gap: 4px; } .cell { width: 14px; height: 14px; border-radius: 2.5px; border: 1.5px solid var(--c); background: var(--panel); transition: opacity .15s; } .cell.has { background: var(--c); } .cell.dim { opacity: .25; } .tip { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 10; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.4; padding: 7px 10px; border-radius: var(--r); max-width: min(320px, 80vw); visibility: hidden; } .tip b { display: block; font-weight: 700; } /* toolbar */ .toolbar { display: flex; gap: 10px; margin: 36px 0 12px; flex-wrap: wrap; align-items: center; } .search { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 0 12px; height: 42px; color: var(--muted); } .search:focus-within { border-color: var(--focus); } .search input { all: unset; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); } .search input::placeholder { color: var(--muted); } .btn { border: 1px solid var(--rule); background: var(--panel); color: var(--ink); height: 42px; padding: 0 16px; border-radius: var(--r); font: inherit; font-size: 14.5px; cursor: pointer; } .btn:hover { background: var(--soft); } .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; } .chip { border: 1px solid var(--rule); background: transparent; color: var(--ink-2); padding: 3px 11px; border-radius: 999px; font: inherit; font-size: 13.5px; cursor: pointer; } .chip:hover { background: var(--soft); } .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .count { font-size: 14px; color: var(--muted); margin: 0 0 12px; } /* problem list: a card with a kernel is one big link (the title link covers the card) */ .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-bottom: 48px; } .prob { position: relative; min-width: 0; background: var(--panel); border: 1px solid var(--hair); border-top: 3px solid var(--c); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; } .prob.flash { animation: flash 1.4s ease-out; } @keyframes flash { from { box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 45%, transparent); } to { box-shadow: 0 0 0 4px transparent; } } .prob h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; } .prob h3 a { color: inherit; text-decoration: none; } .prob h3 a::after { content: ""; position: absolute; inset: -1px; } .prob h3 a:focus-visible { outline: none; } .prob h3 a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; } .prob.has-k:hover { border-color: var(--rule); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 35%, transparent); } .prob.has-k:hover h3 a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; } .prob .op { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; } .prob .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; margin-top: auto; } .prob .meta span { padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-2); } .prob .meta span.b { color: var(--ink); background: color-mix(in srgb, var(--c) 18%, var(--panel)); font-weight: 700; } .prob .foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 8px; margin-top: 2px; } .prob .wait { flex: none; display: inline-flex; gap: 6px; align-items: center; color: var(--clay-ink); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 14px; } .prob .wait::before { content: ""; width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid var(--clay); } .prob .go { flex: none; color: var(--clay-ink); white-space: nowrap; font-weight: 700; font-size: 13.5px; } .prob .model { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); grid-column: 1 / -1; } /* kernel page and method page */ .back { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-size: 14.5px; color: var(--muted); text-decoration: none; } .back:hover { color: var(--ink); } .k-head { padding: 16px 0 4px; } .m-head { padding: 44px 0 22px; } .eyebrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 13px; } .eyebrow span { padding: 1px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); } .eyebrow span.b { color: var(--ink); background: color-mix(in srgb, var(--c) 18%, var(--panel)); font-weight: 700; } .k-head h1, .m-head h1 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 10px; font-weight: 600; max-width: 30ch; overflow-wrap: anywhere; } .k-head h1:focus, .m-head h1:focus { outline: none; } .k-head .lede, .m-head .lede { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 8px; max-width: 64ch; } .srcm { margin: 0; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; } .srcm b { font-weight: 400; color: var(--ink); } .k-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; margin: 24px 0 34px; } .card { min-width: 0; background: var(--panel); border: 1px solid var(--hair); border-top: 3px solid var(--c); padding: 16px 18px 16px; } .card h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; } .big { margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .big .num { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; } .big .unit { font-size: 15px; color: var(--ink-2); } .big.sp { margin-top: 14px; } .solbar { margin: 8px 0 4px; } .solbar .track { position: relative; display: block; height: 12px; border-radius: 6px; background: var(--soft); border: 1px solid var(--rule); overflow: hidden; } .solbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); } .solbar .tick { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--ink); opacity: .6; } .scale { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 12.5px; color: var(--muted); } .scale span:nth-child(2) { text-align: center; } .scale span:nth-child(3) { text-align: right; } .fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; max-width: 72ch; } .fine.made { color: var(--ink-2); margin: 0 0 12px; } .notes { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); } .notes li { margin: 0 0 6px; } .private { margin: 0; padding: 12px 14px; background: var(--tint); border-left: 3px solid var(--rule); color: var(--ink-2); } .about dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; } .about dt { font-weight: 700; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; } .about dd { margin: 0; overflow-wrap: anywhere; } .gh { margin: 14px 0 0; font-size: 14.5px; } .none { padding: 18px; margin: 24px 0 48px; color: var(--ink-2); } .code-sec { margin: 0 0 48px; } .code-sec h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; } /* method page: Figures 2 and 3 of the paper, redrawn so that they play step by step, and the key points. Each copy keeps the figure's own white ground in both themes: a light paper card, never inverted. */ .plate { background: #FFFFFF; border: 1px solid var(--hair); } :root[data-theme="dark"] .plate { filter: brightness(.94); } .vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; } .mt-part { margin: 0 0 58px; } .mt-part > h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.25; max-width: 40ch; } .mt-part > .mt-sub { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 64ch; } .mt-part > .fine { margin: 0 0 16px; } /* each copy is a little wider than the text on wide screens (up to 1160 px), and never wider than the screen */ .mt-fig { --fw: min(1160px, calc(100vw - 64px)); width: var(--fw); margin: 0 0 0 calc((100% - var(--fw)) / 2); } .mt-fig figcaption { margin-top: 12px; max-width: 76ch; } .mt-credit { display: block; margin: 0 0 4px; font-family: var(--sans); font-size: 14px; color: var(--muted); } .mt-credit cite { font-style: normal; } .lp { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: .35em; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .66em/1 var(--sans); vertical-align: .14em; } .mt-sec h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; } .rd { border: 1px solid var(--rule); background: var(--panel); } .rd > .plate { border: 0; padding: 12px; } .stage { margin: 0 auto; } .fx { display: block; width: 100%; height: auto; } .fx.tall { display: none; } /* zoomed in, the words cut by the frame's edge fade out instead */ .rd[data-view="zoom"] .fx { -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent), linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 20px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent), linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 20px), transparent); mask-composite: intersect; } /* the copy and its bar fit the screen under the site header; the graph's height is set to fit (the page never scrolls by itself) */ .rd-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 10px 16px 12px; background: var(--panel); border-top: 1px solid var(--hair); } .rd-top { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .rd-whole { height: 32px; padding: 0 11px 0 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; } .rd-whole svg { width: 14px; height: 14px; flex: none; } .rd-whole[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .rd-cap { flex: 1 1 380px; max-width: 70ch; margin: 0; min-height: 3.1em; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); } .rd-cap b, .rd-cap code { color: var(--ink); } .rd-cap code { font-size: .86em; } .rd-ghost { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; } .rd-ctl { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; } .rd-ctl .btn { height: 38px; padding: 0 14px 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; } .rd-ctl .btn svg { width: 15px; height: 15px; flex: none; } /* Play keeps the width of its longest label (Pause, Replay), so the buttons beside it never shift */ .rd-ctl .lb { display: inline-grid; } .rd-ctl .lb > span, .rd-ctl .lb::before, .rd-ctl .lb::after { grid-area: 1 / 1; justify-self: center; } .rd-ctl [data-act="play"] .lb::before { content: "Pause"; visibility: hidden; } .rd-ctl [data-act="play"] .lb::after { content: "Replay"; visibility: hidden; } .rd-ctl .btn[aria-disabled="true"] { opacity: .45; cursor: default; } .rd-ctl .btn[aria-disabled="true"]:hover { background: var(--panel); } .rd-where { display: flex; align-items: center; gap: 10px; } .rd-pos { display: flex; align-items: center; gap: 6px; margin: 0; } .rd-count { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .rd-pos .pip { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); } .rd-pos .pip.done { background: var(--muted); } .rd-pos .pip.now { background: var(--clay); border-color: var(--clay); } @media (pointer: coarse) { .rd-ctl .btn, .rd-whole { height: 44px; } } .mt-pts h3 { margin: 20px 0 4px; font-size: 18px; } .mt-pts ul { margin: 8px 0 0; padding-left: 1.15em; max-width: 68ch; font-family: var(--serif); font-size: 17.5px; line-height: 1.55; color: var(--ink-2); } .mt-pts ul.loops { list-style: none; padding-left: 0; } .mt-pts li { margin: 0 0 9px; padding-left: 4px; } .mt-pts ul.loops li { padding-left: 0; } .mt-pts li::marker { color: var(--clay); } .mt-pts li b { color: var(--ink); } /* the redrawn figures: the paper's type and marks, set in the page's own fonts (no font files) */ .fx text { font-family: var(--sans); } .fx .ft { font-weight: 600; fill: #1f1d1c; } .fx .ftd { font-weight: 600; fill: #3c3c3a; } .fx .fm { font-weight: 500; fill: #6a6a64; } .fx .fs, .fx .fa, .fx .fj { fill: #6a6a64; } .fx .fd { fill: #3c3c3a; } .fx .fl, .fx .fab, .fx .fsf { font-family: var(--serif); font-style: italic; fill: #3c3c3a; } .fx .fsr { font-family: var(--serif); fill: #3c3c3a; } .fx .fn { font-style: italic; fill: #6a6a64; } .fx .fb { font-weight: 700; fill: #FFFFFF; } .fx .fmono { font-family: var(--mono); fill: #6a6a64; } .fx .fmonob { font-family: var(--mono); font-weight: 700; fill: #1f1d1c; } .fx .facc { fill: #a84f2e; } .fx .facci { font-style: italic; fill: #974729; } /* on the pink band of the candidates table: a little darker (4.7:1 or more) */ .fx .lg.lit text { fill: #1f1d1c; font-weight: 600; } /* each step brings its part into focus. The rest stays readable: its marks at 65% (3:1 or more on the paper; thin dotted and orange lines are drawn darker first), its words dark grey (5:1 or more). In focus, the small words get darker too. */ .fx .g { transition: opacity .35s ease; } .fx .g text { transition: fill .35s ease; } .fx.focus .g:not(.on):not(.keep) { opacity: .65; } .fx.focus .g:not(.on):not(.keep) [stroke="#6b6a64"] { stroke: #3d3d3a; } .fx.focus .g:not(.on):not(.keep) [stroke="#c96442"] { stroke: #85422c; } .fx.focus .g:not(.on):not(.keep) [fill="#c96442"] { fill: #85422c; } .fx.focus .g:not(.on):not(.keep) text:not(.fb) { fill: #000000; } .fx.focus .g.on :is(.fs, .fa, .fj, .fm, .fn, .fmono) { fill: #3c3c3a; } .fx.f2.focus.restart .g:is([data-grp="ctrl"], [data-grp="a1"], [data-grp="a2"], [data-grp="a3"], [data-grp="child"], [data-grp="checks"], [data-grp="query"]), .fx.f3.focus.restart .g[data-grp="ctrl"] { opacity: .06; } /* the warm restart: the agents blink out (stronger than the dimming) */ .fx .halo, .fx .fresh, .fx .oldbest, .fx .xmark { opacity: 0; transition: opacity .3s ease; } .fx .halo.show, .fx .fresh.show, .fx .oldbest.show, .fx .xmark.show { opacity: 1; } .fx .tk { display: none; } .fx .tk.show { display: inline; } /* code viewer: a file list and one file at a time, with line numbers */ .codebox { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); max-height: min(78vh, 920px); border: 1px solid var(--rule); background: var(--panel); } .files { min-height: 0; overflow: auto; border-right: 1px solid var(--hair); padding: 6px 0; background: var(--tint); scrollbar-color: var(--rule) var(--tint); } .file { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; padding: 7px 14px 7px 11px; cursor: pointer; border-left: 3px solid transparent; } .file:hover { background: var(--soft); } .file[aria-pressed="true"] { background: var(--panel); border-left-color: var(--c); } .file:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; } .file .fn { font: 13.5px/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; } .file[aria-pressed="true"] .fn { font-weight: 700; } .file .dir { color: var(--muted); font-weight: 400; } .file .fl { font-size: 12.5px; color: var(--muted); } .pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; } .vhead { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid var(--hair); font-size: 14px; } .vname { font: 700 14px/1.4 var(--mono); overflow-wrap: anywhere; } .vmeta { color: var(--muted); } .vdl { margin-left: auto; } .vstatus { margin: 0; padding: 10px 14px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--hair); } .vstatus.bad { color: var(--clay-ink); } .viewer { flex: 1 1 auto; overflow: auto; min-height: 160px; background: var(--panel); scrollbar-color: var(--rule) var(--panel); } .vgrid { display: grid; grid-template-columns: auto minmax(max-content, 1fr); width: max-content; min-width: 100%; } .vgrid pre { margin: 0; font: 13.5px/1.6 var(--mono); tab-size: 4; -moz-tab-size: 4; white-space: pre; } .vgrid .gutter { position: sticky; left: 0; z-index: 1; padding: 10px 10px 10px 14px; text-align: right; color: var(--muted); background: var(--tint); border-right: 1px solid var(--hair); user-select: none; -webkit-user-select: none; } .vgrid .src { padding: 10px 20px 10px 14px; color: var(--ink); } .src .k { color: var(--hl-k); } .src .t { color: var(--hl-t); } .src .s { color: var(--hl-s); } .src .n { color: var(--hl-n); } .src .p { color: var(--hl-p); } .src .c { color: var(--hl-c); } .src .h, .src .b { color: var(--ink); font-weight: 700; } footer { border-top: 1px solid var(--rule); padding: 22px 0 40px; font-size: 14px; color: var(--muted); } footer p { margin: 0 0 6px; max-width: 80ch; } details.cite { margin-top: 10px; } details.cite summary { cursor: pointer; color: var(--ink-2); } details.cite pre { margin: 8px 0 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--hair); font: 12.5px/1.5 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; } @media (max-width: 980px) { #plan { grid-template-columns: 1fr; } .k-grid { grid-template-columns: 1fr; } } @media (max-width: 760px) { .wrap { padding: 0 16px; } header.top .wrap { gap: 12px; } .boards { grid-template-columns: 1fr 1fr; } .boards button { border-bottom: 1px solid var(--hair); } .boards button:first-child { grid-column: 1 / -1; } .boards button:nth-child(odd) { border-right: 0; } .plan-card { padding: 10px; } .codebox { grid-template-columns: 1fr; grid-template-rows: auto; max-height: none; } .files { border-right: 0; border-bottom: 1px solid var(--hair); max-height: 200px; } .viewer { max-height: 70vh; } } @media (max-width: 900px) and (orientation: portrait) { /* narrow, upright screens: the redrawn figures switch to their tall layouts, so their labels stay readable */ .fx.wide { display: none; } .fx.tall { display: block; } } @media (max-width: 760px) { /* phones: each copy takes the width of the text; its caption and controls stay at the bottom of the screen */ .mt-fig { width: auto; margin-left: 0; } .rd > .plate { padding: 6px 4px 4px; } .rd-bar { gap: 6px 14px; padding: 8px 12px 10px; } .rd-cap { flex-basis: 100%; max-width: none; min-height: 4.6em; font-size: 16px; line-height: 1.5; } .rd-ctl { flex: 1 1 100%; margin-left: 0; gap: 5px; } .rd-ctl .btn { flex: 1 1 0; padding: 0 7px 0 6px; gap: 5px; font-size: 14px; } .mt-part > h2 { font-size: 22px; } .mt-pts ul { font-size: 17px; } } @media (max-width: 360px) { header.top .wrap { gap: 8px; } nav.main { gap: 10px; font-size: 13.5px; } } @media (max-width: 380px) { /* the smallest phones: the four buttons keep their words and drop their icons, so they fit on one row */ .rd-ctl .btn svg { display: none; } .rd-ctl .btn { padding: 0 6px; } } @media (max-width: 560px) { .brand .bt { display: none; } } @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } /* the redrawn figures keep short fades, with no movement */ .fx .g, .fx .halo, .fx .fresh, .fx .oldbest, .fx .xmark { transition: opacity .2s linear !important; } .fx .g text { transition: fill .2s linear !important; } } @media (forced-colors: active) { .cell.has, .solbar .fill { background: CanvasText; } } </style> </head> <body> <header class="top"> <div class="wrap"> <a class="brand" href="#/"> <svg width="26" height="26" viewBox="0 0 26 26" aria-hidden="true"> <rect x="1" y="1" width="24" height="24" rx="6" fill="none" stroke="currentColor" stroke-width="1.6"/> <rect x="6" y="6" width="6" height="6" rx="1.5" fill="var(--l1)"/> <rect x="14" y="6" width="6" height="6" rx="1.5" fill="none" stroke="var(--l2)" stroke-width="1.6"/> <rect x="6" y="14" width="6" height="6" rx="1.5" fill="none" stroke="var(--quant)" stroke-width="1.6"/> <rect x="14" y="14" width="6" height="6" rx="1.5" fill="none" stroke="var(--fi)" stroke-width="1.6"/> </svg> <span class="bt">CompoundingKernel</span> </a> <nav class="main" aria-label="Main"> <a href="#/" data-view="problems" aria-current="page">Problems</a> <a href="#/method" data-view="method">Method</a> <a href="#/code" data-view="code">Code</a> <a href="https://huggingface.co/papers/2611.19230" target="_blank" rel="noopener noreferrer">Paper</a> <a href="#" id="nav-gh" target="_blank" rel="noopener noreferrer">GitHub</a> </nav> <button class="theme-btn" id="theme" type="button" aria-label="Switch to dark mode"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z"/></svg> </button> </div> </header> <main class="wrap"> <div id="view-problems"> <section class="hero"> <h1>GPU kernels for every <span style="white-space: nowrap">SOL-ExecBench</span> problem</h1> <figure class="film" aria-labelledby="film-t"> <div class="film-box"> <video id="film" controls playsinline preload="metadata" poster="media/CompoundingKernel-poster.jpg" aria-labelledby="film-t"> <source src="media/CompoundingKernel-demo.mp4" type="video/mp4"> </video> </div> <figcaption> <span id="film-t">CompoundingKernel in 80 seconds.</span> <span class="film-tools"> <span class="film-q" id="film-q" role="group" aria-label="Film quality"> <button class="chip" type="button" aria-pressed="true" data-src="media/CompoundingKernel-demo.mp4">1080p</button> <button class="chip" type="button" aria-pressed="false" data-src="media/CompoundingKernel-demo-4k.mp4">4K</button> </span> <a class="film-dl" href="media/CompoundingKernel-demo-4k.mp4" download>Download 4K</a> </span> </figcaption> </figure> <p class="lede">CompoundingKernel is a self-improving system that writes and tunes GPU kernels for NVIDIA B200. Here you can read the paper, look at the method code, and open the kernel it found for each of the 235 benchmark problems.</p> <div class="notice" role="status"><span><b>Paper:</b> <a href="https://huggingface.co/papers/2611.19230" target="_blank" rel="noopener noreferrer">CompoundingKernel: Self-Improving from Zero to First</a> (<a href="https://arxiv.org/pdf/2611.19230" target="_blank" rel="noopener noreferrer">PDF on arXiv</a>).</span></div> <p class="made">The kernels were generated by Claude via Amazon Bedrock. They are verified on the SOL-ExecBench site and are not production-ready.</p> </section> <div class="boards" role="group" aria-label="Filter by leaderboard" id="boards"></div> <figure class="plan-fig" aria-labelledby="plan-cap"> <div class="plan-card"> <div class="plan-head"><div class="legend" id="legend"></div></div> <div id="plan"></div> </div> <figcaption id="plan-cap"><b>Figure 1.</b> All 235 problems by leaderboard and kind of operation, one square per problem. <span id="plan-hint"></span> Click a group to filter the list below.</figcaption> </figure> <div class="toolbar"> <label class="search"> <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg> <input id="q" type="search" placeholder="Search problems, operations, models or kernel ideas" aria-label="Search problems"> </label> <button class="btn" id="random" type="button">Show a random problem</button> <button class="btn" id="reset" type="button">Clear filters</button> </div> <div class="chips" role="group" aria-label="Filter by operation" id="chips"></div> <p class="count" id="count" aria-live="polite"></p> <div class="list" id="list"></div> </div> <div id="view-kernel" hidden></div> <div id="view-method" hidden></div> <div id="view-code" hidden></div> </main> <footer> <div class="wrap"> <p>SOL-ExecBench and its leaderboards are by NVIDIA: <a href="https://research.nvidia.com/benchmarks/sol-execbench/leaderboard/collection/1/B200" target="_blank" rel="noopener noreferrer">L1</a>, <a href="https://research.nvidia.com/benchmarks/sol-execbench/leaderboard/collection/2/B200" target="_blank" rel="noopener noreferrer">L2</a>, <a href="https://research.nvidia.com/benchmarks/sol-execbench/leaderboard/collection/3/B200" target="_blank" rel="noopener noreferrer">Quant</a>. Problem names come from the public benchmark. The operation groups are our own labels.</p> <p>License: <a href="LICENSE">CC BY-NC 4.0</a>.</p> <details class="cite"><summary>Cite the paper</summary><pre>@misc{qu2026compoundingkernel, title = {CompoundingKernel: Self-Improving from Zero to First}, author = {Qian Qu and Hongyang Wang and Wenbo Chen and Yichuan Li and Jingguo Liu and Xian Li and Xuan Wang and Ruochen Wen and Leo Fan and Yiming Yan and Yutong Chen and Zheshen Wang and Benoit Dumoulin}, year = {2026}, eprint = {2611.19230}, archivePrefix = {arXiv}, primaryClass = {cs.AI}, url = {https://arxiv.org/abs/2611.19230} }</pre></details> </div> </footer> <div class="tip" id="tip" role="tooltip"></div> <script type="application/json" id="data"> {"problems":[{"board":"L1","id":"001_attention_softmax_dropout_value_matmul_backward","name":"Attention softmax dropout value matmul backward","group":"Backward pass","op":"attention softmax + dropout + PV backward (GQA 80/8/128)","direction":"backward","model":"ByteDance/Seed-Seed-OSS-36B-Instruct","workloads":16,"kernel":{"dir":"kernels/L1/001_attention_softmax_dropout_value_matmul_backward","language":"CuTe DSL","files":[{"path":"kernel.py","lines":19098,"bytes":1042720}],"idea":"Per-shape CuTe DSL tcgen05 plans (TMA, TMEM): one fused kernel for dS and GQA-summed dV, or a dV + row-sum kernel then a dS kernel (PDL).","origin":"search agent (Claude)","result":{"public":true,"sol":0.91296,"speedup":5.6271}}},{"board":"L1","id":"002_vae_conv3x3_groupnorm_silu_residual_fused","name":"VAE conv3x3 GroupNorm SiLU residual fused","group":"Image and video","op":"VAE conv3x3 + GroupNorm + SiLU residual block","direction":"forward","model":"Efficient-Large-Model/Sana-Sprint-1.6B-1024px","workloads":20,"kernel":{"dir":"kernels/L1/002_vae_conv3x3_groupnorm_silu_residual_fused","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2,"bytes":128},{"path":"kernel.h","lines":35,"bytes":1753},{"path":"kernel_body.cuh","lines":5505,"bytes":334778},{"path":"kernel_pw.cu","lines":21,"bytes":931},{"path":"kernel_rot.cu","lines":21,"bytes":876},{"path":"kernel_rot293.cu","lines":21,"bytes":959},{"path":"kernel_sub.cu","lines":23,"bytes":1143},{"path":"kernel_xp.cu","lines":24,"bytes":1165},{"path":"kernel_xp1024.cu","lines":25,"bytes":1376},{"path":"kernel_xp768.cu","lines":25,"bytes":1371},{"path":"kernel_xpr.cu","lines":21,"bytes":917},{"path":"kernel_xpr9.cu","lines":21,"bytes":930},{"path":"kernel_xpr9_16064064.cu","lines":21,"bytes":973},{"path":"kernel_xpr9_2256192.cu","lines":21,"bytes":970},{"path":"kernel_xpr9_2256256.cu","lines":21,"bytes":970},{"path":"kernel_xpr9_4256256.cu","lines":21,"bytes":970},{"path":"kernel_xpr9_8064128.cu","lines":21,"bytes":970},{"path":"kernel_xpsub.cu","lines":25,"bytes":1144},{"path":"main.cpp","lines":201,"bytes":10167}],"idea":"fp16 implicit-GEMM conv3x3 on tcgen05 (2-SM pairs, TMA boxes give the zero padding); GroupNorm sums gathered in conv epilogues and applied in the next pass; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.865153,"speedup":3.2029}}},{"board":"L1","id":"003_lm_head_projection_with_logit_slicing","name":"LM head projection with logit slicing","group":"Projections and GEMM","op":"LM head GEMM on the last N positions (logit slicing)","direction":"forward","model":"LGAI-EXAONE/EXAONE-4.0-1.2B","workloads":16,"kernel":{"dir":"kernels/L1/003_lm_head_projection_with_logit_slicing","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1876,"bytes":127124},{"path":"kernel.h","lines":11,"bytes":719},{"path":"main.cpp","lines":41,"bytes":2520}],"idea":"CUTLASS SM100 persistent warp-specialized GEMM: TMA loads, 2-SM tcgen05 MMA into TMEM, TMA-store epilogue; tile shape and swap-AB picked by token count; CUDA graph replay.","origin":"search agent (Claude)","result":{"public":true,"sol":0.57482,"speedup":1.0576}}},{"board":"L1","id":"004_attention_output_projection_with_reshape_backward","name":"Attention output projection with reshape backward","group":"Backward pass","op":"attention o_proj + reshape backward","direction":"backward","model":"LiquidAI/LFM2-1.2B","workloads":16,"kernel":{"dir":"kernels/L1/004_attention_output_projection_with_reshape_backward","language":"CuTe DSL","files":[{"path":"main.py","lines":5280,"bytes":313210}],"idea":"One CuTe DSL warp-specialized tcgen05 kernel runs dW and dX tiles as one work list, using Cluster Launch Control work stealing; TMA stores dX per head.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.759676,"speedup":1.8489}}},{"board":"L1","id":"005_conv_gated_projection_with_causal_conv","name":"Conv gated projection with causal conv","group":"State space and conv","op":"LFM2 short-conv block: in-proj, gate, causal depthwise conv1d, out-proj","direction":"forward","model":"LiquidAI/LFM2-1.2B","workloads":16,"kernel":{"dir":"kernels/L1/005_conv_gated_projection_with_causal_conv","language":"CUDA C++","files":[{"path":"k1.cu","lines":1028,"bytes":58532},{"path":"kernel.cu","lines":3706,"bytes":234860},{"path":"kernel.h","lines":14,"bytes":1275},{"path":"main.cpp","lines":214,"bytes":9743},{"path":"outproj.cu","lines":709,"bytes":39987},{"path":"small.cu","lines":1155,"bytes":72385},{"path":"twok.h","lines":18,"bytes":1347}],"idea":"One persistent 2-SM tcgen05 kernel with TMA: in-proj GEMM with the gating and causal conv fused in, then the out-proj GEMM, synced by per-tile ready flags","origin":"search agent (Claude)","result":{"public":true,"sol":0.852297,"speedup":2.7254}}},{"board":"L1","id":"006_hyena_depthwise_conv1d_split_gate","name":"Hyena depthwise Conv1D split gate","group":"State space and conv","op":"Hyena depthwise conv1d + split + gate","direction":"forward","model":"LongSafari/hyenadna-small-32k-seqlen-hf","workloads":16,"kernel":{"dir":"kernels/L1/006_hyena_depthwise_conv1d_split_gate","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1849,"bytes":105505},{"path":"main.cpp","lines":262,"bytes":15307}],"idea":"Memory-bound kernel picked by shape: small inputs use simple register code; larger ones bulk-copy the three channel rows into smem (cp.async.bulk + mbarrier), store with L2 hints.","origin":"search agent (Claude)","result":{"public":true,"sol":0.77704,"speedup":3.3738}}},{"board":"L1","id":"007_hyena_fft_size_padding_rfft","name":"Hyena FFT size padding RFFT","group":"State space and conv","op":"Hyena FFT padding + rfft","direction":"forward","model":"LongSafari/hyenadna-small-32k-seqlen-hf","workloads":16,"kernel":{"dir":"kernels/L1/007_hyena_fft_size_padding_rfft","language":"CUDA C++","files":[{"path":"common.cuh","lines":917,"bytes":44570},{"path":"kernel.cu","lines":2312,"bytes":115933},{"path":"kernel.h","lines":7,"bytes":503},{"path":"kernel_b1600.cu","lines":226,"bytes":9733},{"path":"kernel_b4.cu","lines":325,"bytes":12680},{"path":"kernel_b4k.cu","lines":209,"bytes":9147},{"path":"kernel_bc2.cu","lines":390,"bytes":16572},{"path":"kernel_bc4.cu","lines":175,"bytes":7370},{"path":"kernel_blue2.cu","lines":188,"bytes":8381},{"path":"kernel_blue8.cu","lines":121,"bytes":5075},{"path":"kernel_c2r32.cu","lines":851,"bytes":40634},{"path":"kernel_c2v4.cu","lines":210,"bytes":9359},{"path":"kernel_c4d.cu","lines":98,"bytes":4968},{"path":"kernel_c4r32.cu","lines":155,"bytes":6966},{"path":"kernel_c8s.cu","lines":132,"bytes":6523},{"path":"kernel_chunk.cu","lines":291,"bytes":13419},{"path":"kernel_chunk2.cu","lines":317,"bytes":12601},{"path":"kernel_chunk3.cu","lines":224,"bytes":9400},{"path":"kernel_direct.cu","lines":121,"bytes":4529},{"path":"kernel_mr.cu","lines":419,"bytes":16646},{"path":"kernel_mrc.cu","lines":405,"bytes":16942},{"path":"kernel_multi.cu","lines":250,"bytes":11699},{"path":"kernel_new.cu","lines":1260,"bytes":57641},{"path":"kernel_pipe.cu","lines":190,"bytes":7262},{"path":"kernel_ported.cu","lines":872,"bytes":39020},{"path":"kernel_pre.cu","lines":690,"bytes":29691},{"path":"kernel_pre14.cu","lines":512,"bytes":21276},{"path":"kernel_pre2.cu","lines":1,"bytes":25},{"path":"kernel_pre2_r168.cu","lines":5,"bytes":219},{"path":"kernel_pre2_r200.cu","lines":5,"bytes":219},{"path":"kernel_pre2_r232.cu","lines":5,"bytes":219},{"path":"kernel_pre3.cu","lines":639,"bytes":31868},{"path":"kernel_pre4.cu","lines":2,"bytes":48},{"path":"kernel_pre4_r168.cu","lines":5,"bytes":219},{"path":"kernel_pre4_r200.cu","lines":5,"bytes":219},{"path":"kernel_pre4r.cu","lines":5,"bytes":282},{"path":"kernel_r1024.cu","lines":568,"bytes":25348},{"path":"kernel_r32k.cu","lines":148,"bytes":6725},{"path":"kernel_rad1321.cu","lines":535,"bytes":25400},{"path":"kernel_rad1489f.cu","lines":584,"bytes":31065},{"path":"kernel_rad8.cu","lines":516,"bytes":25583},{"path":"kernel_rader.cu","lines":253,"bytes":12231},{"path":"kernel_rader1489.cu","lines":200,"bytes":9474},{"path":"kernel_s8r32.cu","lines":902,"bytes":45379},{"path":"kernel_sweep.cu","lines":1633,"bytes":77105},{"path":"kernel_v4.cu","lines":212,"bytes":9610},{"path":"kernel_warp.cu","lines":501,"bytes":19440},{"path":"kernel_wd2.cu","lines":180,"bytes":7646},{"path":"kernel_wreg.cu","lines":226,"bytes":9551},{"path":"kernel_wrow.cu","lines":196,"bytes":8406},{"path":"main.cpp","lines":54,"bytes":2854},{"path":"pre2_body.cuh","lines":1100,"bytes":52093},{"path":"pre4_body.cuh","lines":1202,"bytes":60369}],"idea":"Custom shared-memory Stockham FFT kernels chosen per shape: power-of-two N packs pairs of reals into a half-size complex FFT; other N use Bluestein or Rader FFTs.","origin":"search agent (Claude)","result":{"public":true,"sol":0.859569,"speedup":5.5577}}},{"board":"L1","id":"008_expert_output_weighted_index_add_accumulation","name":"Expert output weighted index add accumulation","group":"MLP and MoE","op":"MoE combine: weighted index_add of expert outputs","direction":"forward","model":"MiniMaxAI/MiniMax-M2","workloads":16,"kernel":{"dir":"kernels/L1/008_expert_output_weighted_index_add_accumulation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2568,"bytes":174627},{"path":"main.cpp","lines":440,"bytes":29517}],"idea":"By token count: small batches do bf16x2 vector atomic adds into a pre-zeroed output; large ones bucket rows by token, then gather-sum each row.","origin":"search agent (Claude)","result":{"public":true,"sol":0.901851,"speedup":8.251}}},{"board":"L1","id":"009_expert_token_scatter_with_weighted_forward_backward","name":"Expert token scatter with weighted forward backward","group":"Backward pass","op":"MoE token scatter, weighted, forward + backward","direction":"backward","model":"MiniMaxAI/MiniMax-M2","workloads":16,"kernel":{"dir":"kernels/L1/009_expert_token_scatter_with_weighted_forward_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6744,"bytes":398832},{"path":"kernel.h","lines":38,"bytes":1484},{"path":"main.cpp","lines":65,"bytes":3665},{"path":"static_table.h","lines":31,"bytes":2848}],"idea":"Cached CUDA graph of CUTLASS and custom tcgen05 GEMMs plus a SwiGLU-backward kernel; the skinny dx chain runs on a high-priority stream, weight grads on a low one.","origin":"search agent (Claude)","result":{"public":true,"sol":0.958998,"speedup":10.8051}}},{"board":"L1","id":"010_attention_value_projection_with_transpose","name":"Attention value projection with transpose","group":"Projections and GEMM","op":"V projection (5120 -> 1024) + reshape / transpose","direction":"forward","model":"NousResearch/DeepHermes-3-Mistral-24B-Preview","workloads":16,"kernel":{"dir":"kernels/L1/010_attention_value_projection_with_transpose","language":"CuTe DSL","files":[{"path":"main.py","lines":5275,"bytes":345542}],"idea":"CuTe DSL tcgen05 GEMM whose epilogue stores straight into the transposed head layout; picks by shape between swap-AB split-K (DSMEM cluster reduce) and 2-CTA tiles.","origin":"search agent (Claude)","result":{"public":true,"sol":0.551881,"speedup":1.1411}}},{"board":"L1","id":"011_rotary_position_embedding","name":"Rotary position embedding","group":"Attention","op":"RoPE cos/sin from positions with llama3 scaling","direction":"forward","model":"NousResearch/Hermes-4-70B","workloads":16,"kernel":{"dir":"kernels/L1/011_rotary_position_embedding","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1178,"bytes":66448},{"path":"main.cpp","lines":108,"bytes":6406}],"idea":"Hand-written PTX: angle = position x frequency, fast sin.approx/cos.approx with a rare exact fallback, packed bf16 stores; work per thread by token count; CUDA graph launch.","origin":"search agent (Claude)","result":{"public":true,"sol":0.704563,"speedup":2.1447}}},{"board":"L1","id":"012_fused_cos_sin_embedding_generation","name":"Fused cos sin embedding generation","group":"Attention","op":"RoPE cos/sin from frequencies with attention scaling","direction":"forward","model":"NousResearch/Hermes-4-405B","workloads":16,"kernel":{"dir":"kernels/L1/012_fused_cos_sin_embedding_generation","language":"CuTe DSL","files":[{"path":"main.py","lines":1135,"bytes":62728}],"idea":"CuTe DSL elementwise kernels by row count: 128-bit loads, quick range reduction, fast cos/sin, each value stored to both halves; some big sizes bulk-store from smem.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.916332,"speedup":8.0396}}},{"board":"L1","id":"013_fused_residual_rms_norm_backward","name":"Fused residual RMS norm backward","group":"Backward pass","op":"fused residual + RMSNorm backward","direction":"backward","model":"Qwen/Qwen3-4B-Instruct-2507","workloads":16,"kernel":{"dir":"kernels/L1/013_fused_residual_rms_norm_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2694,"bytes":162556},{"path":"kernel.h","lines":9,"bytes":592},{"path":"main.cpp","lines":87,"bytes":4696}],"idea":"Few rows: one fused kernel, some CTAs sum the weight grad by column; many rows: persistent CTAs fed by a TMA bulk-copy ring, plus a reduce kernel.","origin":"search agent (Claude)","result":{"public":true,"sol":0.843888,"speedup":4.9694}}},{"board":"L1","id":"014_rotary_embedding_with_attention_scaling_backward","name":"Rotary embedding with attention scaling backward","group":"Backward pass","op":"RoPE with attention scaling backward","direction":"backward","model":"Qwen/Qwen3-4B-Instruct-2507","workloads":16,"kernel":{"dir":"kernels/L1/014_rotary_embedding_with_attention_scaling_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1250,"bytes":69889},{"path":"main.cpp","lines":451,"bytes":27358}],"idea":"Memory-bound row reduction: lanes split each row's frequencies, cache-hinted vector loads, sin/cos with packed f32x2 math, shuffle sum; per-shape launch replayed as a one-node CUDA graph","origin":"search agent (Claude)","result":{"public":true,"sol":0.935314,"speedup":12.7948}}},{"board":"L1","id":"015_grouped_query_attention_with_rope_and_qk_norm","name":"Grouped query attention with RoPE and QK norm","group":"Attention","op":"GQA attention block: QKV proj, QK-RMSNorm, RoPE, causal SDPA, o_proj","direction":"forward","model":"Qwen/Qwen3-8B","workloads":16,"kernel":{"dir":"kernels/L1/015_grouped_query_attention_with_rope_and_qk_norm","language":"CUDA C++","files":[{"path":"fmha.cu","lines":808,"bytes":48403},{"path":"fmha_half.hpp","lines":879,"bytes":46835},{"path":"fmha_half128.hpp","lines":782,"bytes":42362},{"path":"fmha_half128mc.hpp","lines":813,"bytes":45070},{"path":"fmha_mainloop_lazy.hpp","lines":1360,"bytes":55387},{"path":"fmha_pair.hpp","lines":499,"bytes":25342},{"path":"gemm.cu","lines":188,"bytes":10988},{"path":"gemm_common.hpp","lines":543,"bytes":28904},{"path":"gemm_f3.cu","lines":67,"bytes":4049},{"path":"gemm_f3.hpp","lines":668,"bytes":37940},{"path":"gemm_f3b.cu","lines":22,"bytes":1440},{"path":"gemm_f3c.cu","lines":15,"bytes":938},{"path":"gemm_f3d.cu","lines":14,"bytes":838},{"path":"gemm_f3n.cu","lines":20,"bytes":1441},{"path":"gemm_f3s.cu","lines":21,"bytes":1628},{"path":"gemm_nr.cu","lines":158,"bytes":8727},{"path":"gemm_x1.cu","lines":5,"bytes":302},{"path":"gemm_x2.cu","lines":9,"bytes":676},{"path":"gemm_x3.cu","lines":9,"bytes":692},{"path":"gemm_x4.cu","lines":33,"bytes":2297},{"path":"gemm_x5.cu","lines":7,"bytes":494},{"path":"gemm_x6.cu","lines":41,"bytes":2768},{"path":"gemm_x7.cu","lines":126,"bytes":6665},{"path":"gemm_x8.cu","lines":29,"bytes":2007},{"path":"gemm_xa.cu","lines":24,"bytes":1662},{"path":"gemm_xb.cu","lines":19,"bytes":1151},{"path":"gemm_xe.cu","lines":26,"bytes":1652},{"path":"gemm_xo.cu","lines":89,"bytes":6230},{"path":"gemm_xs.cu","lines":69,"bytes":4363},{"path":"kernel.cu","lines":1387,"bytes":71883},{"path":"kernel.h","lines":90,"bytes":6366},{"path":"main.cpp","lines":561,"bytes":28569},{"path":"mega.cu","lines":783,"bytes":33031},{"path":"qkvsk.cu","lines":478,"bytes":21799}],"idea":"QKV tcgen05 GEMM with per-head RMSNorm + RoPE in its epilogue; a side-stream mask check picks a CUTLASS causal FMHA or a general flash kernel; CUDA graphs.","origin":"search agent (Claude)","result":{"public":true,"sol":0.704345,"speedup":1.6043}}},{"board":"L1","id":"016_rope_inverse_frequency_computation","name":"RoPE inverse frequency computation","group":"Attention","op":"RoPE inverse-frequency table","direction":"forward","model":"Qwen/Qwen3-8B","workloads":16,"kernel":{"dir":"kernels/L1/016_rope_inverse_frequency_computation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":134,"bytes":5336},{"path":"main.cpp","lines":14,"bytes":678}],"idea":"One tiny kernel: each thread makes one value with a single ex2 (2^x) from a host-computed step; launched as a replayed CUDA graph with PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.716973,"speedup":1.9726}}},{"board":"L1","id":"017_moe_expert_swiglu_with_down_projection_backward","name":"MoE expert SwiGLU with down projection backward","group":"Backward pass","op":"MoE expert SwiGLU + down projection backward","direction":"backward","model":"Qwen/Qwen3-30B-A3B-Instruct-2507","workloads":16,"kernel":{"dir":"kernels/L1/017_moe_expert_swiglu_with_down_projection_backward","language":"CUDA C++","files":[{"path":"bench.cu","lines":184,"bytes":10387},{"path":"kernel.cu","lines":3102,"bytes":195068},{"path":"main.cpp","lines":262,"bytes":16050},{"path":"mid.cu","lines":658,"bytes":36585},{"path":"mixb_A.cu","lines":777,"bytes":42727},{"path":"mixb_B.cu","lines":859,"bytes":47147},{"path":"offb.cu","lines":700,"bytes":38577},{"path":"rotl_plan.h","lines":3,"bytes":155},{"path":"tinyf.cu","lines":483,"bytes":26465},{"path":"tinym.cu","lines":1078,"bytes":60586},{"path":"tinyo.cu","lines":506,"bytes":24581},{"path":"tinyp.cu","lines":592,"bytes":30775},{"path":"tinys.cu","lines":494,"bytes":24659}],"idea":"By token count: few tokens run the whole backward in one fused launch (cluster DSMEM reduces); mid uses mma.sync split-K; many use persistent tcgen05 GEMMs.","origin":"search agent (Claude)","result":{"public":true,"sol":0.789746,"speedup":3.223}}},{"board":"L1","id":"018_fused_rope_with_qk_norm_and_kv_cache_update","name":"Fused RoPE with QK norm and KV cache update","group":"Attention","op":"fused QK-RMSNorm + RoPE + KV-cache write","direction":"forward","model":"Qwen/Qwen3-Coder-480B-A35B-Instruct","workloads":13,"kernel":{"dir":"kernels/L1/018_fused_rope_with_qk_norm_and_kv_cache_update","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2084,"bytes":115322},{"path":"kernel.h","lines":12,"bytes":870},{"path":"main.cpp","lines":81,"bytes":5897}],"idea":"One fused memory-bound kernel, variant picked by shape: 16-byte and cp.async row loads, sin/cos computed in-kernel, packed bf16x2 RoPE math; PDL launch.","origin":"search agent (Claude)","result":{"public":true,"sol":0.930738,"speedup":7.9374}}},{"board":"L1","id":"019_vision_3d_rotary_embedding_with_spatial_merge_indexing_backward","name":"Vision 3D rotary embedding with spatial merge indexing backward","group":"Backward pass","op":"vision 3D RoPE with spatial-merge indexing backward","direction":"backward","model":"Qwen/Qwen3-Omni-30B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L1/019_vision_3d_rotary_embedding_with_spatial_merge_indexing_backward","language":"CuTe DSL","files":[{"path":"main.py","lines":1824,"bytes":99148}],"idea":"CuTe DSL, one CTA per token: lanes swap rotate-half partners by warp shuffle, warps sum the embedding gradient in smem, fast sin/cos, L2 cache hints.","origin":"search agent (Claude)","result":{"public":true,"sol":0.86327,"speedup":3.7862}}},{"board":"L1","id":"020_vision_patch_merger_spatial_shuffle_mlp","name":"Vision patch merger spatial shuffle MLP","group":"Image and video","op":"vision patch merger: 2x2 shuffle + LayerNorm + GELU MLP","direction":"forward","model":"Qwen/Qwen3-Omni-30B-A3B-Instruct","workloads":15,"kernel":{"dir":"kernels/L1/020_vision_patch_merger_spatial_shuffle_mlp","language":"CUDA C++","files":[{"path":"cutlass_cfg.cuh","lines":376,"bytes":21931},{"path":"cutlass_diag.cu","lines":80,"bytes":4914},{"path":"cutlass_fc1_nt.cu","lines":59,"bytes":3855},{"path":"cutlass_gemm.cu","lines":89,"bytes":5363},{"path":"fast_gelu.cuh","lines":103,"bytes":4312},{"path":"fc1_small.cu","lines":4169,"bytes":245909},{"path":"kernel.cu","lines":929,"bytes":54827},{"path":"kernel.h","lines":28,"bytes":2494},{"path":"main.cpp","lines":986,"bytes":55953}],"idea":"LayerNorm + 2x2 gather kernel, then two GEMMs on hand-written 2-SM tcgen05 kernels (fused bias + GELU), CUTLASS or cuBLASLt, picked by token count; PDL between kernels.","origin":"search agent (Claude)","result":{"public":true,"sol":0.754721,"speedup":1.9114}}},{"board":"L1","id":"021_vision_cu_seqlens_variable_length_attention","name":"Vision cu seqlens variable length attention","group":"Image and video","op":"vision varlen attention (cu_seqlens) with QKV proj + RoPE","direction":"forward","model":"Qwen/Qwen3-VL-8B-Instruct","workloads":16,"kernel":{"dir":"kernels/L1/021_vision_cu_seqlens_variable_length_attention","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6232,"bytes":360374},{"path":"kernel.h","lines":107,"bytes":10191},{"path":"main.cpp","lines":1533,"bytes":85253},{"path":"proj_cutlass.cu","lines":621,"bytes":39409}],"idea":"By token count: one fused kernel for few tokens; otherwise fp16 casts, QKV GEMM plus RoPE, mma.sync or tcgen05 varlen attention, and a CUTLASS or cuBLASLt out-proj","origin":"search agent (Claude)","result":{"public":true,"sol":0.92025,"speedup":9.7645}}},{"board":"L1","id":"022_vision_mlp_gelu_backward","name":"Vision MLP GELU backward","group":"Backward pass","op":"vision MLP GELU backward","direction":"backward","model":"Qwen/Qwen3-VL-8B-Instruct","workloads":16,"kernel":{"dir":"kernels/L1/022_vision_mlp_gelu_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5839,"bytes":372208},{"path":"kernel.h","lines":142,"bytes":11085},{"path":"main.cpp","lines":1552,"bytes":102638},{"path":"mega.cu","lines":1429,"bytes":88092}],"idea":"Path picked by row count; most rows cast to fp16, then one persistent warp-specialized tcgen05 kernel runs all four GEMMs with the GELU backward fused in.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.771534,"speedup":2.7094}}},{"board":"L1","id":"023_multimodal_rope_position_computation_with_grid_based_indexing","name":"Multimodal RoPE position computation with grid based indexing","group":"Image and video","op":"multimodal RoPE positions + learned position-embedding interpolation","direction":"forward","model":"Qwen/Qwen3-VL-235B-A22B-Instruct","workloads":16,"kernel":{"dir":"kernels/L1/023_multimodal_rope_position_computation_with_grid_based_indexing","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3960,"bytes":214753},{"path":"kernel.h","lines":86,"bytes":5228},{"path":"main.cpp","lines":706,"bytes":37197}],"idea":"One fused kernel: bilinear gathers plus cos/sin; it launches on the previous call's grid, and one CTA copies the real grid to the host to check it.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.98486,"speedup":46.9975}}},{"board":"L1","id":"024_vision_rotary_position_embedding_generation_backward","name":"Vision rotary position embedding generation backward","group":"Backward pass","op":"vision RoPE generation backward","direction":"backward","model":"Qwen/Qwen-Image-Edit-2509","workloads":16,"kernel":{"dir":"kernels/L1/024_vision_rotary_position_embedding_generation_backward","language":"CUDA C++","files":[{"path":"aot_body.cuh","lines":1192,"bytes":64856},{"path":"aot_f1_t360_n4716_g16_s1_a0.cu","lines":35,"bytes":673},{"path":"aot_f2_t256_n3528_g16_s1_a0.cu","lines":37,"bytes":707},{"path":"aot_f2_t288_n3528_g16_s0_a0.cu","lines":34,"bytes":585},{"path":"aot_f2_t352_n4608_g16_s1_a0.cu","lines":37,"bytes":707},{"path":"aot_f2_t416_n5832_g16_s1_a0.cu","lines":37,"bytes":707},{"path":"aot_f2_t432_n5832_g16_s1_a0.cu","lines":35,"bytes":673},{"path":"aot_f2_t648_n9738_g16_s1_a1.cu","lines":35,"bytes":673},{"path":"aot_f5_t128_n13914_g128_s1_a1.cu","lines":38,"bytes":678},{"path":"aot_f5_t128_n13914_g160_s1_a1.cu","lines":38,"bytes":713},{"path":"aot_f5_t128_n3528_g32_s1_a1.cu","lines":38,"bytes":690},{"path":"aot_f5_t192_n18432_g128_s1_a1.cu","lines":38,"bytes":726},{"path":"aot_f5_t192_n19566_g128_s1_a1.cu","lines":38,"bytes":726},{"path":"aot_f5_t192_n20934_g128_s1_a1.cu","lines":40,"bytes":810},{"path":"aot_f5_t192_n4608_g32_s1_a1.cu","lines":38,"bytes":690},{"path":"aot_f5_t224_n5832_g16_s1_a2.cu","lines":36,"bytes":610},{"path":"aot_f5_t224_n5832_g32_s1_a1.cu","lines":38,"bytes":690},{"path":"aot_f5_t256_n11034_g48_s1_a1.cu","lines":38,"bytes":699},{"path":"aot_f5_t256_n9738_g48_s1_a1.cu","lines":38,"bytes":690},{"path":"aot_f5_t288_n12438_g48_s1_a1.cu","lines":38,"bytes":699},{"path":"aot_f5_t352_n13824_g48_s1_a1.cu","lines":38,"bytes":699},{"path":"aot_f5_t352_n9738_g32_s1_a1.cu","lines":38,"bytes":690},{"path":"aot_f5_t360_n11034_g16_s0_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t384_n11034_g32_s1_a1.cu","lines":41,"bytes":905},{"path":"aot_f5_t432_n11034_g16_s1_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t432_n13824_g16_s0_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t448_n12438_g16_s1_a2.cu","lines":36,"bytes":614},{"path":"aot_f5_t448_n12438_g32_s1_a1.cu","lines":38,"bytes":672},{"path":"aot_f5_t468_n13914_g16_s1_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t480_n13824_g16_s1_a2.cu","lines":36,"bytes":614},{"path":"aot_f5_t480_n13824_g32_s1_a1.cu","lines":38,"bytes":672},{"path":"aot_f5_t480_n13914_g16_s1_a2.cu","lines":36,"bytes":614},{"path":"aot_f5_t480_n20934_g16_s1_a3.cu","lines":38,"bytes":698},{"path":"aot_f5_t576_n18432_g16_s0_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t630_n18432_g16_s1_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t648_n19566_g16_s0_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t64_n2358_g48_s1_a1.cu","lines":40,"bytes":799},{"path":"aot_f5_t64_n3528_g48_s1_a2.cu","lines":38,"bytes":685},{"path":"aot_f5_t64_n36864_g768_s1_a1.cu","lines":40,"bytes":808},{"path":"aot_f5_t720_n20934_g16_s0_a2.cu","lines":35,"bytes":678},{"path":"aot_f5_t96_n18432_g320_s1_a1.cu","lines":40,"bytes":808},{"path":"aot_f5_t96_n19566_g320_s1_a1.cu","lines":40,"bytes":808},{"path":"aot_f5_t96_n20934_g384_s1_a1.cu","lines":40,"bytes":808},{"path":"aot_f7_t128_n110592_g864_s5_a6.cu","lines":43,"bytes":968},{"path":"aot_f7_t128_n36864_g288_s5_a2.cu","lines":36,"bytes":801},{"path":"aot_f7_t192_n110592_g576_s5_a4.cu","lines":43,"bytes":968},{"path":"aot_f7_t192_n147456_g768_s5_a6.cu","lines":39,"bytes":804},{"path":"aot_f7_t192_n221184_g1152_s5_a8.cu","lines":39,"bytes":928},{"path":"aot_f7_t256_n110592_g432_s5_a3.cu","lines":37,"bytes":919},{"path":"aot_f7_t256_n147456_g576_s5_a4.cu","lines":41,"bytes":872},{"path":"aot_f7_t32_n19566_g612_s5_a4.cu","lines":37,"bytes":842},{"path":"aot_f7_t32_n20934_g656_s5_a8.cu","lines":42,"bytes":1206},{"path":"aot_f7_t352_n147456_g432_s5_a3.cu","lines":36,"bytes":702},{"path":"aot_f7_t384_n221184_g576_s5_a4.cu","lines":39,"bytes":862},{"path":"aot_f7_t512_n147456_g288_s5_a2.cu","lines":37,"bytes":866},{"path":"aot_f7_t64_n18432_g288_s5_a3.cu","lines":37,"bytes":794},{"path":"aot_f7_t64_n19566_g306_s5_a2.cu","lines":37,"bytes":773},{"path":"aot_f7_t64_n20934_g328_s5_a2.cu","lines":38,"bytes":931},{"path":"aot_f7_t64_n36864_g576_s5_a4.cu","lines":35,"bytes":707},{"path":"aot_f7_t96_n110592_g1152_s5_a8.cu","lines":43,"bytes":968},{"path":"aot_f7_t96_n18432_g192_s5_a2.cu","lines":36,"bytes":829},{"path":"aot_f7_t96_n19566_g204_s5_a2.cu","lines":36,"bytes":829},{"path":"aot_table.h","lines":127,"bytes":9296},{"path":"kernel.cu","lines":2460,"bytes":136299},{"path":"main.cpp","lines":209,"bytes":12712}],"idea":"One streaming pass: partial sums are merged inside CTA clusters through DSMEM (or by global atomics) into the output; known sizes run kernels specialized ahead of time.","origin":"search agent (Claude)","result":{"public":true,"sol":0.958806,"speedup":19.9206}}},{"board":"L1","id":"025_video_latent_gelu_activation","name":"Video latent GELU activation","group":"Image and video","op":"GELU-tanh elementwise (video latents)","direction":"forward","model":"Wan-AI/Wan2.2-T2V-A14B","workloads":16,"kernel":{"dir":"kernels/L1/025_video_latent_gelu_activation","language":"Triton","files":[{"path":"main.py","lines":832,"bytes":37990}],"idea":"Triton elementwise kernels with hardware tanh.approx via inline PTX; picks a kernel by size; row-aligned sizes store tiles via TMA; PDL launches load before waiting.","origin":"search agent (Claude)","result":{"public":true,"sol":0.626849,"speedup":1.1332}}},{"board":"L1","id":"026_video_patch_embedding_projection","name":"Video patch embedding projection","group":"Image and video","op":"Conv3D video patch embed + position embed + LayerNorm","direction":"forward","model":"Wan-AI/Wan2.2-T2V-A14B","workloads":4,"kernel":{"dir":"kernels/L1/026_video_patch_embedding_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2714,"bytes":174098},{"path":"kernel.h","lines":21,"bytes":951},{"path":"main.cpp","lines":86,"bytes":5616}],"idea":"LN stats are computed up front from the input, a weight Gram matrix and small side GEMMs, so one TMA + tcgen05 pass writes each output once","origin":"search agent (Claude)","result":{"public":true,"sol":0.925903,"speedup":5.3905}}},{"board":"L1","id":"027_video_spatial_attention_with_rope_3d","name":"Video spatial attention with RoPE 3D","group":"Image and video","op":"video spatial attention with 3D RoPE","direction":"forward","model":"Wan-AI/Wan2.2-T2V-A14B","workloads":16,"kernel":{"dir":"kernels/L1/027_video_spatial_attention_with_rope_3d","language":"CUDA C++","files":[{"path":"attn.cu","lines":1311,"bytes":72275},{"path":"dbg_knobs.h","lines":14,"bytes":916},{"path":"fa4f.cu","lines":870,"bytes":50549},{"path":"fa4s.cu","lines":1135,"bytes":70877},{"path":"fa4s1.cu","lines":1246,"bytes":77348},{"path":"fa4s3.cu","lines":2607,"bytes":162195},{"path":"fa4t.cu","lines":2552,"bytes":156809},{"path":"kernel.cu","lines":10049,"bytes":623380},{"path":"kernel.h","lines":345,"bytes":27340},{"path":"main.cpp","lines":1594,"bytes":110359},{"path":"scales.h","lines":27,"bytes":1552}],"idea":"fp16 hi/lo splits keep near-fp32 accuracy (tcgen05 GEMMs and flash attention sum the hi/lo cross products); QKV epilogue fuses bias + 3D RoPE; variants chosen per shape.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.920981,"speedup":9.3178}}},{"board":"L1","id":"028_hybrid_attention_mask_preparation","name":"Hybrid attention mask preparation","group":"Attention","op":"causal + sliding-window mask construction","direction":"forward","model":"XiaomiMiMo/MiMo-V2-Flash","workloads":12,"kernel":{"dir":"kernels/L1/028_hybrid_attention_mask_preparation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":92,"bytes":4174},{"path":"main.cpp","lines":75,"bytes":4011}],"idea":"One grid-stride CUDA kernel writes both masks with 16-byte stores, building each causal chunk from bit shifts.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.273245,"speedup":0.138}}},{"board":"L1","id":"029_mamba_conv1d_with_gating","name":"Mamba Conv1D with gating","group":"State space and conv","op":"Mamba in-proj + causal depthwise conv1d + SiLU gate","direction":"forward","model":"ai21labs/AI21-Jamba-Large-1.7","workloads":16,"kernel":{"dir":"kernels/L1/029_mamba_conv1d_with_gating","language":"CUDA C++","files":[{"path":"gemm_a.cu","lines":43,"bytes":2779},{"path":"gemm_b.cu","lines":43,"bytes":2804},{"path":"gemm_c.cu","lines":37,"bytes":2475},{"path":"gemm_impl.cuh","lines":1953,"bytes":115193},{"path":"kernel.cu","lines":439,"bytes":24446},{"path":"kernel.h","lines":90,"bytes":6063},{"path":"main.cpp","lines":967,"bytes":37249},{"path":"single.cu","lines":2819,"bytes":166517},{"path":"single.h","lines":10,"bytes":842}],"idea":"tcgen05 in-proj GEMM with conv1d, SiLU and mask fused in the epilogue; masked tokens compacted out; some shapes use one persistent 2-CTA kernel, others CUTLASS.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.935308,"speedup":1.603}}},{"board":"L1","id":"030_attention_output_projection_with_residual","name":"Attention output projection with residual","group":"Projections and GEMM","op":"o_proj GEMM (2560x2560) + residual add","direction":"forward","model":"ai21labs/AI21-Jamba-Reasoning-3B","workloads":16,"kernel":{"dir":"kernels/L1/030_attention_output_projection_with_residual","language":"CUDA C++","files":[{"path":"cute.cu","lines":1857,"bytes":117973},{"path":"kernel.cu","lines":453,"bytes":25271},{"path":"kernel.h","lines":14,"bytes":762},{"path":"main.cpp","lines":124,"bytes":5672},{"path":"mru.h","lines":28,"bytes":1300}],"idea":"Small M: fixed-algo cuBLASLt with the residual as C (beta = 1), relaunched from a captured graph; large M: persistent 2-SM tcgen05 CuTe GEMM with a residual epilogue.","origin":"search agent (Claude)","result":{"public":true,"sol":0.47423,"speedup":0.959}}},{"board":"L1","id":"031_repeat_kv_attention_matmul","name":"Repeat KV attention matmul","group":"Attention","op":"GQA repeat_kv + Q@K^T scores","direction":"forward","model":"allenai/Olmo-3-7B-Think","workloads":16,"kernel":{"dir":"kernels/L1/031_repeat_kv_attention_matmul","language":"CUDA C++","files":[{"path":"b2s_kernel.cu","lines":246,"bytes":14120},{"path":"b2so_kernel.cu","lines":214,"bytes":11418},{"path":"b512_kernel.cu","lines":272,"bytes":14614},{"path":"band_kernel.cu","lines":595,"bytes":34949},{"path":"big1sm_kernel.cu","lines":314,"bytes":17818},{"path":"cutlass_gemm.cu","lines":1316,"bytes":79335},{"path":"dyn_kernel.cu","lines":368,"bytes":19955},{"path":"hb_kernel.cu","lines":172,"bytes":8173},{"path":"hq2_kernel.cu","lines":203,"bytes":11258},{"path":"hq_kernel.cu","lines":538,"bytes":30952},{"path":"hqmc_kernel.cu","lines":269,"bytes":15318},{"path":"kernel.h","lines":235,"bytes":16241},{"path":"lat_kernel.cu","lines":386,"bytes":20472},{"path":"main.cpp","lines":1465,"bytes":85059},{"path":"mck_kernel.cu","lines":227,"bytes":11909},{"path":"oddw_kernel.cu","lines":250,"bytes":12158},{"path":"pf_kernel.cu","lines":184,"bytes":8709},{"path":"pipe_kernel.cu","lines":182,"bytes":8847},{"path":"reg_kernel.cu","lines":172,"bytes":7879},{"path":"slab_kernel.cu","lines":164,"bytes":7281},{"path":"small_kernel.cu","lines":178,"bytes":8280},{"path":"t256_kernel.cu","lines":215,"bytes":12518},{"path":"tiny_kernel.cu","lines":172,"bytes":8459},{"path":"wide_kernel.cu","lines":199,"bytes":10627}],"idea":"Batched Q @ K^T with the scale fused, by shape: mma.sync or small tcgen05 kernels for short sequences; CUTLASS SM100 or hand-written tcgen05 GEMMs for long ones.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.621981,"speedup":1.4358}}},{"board":"L1","id":"032_attention_weights_matmul_with_value_projection","name":"Attention weights matmul with value projection","group":"Attention","op":"attention weights @ V + transpose / reshape","direction":"forward","model":"allenai/Olmo-3-32B-Think","workloads":16,"kernel":{"dir":"kernels/L1/032_attention_weights_matmul_with_value_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3492,"bytes":239698},{"path":"kernel.h","lines":7,"bytes":356},{"path":"main.cpp","lines":34,"bytes":2271}],"idea":"Per-head P @ V on tcgen05 with TMA loads and persistent tiles, storing straight into the transposed layout; short sequences use an mma.sync kernel.","origin":"search agent (Claude)","result":{"public":true,"sol":0.81185,"speedup":2.5185}}},{"board":"L1","id":"033_post_norm_residual","name":"Post norm residual","group":"Normalization","op":"post-norm residual: residual + RMSNorm(x)","direction":"forward","model":"allenai/Olmo-3-1025-7B","workloads":16,"kernel":{"dir":"kernels/L1/033_post_norm_residual","language":"CuTe DSL","files":[{"path":"main.py","lines":1287,"bytes":74233}],"idea":"CuTe DSL row kernels: 128-bit cache-hinted loads, next-wave L2 prefetch, PDL; rows per CTA set by row count, and small inputs split a row over two CTAs","origin":"search agent (Claude)","result":{"public":true,"sol":0.797033,"speedup":2.5315}}},{"board":"L1","id":"034_flux_multi_axis_rope_frequency_computation","name":"Flux multi axis RoPE frequency computation","group":"Image and video","op":"FLUX multi-axis RoPE frequencies","direction":"forward","model":"black-forest-labs/FLUX.1-Fill-dev","workloads":16,"kernel":{"dir":"kernels/L1/034_flux_multi_axis_rope_frequency_computation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":241,"bytes":12629},{"path":"kernel.h","lines":5,"bytes":348},{"path":"main.cpp","lines":142,"bytes":8479}],"idea":"One warp per row: ex2.approx frequencies, packed-FMA angles, fast MUFU cos (sin as a shifted cos), float4 stores; another kernel for long sequences; PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.739678,"speedup":2.4801}}},{"board":"L1","id":"035_flux_ada_layer_norm_zero_modulation_extraction","name":"Flux ada layer norm zero modulation extraction","group":"Image and video","op":"FLUX AdaLN-Zero modulation linear + chunk","direction":"forward","model":"black-forest-labs/FLUX.1-Kontext-dev","workloads":16,"kernel":{"dir":"kernels/L1/035_flux_ada_layer_norm_zero_modulation_extraction","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5479,"bytes":325494},{"path":"main.cpp","lines":240,"bytes":12506}],"idea":"Weight-streaming GEMM picked by batch size: TMA + mma.sync TF32 when small, CUTLASS or tcgen05 TF32 mid, in-kernel fp16 convert + tcgen05 when large; CUDA graph","origin":"search agent (Claude)","result":{"public":true,"sol":0.734368,"speedup":1.986}}},{"board":"L1","id":"036_flux_output_norm_projection_chain","name":"Flux output norm projection chain","group":"Image and video","op":"FLUX final AdaLN + output projection","direction":"forward","model":"black-forest-labs/FLUX.1-Kontext-dev","workloads":16,"kernel":{"dir":"kernels/L1/036_flux_output_norm_projection_chain","language":"CUDA C++","files":[{"path":"kernel.cu","lines":4996,"bytes":327809},{"path":"kernel.h","lines":30,"bytes":2062},{"path":"main.cpp","lines":145,"bytes":8194}],"idea":"CUDA graph: split GEMV for scale/shift, then a TMA + tcgen05 TF32 GEMM of raw x with a per-batch scaled weight; LayerNorm stats applied in the epilogue.","origin":"search agent (Claude)","result":{"public":true,"sol":0.753246,"speedup":2.3892}}},{"board":"L1","id":"037_flux_feedforward_gelu_approximate","name":"Flux feedforward GELU approximate","group":"Image and video","op":"FLUX feed-forward with GELU-tanh","direction":"forward","model":"black-forest-labs/FLUX.1-dev","workloads":16,"kernel":{"dir":"kernels/L1/037_flux_feedforward_gelu_approximate","language":"CUDA C++","files":[{"path":"diag.h","lines":1,"bytes":13},{"path":"kernel.cu","lines":4202,"bytes":249285},{"path":"kernel.h","lines":75,"bytes":4813},{"path":"main.cpp","lines":910,"bytes":45061}],"idea":"By token count: tcgen05 TF32 GEMMs for few tokens; else fp16 operands with power-of-two scales on tcgen05 (2-SM when large); GELU-tanh in the first GEMM's epilogue","origin":"search agent (Claude)","result":{"public":true,"sol":0.753106,"speedup":1.7209}}},{"board":"L1","id":"038_flux_multi_head_rmsnorm_qk","name":"Flux multi head RMSNorm QK","group":"Image and video","op":"FLUX.2 per-head QK RMSNorm","direction":"forward","model":"black-forest-labs/FLUX.2-dev","workloads":16,"kernel":{"dir":"kernels/L1/038_flux_multi_head_rmsnorm_qk","language":"Triton","files":[{"path":"kernel.py","lines":1648,"bytes":95206}],"idea":"One Triton launch normalizes Q and K in head-major token tiles, loading each head weight once; config by token count; inline-PTX L2 cache hints.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.604484,"speedup":1.3485}}},{"board":"L1","id":"039_adaptive_instance_normalization_2d_backward","name":"Adaptive instance normalization 2D backward","group":"Backward pass","op":"adaptive instance norm 2D backward","direction":"backward","model":"chuxiaojie/NAFNet","workloads":16,"kernel":{"dir":"kernels/L1/039_adaptive_instance_normalization_2d_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":7662,"bytes":472535},{"path":"kernel.h","lines":25,"bytes":2086},{"path":"main.cpp","lines":357,"bytes":22969}],"idea":"By shape: a reduce kernel builds per-plane fp64 sums plus the weight and bias grads, then an elementwise kernel writes the input grad; small sizes replay a CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.92775,"speedup":9.9207}}},{"board":"L1","id":"040_conv2d_residual_block","name":"Conv2D residual block","group":"Image and video","op":"NAFNet conv residual block","direction":"forward","model":"chuxiaojie/NAFNet","workloads":16,"kernel":{"dir":"kernels/L1/040_conv2d_residual_block","language":"CUDA C++","files":[{"path":"combo.h","lines":18,"bytes":768},{"path":"main.cpp","lines":46,"bytes":2906},{"path":"vA_kernel.cu","lines":3824,"bytes":255388},{"path":"vA_kernel_twogemm.cu","lines":2115,"bytes":126980},{"path":"vB_kernel.cu","lines":4061,"bytes":277626},{"path":"vB_kernel_twogemm.cu","lines":2192,"bytes":133187},{"path":"vC_kernel.cu","lines":4167,"bytes":283127}],"idea":"Fuses both convs and the residual per image tile; with no activation between them, the weights merge into one fp16 mma.sync GEMM (two GEMMs for small inputs).","origin":"search agent (Claude)","result":{"public":true,"sol":0.961438,"speedup":22.7006}}},{"board":"L1","id":"041_strided_conv2d_downsampling","name":"Strided Conv2D downsampling","group":"Image and video","op":"NAFNet strided conv2d downsampling","direction":"forward","model":"chuxiaojie/NAFNet","workloads":16,"kernel":{"dir":"kernels/L1/041_strided_conv2d_downsampling","language":"CUDA C++","files":[{"path":"kernel.cu","lines":4398,"bytes":288950},{"path":"kernel.h","lines":5,"bytes":214},{"path":"main.cpp","lines":46,"bytes":2742}],"idea":"Implicit-GEMM conv on tcgen05: TMA brings raw fp32 input, converter warps write fp16 tiles to smem, fp32 accumulators in TMEM, persistent CTAs, PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.847163,"speedup":4.384}}},{"board":"L1","id":"042_moe_expert_load_balancing_and_token_capacity_backward","name":"MoE expert load balancing and token capacity backward","group":"Backward pass","op":"MoE load-balancing loss / capacity backward","direction":"backward","model":"deepseek-ai/DeepSeek-R1-0528","workloads":16,"kernel":{"dir":"kernels/L1/042_moe_expert_load_balancing_and_token_capacity_backward","language":"Triton","files":[{"path":"main.py","lines":1649,"bytes":81411}],"idea":"Memory-bound broadcast add: Triton or Gluon kernels picked by row count, wide vector loads and stores, L2 eviction hints; the loss gradient is read on the device.","origin":"search agent (Claude)","result":{"public":true,"sol":0.720468,"speedup":2.2678}}},{"board":"L1","id":"043_mla_fused_qkv_rope_split","name":"MLA fused QKV RoPE split","group":"Projections and GEMM","op":"MLA latent projections: q_a -> RMSNorm -> q_b, kv_a + split","direction":"forward","model":"deepseek-ai/DeepSeek-V3","workloads":16,"kernel":{"dir":"kernels/L1/043_mla_fused_qkv_rope_split","language":"CUDA C++","files":[{"path":"cutlass_qb.cu","lines":59,"bytes":3765},{"path":"cutlass_qb10.cu","lines":22,"bytes":1290},{"path":"cutlass_qb2.cu","lines":42,"bytes":2792},{"path":"cutlass_qb3.cu","lines":36,"bytes":2334},{"path":"cutlass_qb4.cu","lines":22,"bytes":1389},{"path":"cutlass_qb5.cu","lines":32,"bytes":1983},{"path":"cutlass_qb6.cu","lines":45,"bytes":3088},{"path":"cutlass_qb7.cu","lines":26,"bytes":1537},{"path":"cutlass_qb8.cu","lines":30,"bytes":1967},{"path":"cutlass_qb9.cu","lines":30,"bytes":1923},{"path":"cutlass_qb_common.h","lines":566,"bytes":33930},{"path":"kernel.cu","lines":9014,"bytes":522511},{"path":"main.cpp","lines":813,"bytes":55270}],"idea":"A CUDA graph of tcgen05 GEMMs, picked by token count: joint q_a/kv_a projection (split-K or persistent 2-SM), RMSNorm in its reduce or the q_b epilogue, persistent q_b.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.758613,"speedup":1.6246}}},{"board":"L1","id":"044_moe_expert_computation","name":"MoE expert computation","group":"MLP and MoE","op":"MoE experts: SwiGLU per expert from given ids / weights","direction":"forward","model":"deepseek-ai/DeepSeek-V3","workloads":16,"kernel":{"dir":"kernels/L1/044_moe_expert_computation","language":"CUDA C++","files":[{"path":"cutlass_path.cu","lines":576,"bytes":30547},{"path":"cutlass_path.h","lines":63,"bytes":3813},{"path":"cutlass_stg_a.cu","lines":17,"bytes":904},{"path":"cutlass_stg_b.cu","lines":21,"bytes":902},{"path":"cutpath_core.h","lines":711,"bytes":41109},{"path":"kernel.cu","lines":3401,"bytes":201698},{"path":"kernel.h","lines":95,"bytes":6324},{"path":"main.cpp","lines":568,"bytes":30889}],"idea":"One persistent 2-SM tcgen05 megakernel: in-kernel routing and token gather, gate/up with SwiGLU, down with weighted red.add; large batches run the down step as CUTLASS grouped GEMMs.","origin":"search agent (Claude)","result":{"public":true,"sol":0.948983,"speedup":2.4137}}},{"board":"L1","id":"045_fused_linear_gelu_grn_linear","name":"Fused linear GELU GRN linear","group":"Image and video","op":"ConvNeXtV2 MLP + GRN","direction":"forward","model":"facebook/convnextv2-base-22k-224","workloads":14,"kernel":{"dir":"kernels/L1/045_fused_linear_gelu_grn_linear","language":"CUDA C++","files":[{"path":"kernel.cu","lines":10360,"bytes":556152},{"path":"kernel.h","lines":9,"bytes":522},{"path":"main.cpp","lines":113,"bytes":5898}],"idea":"fp16 tcgen05 GEMMs; the GEMM1 epilogue does GELU and per-channel sums of squares, shared across CTAs before GRN + GEMM2; large inputs recompute GEMM1 in a second pass.","origin":"search agent (Claude)","result":{"public":true,"sol":0.886625,"speedup":5.8284}}},{"board":"L1","id":"046_attention_softmax_with_softcapping_and_dropout","name":"Attention softmax with softcapping and dropout","group":"Attention","op":"attention softmax with logit soft-cap + dropout","direction":"forward","model":"google/gemma-3-1b-it","workloads":16,"kernel":{"dir":"kernels/L1/046_attention_softmax_with_softcapping_and_dropout","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1270,"bytes":80027},{"path":"kernel.h","lines":3,"bytes":165},{"path":"main.cpp","lines":96,"bytes":5355}],"idea":"One read, one write: the cap bounds the logits, so no max pass is needed; packed bf16x2/f32x2 math, a kernel per row length, CUDA graph launch.","origin":"search agent (Claude)","result":{"public":true,"sol":0.905159,"speedup":5.1237}}},{"board":"L1","id":"047_attention_with_qk_norm_and_rope","name":"Attention with QK norm and RoPE","group":"Attention","op":"Gemma3 attention block: QKV/O proj, QK-RMSNorm, RoPE, soft-cap, causal","direction":"forward","model":"google/gemma-3-12b-it","workloads":16,"kernel":{"dir":"kernels/L1/047_attention_with_qk_norm_and_rope","language":"CUDA C++","files":[{"path":"kernel.cu","lines":14486,"bytes":842615},{"path":"kernel.h","lines":3,"bytes":278},{"path":"main.cpp","lines":6,"bytes":425},{"path":"oproj.cu","lines":161,"bytes":9627}],"idea":"tcgen05 QKV GEMM fusing QK-RMSNorm + RoPE (cuBLASLt + norm/RoPE kernel on some shapes); tcgen05 soft-capped flash attention, causal fast path after a mask check","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.851953,"speedup":3.6969}}},{"board":"L1","id":"048_fused_gate_up_projection_with_swiglu","name":"Fused gate up projection with SwiGLU","group":"MLP and MoE","op":"fused gate+up GEMM with GELU-tanh gating (no down proj)","direction":"forward","model":"google/gemma-3-12b-it","workloads":16,"kernel":{"dir":"kernels/L1/048_fused_gate_up_projection_with_swiglu","language":"CUDA C++","files":[{"path":"cutlass_gemm.cu","lines":2,"bytes":94},{"path":"cutlass_mix.cu","lines":18,"bytes":950},{"path":"gu_body.h","lines":1804,"bytes":100798},{"path":"kernel.cu","lines":2535,"bytes":149516},{"path":"kernel.h","lines":53,"bytes":3930},{"path":"main.cpp","lines":213,"bytes":10473}],"idea":"Gate and up weights read in place as one interleaved operand; CUTLASS 2-SM tcgen05 GEMM applies GELU-tanh times up in its epilogue; custom tcgen05 kernels for small M","origin":"search agent (Claude)","result":{"public":true,"sol":0.679345,"speedup":1.2607}}},{"board":"L1","id":"049_attention_qk_matmul_with_gqa_repeat_and_scaling","name":"Attention QK matmul with GQA repeat and scaling","group":"Attention","op":"GQA repeat + Q@K^T + scale","direction":"forward","model":"google/gemma-3-270m","workloads":16,"kernel":{"dir":"kernels/L1/049_attention_qk_matmul_with_gqa_repeat_and_scaling","language":"CuTe DSL","files":[{"path":"main.py","lines":5264,"bytes":329822}],"idea":"CuTe DSL persistent tcgen05 batched GEMM: a KV group's query heads are just extra GEMM rows, scale in the epilogue; small shapes use an mma.sync kernel.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.628631,"speedup":1.6089}}},{"board":"L1","id":"050_attention_qkv_projection_with_bias_and_reshape","name":"Attention QKV projection with bias and reshape","group":"Projections and GEMM","op":"QKV projection with bias + reshape","direction":"forward","model":"google/gemma-3-270m","workloads":16,"kernel":{"dir":"kernels/L1/050_attention_qkv_projection_with_bias_and_reshape","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6750,"bytes":365888},{"path":"kernel.h","lines":18,"bytes":1096},{"path":"main.cpp","lines":241,"bytes":13349}],"idea":"One tcgen05 GEMM kernel makes Q, K and V with bias in its epilogue; tile widths set by token count (mma.sync for tiny sizes); CUDA graph launch.","origin":"search agent (Claude)","result":{"public":true,"sol":0.721885,"speedup":2.1843}}},{"board":"L1","id":"051_attention_qkv_with_qk_norm_single_kernel_backward","name":"Attention QKV with QK norm single kernel backward","group":"Backward pass","op":"QKV + QK-norm backward","direction":"backward","model":"google/gemma-3-270m","workloads":16,"kernel":{"dir":"kernels/L1/051_attention_qkv_with_qk_norm_single_kernel_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":4127,"bytes":259987},{"path":"kernel.h","lines":7,"bytes":517},{"path":"main.cpp","lines":118,"bytes":7479}],"idea":"Small batches: one cooperative kernel does the norm backward, a grid barrier, then warp-specialized TMA + tcgen05 dX and dW GEMMs; large batches split this into PDL-chained kernels.","origin":"search agent (Claude)","result":{"public":true,"sol":0.887948,"speedup":6.4193}}},{"board":"L1","id":"052_altup_hidden_state_collapse_with_magnitude_normalization","name":"AltUp hidden state collapse with magnitude normalization","group":"Other","op":"Gemma3n AltUp stream collapse","direction":"forward","model":"google/gemma-3n-E2B","workloads":16,"kernel":{"dir":"kernels/L1/052_altup_hidden_state_collapse_with_magnitude_normalization","language":"CUDA C++","files":[{"path":"cutlass_fp16.cu","lines":1627,"bytes":105668},{"path":"kernel.cu","lines":858,"bytes":48369},{"path":"main.cpp","lines":50,"bytes":2530}],"idea":"By row count: a CUTLASS 2-SM tcgen05 GEMM whose epilogue writes scaled fp16 plus row sums of squares, or cuBLASLt; then a PDL collapse kernel.","origin":"search agent (Claude)","result":{"public":true,"sol":0.890808,"speedup":4.3164}}},{"board":"L1","id":"053_gaussian_topk_sparse_activation","name":"Gaussian topk sparse activation","group":"Other","op":"Gemma3n Gaussian top-k sparse activation","direction":"forward","model":"google/gemma-3n-E2B","workloads":12,"kernel":{"dir":"kernels/L1/053_gaussian_topk_sparse_activation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1945,"bytes":111202},{"path":"kernel.h","lines":3,"bytes":128},{"path":"main.cpp","lines":266,"bytes":13782}],"idea":"One pass per row: the row stays on chip while its sum and sum of squares are reduced; kernel picked by shape; big outputs use compressible memory.","origin":"search agent (Claude)","result":{"public":true,"sol":0.635128,"speedup":1.1898}}},{"board":"L1","id":"054_audio_attention_qkv_projection_with_normalization","name":"Audio attention QKV projection with normalization","group":"Audio","op":"audio attention QKV proj + per-head RMSNorm","direction":"forward","model":"google/gemma-3n-E4B","workloads":16,"kernel":{"dir":"kernels/L1/054_audio_attention_qkv_projection_with_normalization","language":"CUDA C++","files":[{"path":"cf_common.cuh","lines":252,"bytes":16824},{"path":"graph_rec.h","lines":75,"bytes":3154},{"path":"kernel.cu","lines":326,"bytes":14361},{"path":"kernel.h","lines":114,"bytes":8072},{"path":"main.cpp","lines":307,"bytes":15470},{"path":"qkv_cf.cu","lines":2131,"bytes":117006},{"path":"qkv_fp16.cu","lines":2304,"bytes":130575},{"path":"qkv_ms.cu","lines":2857,"bytes":147736},{"path":"qkv_p2.cu","lines":394,"bytes":22350},{"path":"qkv_pp.cu","lines":141,"bytes":7588}],"idea":"tcgen05 GEMM with per-head RMSNorm in the epilogue; small M: TF32 swap-AB split-K in clusters; large M: power-of-two scaled fp16 and 2-SM tiles; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.947195,"speedup":14.5904}}},{"board":"L1","id":"055_attention_qkv_projection_with_gqa_reshape","name":"Attention QKV projection with GQA reshape","group":"Projections and GEMM","op":"QKV projection + GQA reshape","direction":"forward","model":"ibm-granite/granite-4.0-1b","workloads":16,"kernel":{"dir":"kernels/L1/055_attention_qkv_projection_with_gqa_reshape","language":"CuTe DSL","files":[{"path":"main.py","lines":10427,"bytes":621205}],"idea":"One persistent CuTe DSL tcgen05 GEMM over the stacked Q/K/V weights (three TMA descriptors, 1- or 2-CTA MMA, double-buffered TMEM, TMA-store epilogue); tile plan by shape.","origin":"search agent (Claude)","result":{"public":true,"sol":0.726182,"speedup":1.8558}}},{"board":"L1","id":"056_mamba_ssm_dt_projection_softplus_clamp_backward","name":"Mamba SSM dt projection softplus clamp backward","group":"Backward pass","op":"Mamba dt projection + softplus + clamp backward","direction":"backward","model":"ibm-granite/granite-4.0-micro","workloads":16,"kernel":{"dir":"kernels/L1/056_mamba_ssm_dt_projection_softplus_clamp_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1062,"bytes":62720},{"path":"kernel.h","lines":6,"bytes":417},{"path":"main.cpp","lines":32,"bytes":1617}],"idea":"One memory-bound pass with packed bf16x2 math; per-head bias sums are reduced in a CTA cluster through DSMEM (small inputs) or with fixed-point 64-bit atomics.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.901713,"speedup":7.096}}},{"board":"L1","id":"057_mtp_shifted_embedding_with_dual_rms_norm_fusion","name":"MTP shifted embedding with dual RMS norm fusion","group":"Full decoder layers","op":"MTP input: shifted embedding + dual RMSNorm + concat + proj","direction":"forward","model":"inclusionAI/Ling-flash-2.0","workloads":16,"kernel":{"dir":"kernels/L1/057_mtp_shifted_embedding_with_dual_rms_norm_fusion","language":"CUDA C++","files":[{"path":"cutlass_gemm.cu","lines":197,"bytes":10458},{"path":"cutlass_gemm.h","lines":9,"bytes":617},{"path":"kernel.cu","lines":5144,"bytes":306456},{"path":"kernel.h","lines":103,"bytes":8618},{"path":"kernel_lo.cu","lines":699,"bytes":35645},{"path":"main.cpp","lines":808,"bytes":47685}],"idea":"By token count: a norm pre-pass then a skinny swap-AB tcgen05 GEMM or cuBLASLt; large counts run one persistent 2-SM tcgen05 GEMM whose extra warps do the norms.","origin":"search agent (Claude)","result":{"public":true,"sol":0.765936,"speedup":1.903}}},{"board":"L1","id":"058_moe_expert_token_radix_sort_with_prefix_sum","name":"MoE expert token radix sort with prefix sum","group":"MLP and MoE","op":"MoE token sort by expert (counting sort + prefix sum)","direction":"forward","model":"inclusionAI/Ling-mini-2.0","workloads":16,"kernel":{"dir":"kernels/L1/058_moe_expert_token_radix_sort_with_prefix_sum","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1424,"bytes":80339},{"path":"kernel.h","lines":3,"bytes":113},{"path":"main.cpp","lines":47,"bytes":2249}],"idea":"One cluster kernel with no grid sync: CTAs ballot-rank their own tile and count the rest, swap counts by DSMEM st.async, then scan and do a stable scatter.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.952815,"speedup":17.6012}}},{"board":"L1","id":"059_moe_group_score_aggregation_and_masking","name":"MoE group score aggregation and masking","group":"MLP and MoE","op":"MoE group-limited routing step: top-2 group sums, top-4 groups, mask","direction":"forward","model":"inclusionAI/Ling-mini-2.0","workloads":16,"kernel":{"dir":"kernels/L1/059_moe_group_score_aggregation_and_masking","language":"Triton","files":[{"path":"main.py","lines":596,"bytes":33961}],"idea":"One autotuned Triton kernel per token block: top-2 per group via packed 64-bit max reductions, group rank by pairwise compares, then masked scores and mask stored.","origin":"search agent (Claude)","result":{"public":true,"sol":0.860952,"speedup":5.1839}}},{"board":"L1","id":"060_fused_attention_qk_matmul_scale_mask_softmax_backward","name":"Fused attention QK matmul scale mask softmax backward","group":"Backward pass","op":"attention QK scale mask softmax backward","direction":"backward","model":"meta-llama/Llama-3.1-405B","workloads":16,"kernel":{"dir":"kernels/L1/060_fused_attention_qk_matmul_scale_mask_softmax_backward","language":"CUDA C++","files":[{"path":"fk.cuh","lines":1150,"bytes":72980},{"path":"inc.cuh","lines":2131,"bytes":114093},{"path":"kernel.cu","lines":740,"bytes":43273},{"path":"kernel.h","lines":10,"bytes":544},{"path":"main.cpp","lines":86,"bytes":5179},{"path":"pc.cuh","lines":1606,"bytes":94754},{"path":"pk.cuh","lines":159,"bytes":9278},{"path":"qc.cuh","lines":716,"bytes":38964},{"path":"solo.cuh","lines":1177,"bytes":73402},{"path":"solo2.cuh","lines":513,"bytes":30448}],"idea":"Fused warp-specialized tcgen05 kernels by key length: dS is built in smem from TMA tiles and feeds the dQ and dK MMAs; other shapes use two passes (dS, then GEMM).","origin":"search agent (Claude)","result":{"public":true,"sol":0.807747,"speedup":2.7368}}},{"board":"L1","id":"061_tanh_gated_residual_add_backward","name":"Tanh gated residual add backward","group":"Backward pass","op":"tanh-gated residual add backward","direction":"backward","model":"meta-llama/Llama-3.2-11B-Vision","workloads":16,"kernel":{"dir":"kernels/L1/061_tanh_gated_residual_add_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1425,"bytes":79871},{"path":"kernel.h","lines":5,"bytes":301},{"path":"main.cpp","lines":105,"bytes":5279}],"idea":"One fused memory-bound kernel: writes both tensor grads, reduces the gate grad with fixed-point atomics and a finishing CTA; big inputs use Cluster Launch Control work stealing.","origin":"search agent (Claude)","result":{"public":true,"sol":0.906641,"speedup":4.3607}}},{"board":"L1","id":"062_kv_cache_update_with_rope_backward","name":"KV cache update with RoPE backward","group":"Backward pass","op":"KV-cache update with RoPE backward","direction":"backward","model":"mistralai/Devstral-Small-2507","workloads":16,"kernel":{"dir":"kernels/L1/062_kv_cache_update_with_rope_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2057,"bytes":122479},{"path":"kernel.h","lines":6,"bytes":322},{"path":"main.cpp","lines":90,"bytes":6254}],"idea":"One memory-bound launch, kernel picked by cache size: plain rows stream through as 256-bit copies, written rows are gathered for the RoPE backward and head-summed cos/sin gradients.","origin":"search agent (Claude)","result":{"public":true,"sol":0.983012,"speedup":14.1645}}},{"board":"L1","id":"063_attention_output_reshape_and_projection","name":"Attention output reshape and projection","group":"Projections and GEMM","op":"attention output reshape + o_proj (heads*v_head_dim -> hidden)","direction":"forward","model":"moonshotai/Kimi-K2-Instruct-0905","workloads":16,"kernel":{"dir":"kernels/L1/063_attention_output_reshape_and_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8949,"bytes":514383},{"path":"kernel.h","lines":10,"bytes":664},{"path":"main.cpp","lines":38,"bytes":1984}],"idea":"tcgen05 GEMM with the head transpose folded into 3-D TMA loads; per-shape 2-SM persistent tile configs, or swap-AB split-K with a DSMEM reduce for few tokens.","origin":"search agent (Claude)","result":{"public":true,"sol":0.79395,"speedup":1.5364}}},{"board":"L1","id":"064_latent_kv_expansion_with_split","name":"Latent KV expansion with split","group":"Projections and GEMM","op":"MLA latent KV expansion: RMSNorm + kv_b_proj + split K_nope / V","direction":"forward","model":"moonshotai/Kimi-K2-Instruct-0905","workloads":16,"kernel":{"dir":"kernels/L1/064_latent_kv_expansion_with_split","language":"CuTe DSL","files":[{"path":"kvexp_cute.py","lines":4061,"bytes":233026}],"idea":"CuTe DSL: warp-per-row RMSNorm, then a PDL-overlapped persistent tcgen05 GEMM (2-CTA tiles, TMA) storing K and V in final layout; tiny inputs use one fused kernel.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.798737,"speedup":2.1096}}},{"board":"L1","id":"065_fused_statistics_projection_and_split","name":"Fused statistics projection and split","group":"Audio","op":"Conv1d stats projection + split (TTS)","direction":"forward","model":"myshell-ai/OpenVoice","workloads":16,"kernel":{"dir":"kernels/L1/065_fused_statistics_projection_and_split","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3859,"bytes":242344},{"path":"kernel.h","lines":25,"bytes":2454},{"path":"kernel_mma.cu","lines":1032,"bytes":58853},{"path":"main.cpp","lines":156,"bytes":10413}],"idea":"tcgen05 TF32 kernels, mostly persistent, by shape: each CTA keeps a slice of W in smem while TMA streams the input; small shapes use mma.sync.","origin":"search agent (Claude)","result":{"public":true,"sol":0.831881,"speedup":4.2795}}},{"board":"L1","id":"066_masked_softmax_with_attention_dropout_backward","name":"Masked softmax with attention dropout backward","group":"Backward pass","op":"masked softmax + dropout backward","direction":"backward","model":"myshell-ai/OpenVoice","workloads":16,"kernel":{"dir":"kernels/L1/066_masked_softmax_with_attention_dropout_backward","language":"CUDA C++","files":[{"path":"cta_body.h","lines":789,"bytes":41941},{"path":"kernel.cu","lines":750,"bytes":37426},{"path":"kernel.h","lines":6,"bytes":326},{"path":"launch_rec.h","lines":71,"bytes":3132},{"path":"lead_aot.cu","lines":5879,"bytes":114858},{"path":"main.cpp","lines":216,"bytes":11824},{"path":"ss_aot.cu","lines":3233,"bytes":68905},{"path":"ss_body.h","lines":3726,"bytes":174734}],"idea":"Memory-bound kernels built per row length: lanes (or a whole CTA for long rows) hold the row in registers via wide loads, reduce with shuffles, then stream out.","origin":"search agent (Claude)","result":{"public":true,"sol":0.777591,"speedup":3.4861}}},{"board":"L1","id":"067_flash_attention_gqa_ultralong","name":"Flash attention GQA ultralong","group":"Attention","op":"GQA attention block: QKV proj, RoPE, causal SDPA, o_proj (no QK-norm)","direction":"forward","model":"nvidia/Llama-3.1-Nemotron-8B-UltraLong-1M-Instruct","workloads":18,"kernel":{"dir":"kernels/L1/067_flash_attention_gqa_ultralong","language":"CUDA C++","files":[{"path":"attn_p.cu","lines":454,"bytes":23992},{"path":"attn_tc.cu","lines":415,"bytes":22152},{"path":"cog/sm100_gemm_prefetchb.hpp","lines":1081,"bytes":50510},{"path":"gemm.cu","lines":248,"bytes":14680},{"path":"gemm_tf32.cu","lines":223,"bytes":11350},{"path":"gemm_ws16.cu","lines":298,"bytes":15672},{"path":"kernel.cu","lines":336,"bytes":16339},{"path":"kernel.h","lines":50,"bytes":3581},{"path":"main.cpp","lines":204,"bytes":11705},{"path":"s_attn_tc.cu","lines":601,"bytes":29485},{"path":"s_gemm.cu","lines":312,"bytes":18405},{"path":"s_kernel.cu","lines":182,"bytes":9501},{"path":"s_kernel.h","lines":65,"bytes":4339},{"path":"v_attn_tc.cu","lines":766,"bytes":37343},{"path":"v_gemm.cu","lines":423,"bytes":27702},{"path":"v_kernel.cu","lines":183,"bytes":9629},{"path":"v_kernel.h","lines":70,"bytes":4857},{"path":"v_main.inc","lines":146,"bytes":9346},{"path":"v_wsgemm.cu","lines":347,"bytes":18103}],"idea":"By length: fp16 tcgen05 QKV GEMM with RoPE, FA4-style causal attention where two Q heads share each K/V tile, then the O GEMM, PDL-chained.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.648559,"speedup":1.58}}},{"board":"L1","id":"068_fused_rope_application_backward","name":"Fused RoPE application backward","group":"Backward pass","op":"RoPE application backward","direction":"backward","model":"nvidia/Llama-3.1-Nemotron-8B-UltraLong-1M-Instruct","workloads":16,"kernel":{"dir":"kernels/L1/068_fused_rope_application_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1619,"bytes":99877},{"path":"main.cpp","lines":88,"bytes":5685}],"idea":"Memory-bound pass per position: a cp.async ring over heads rotates the q/k grads back and sums cos/sin grads in registers; launch config from a per-shape table","origin":"search agent (Claude)","result":{"public":true,"sol":0.842411,"speedup":2.5378}}},{"board":"L1","id":"069_rms_norm","name":"RMS norm","group":"Normalization","op":"residual add + RMSNorm (returns the normed output only)","direction":"forward","model":"nvidia/Llama-3.3-Nemotron-70B-Select","workloads":16,"kernel":{"dir":"kernels/L1/069_rms_norm","language":"Triton + CuTe DSL","files":[{"path":"main.py","lines":779,"bytes":44259}],"idea":"CuTe DSL, kernel by row count: one row per CTA, packed bf16x2 math, PDL; few rows split each row over a 2-CTA cluster summing via DSMEM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.8439,"speedup":2.1215}}},{"board":"L1","id":"070_mamba2_fused_intra_chunk_diagonal_computation","name":"Mamba2 fused intra chunk diagonal computation","group":"State space and conv","op":"Mamba2 SSD intra-chunk diagonal block","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8","workloads":14,"kernel":{"dir":"kernels/L1/070_mamba2_fused_intra_chunk_diagonal_computation","language":"CUDA C++","files":[{"path":"etime.h","lines":17,"bytes":877},{"path":"k2h.cu","lines":906,"bytes":50043},{"path":"kernel.cu","lines":1189,"bytes":68800},{"path":"kernel.h","lines":155,"bytes":9078},{"path":"khalf.cu","lines":196,"bytes":11081},{"path":"khalf_dev.h","lines":519,"bytes":30460},{"path":"kpipe.cu","lines":1207,"bytes":73172},{"path":"main.cpp","lines":270,"bytes":10282},{"path":"ovl.h","lines":23,"bytes":1582}],"idea":"Two chained tcgen05 MMAs per chunk and head: C B^T into TMEM, causal decay applied in registers, then times X; many tiles use a persistent warp-specialized pipeline.","origin":"search agent (Claude)","result":{"public":true,"sol":0.922074,"speedup":6.8325}}},{"board":"L1","id":"071_kv_cache_update_with_rope","name":"KV cache update with RoPE","group":"Attention","op":"KV-cache update with RoPE on K","direction":"forward","model":"nvidia/Phi-4-reasoning-plus-NVFP4","workloads":16,"kernel":{"dir":"kernels/L1/071_kv_cache_update_with_rope","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2221,"bytes":123756},{"path":"kernel.h","lines":5,"bytes":288},{"path":"main.cpp","lines":128,"bytes":7172}],"idea":"Memory-bound kernels picked by shape: wide 16- or 32-byte copies of the old cache, RoPE on the new keys in packed bf16 math; replayed through CUDA graphs.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.945376,"speedup":9.5273}}},{"board":"L1","id":"072_cross_attention_qkv_projection_with_gqa_repeat_backward","name":"Cross attention QKV projection with GQA repeat backward","group":"Backward pass","op":"cross-attention QKV + GQA repeat backward","direction":"backward","model":"nvidia/parakeet-tdt-0.6b-v3","workloads":16,"kernel":{"dir":"kernels/L1/072_cross_attention_qkv_projection_with_gqa_repeat_backward","language":"CUDA C++","files":[{"path":"fused.cu","lines":2418,"bytes":147804},{"path":"kernel.cu","lines":1894,"bytes":100343},{"path":"kernel.h","lines":120,"bytes":8459},{"path":"main.cpp","lines":809,"bytes":46796}],"idea":"fp32 inputs staged as scaled fp16 (GQA grads summed) plus a block-mean correction term; one grouped 2-CTA tcgen05 GEMM computes all four products; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.766823,"speedup":2.3931}}},{"board":"L1","id":"073_fused_encoder_final_norm_to_decoder_cross_attention_kv_projection","name":"Fused encoder final norm to decoder cross attention KV projection","group":"Audio","op":"encoder final RMSNorm + cross-attention K/V projection","direction":"forward","model":"nvidia/parakeet-tdt-0.6b-v3","workloads":16,"kernel":{"dir":"kernels/L1/073_fused_encoder_final_norm_to_decoder_cross_attention_kv_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5466,"bytes":320931},{"path":"kernel.h","lines":6,"bytes":330},{"path":"main.cpp","lines":32,"bytes":1848}],"idea":"Many tokens: norm weight folded into the stacked K/V weights, TMA + tcgen05 GEMM on raw x, row RMS scale in the epilogue; fewer tokens: mma.sync kernels","origin":"search agent (Claude)","result":{"public":true,"sol":0.920341,"speedup":5.6565}}},{"board":"L1","id":"074_fused_gated_mlp_silu","name":"Fused gated MLP SiLU","group":"MLP and MoE","op":"gated MLP: fused gate_up GEMM + SiLU*up + down","direction":"forward","model":"nvidia/parakeet-tdt-0.6b-v3","workloads":16,"kernel":{"dir":"kernels/L1/074_fused_gated_mlp_silu","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3264,"bytes":208314},{"path":"main.cpp","lines":8,"bytes":625}],"idea":"A prep kernel casts to fp16 with exact power-of-two scales; one persistent 2-SM tcgen05 kernel runs gate/up (SiLU*up epilogue) then down, linked by flags.","origin":"search agent (Claude)","result":{"public":true,"sol":0.773138,"speedup":2.1132}}},{"board":"L1","id":"075_grouped_query_self_attention_with_rope","name":"Grouped query self attention with RoPE","group":"Audio","op":"GQA self-attention block with RoPE (encoder / decoder)","direction":"forward","model":"nvidia/parakeet-tdt-0.6b-v3","workloads":16,"kernel":{"dir":"kernels/L1/075_grouped_query_self_attention_with_rope","language":"CUDA C++","files":[{"path":"attn.cu","lines":2153,"bytes":112321},{"path":"gemm2sm.cu","lines":354,"bytes":18014},{"path":"kernel.cu","lines":142,"bytes":7603},{"path":"kernel.h","lines":73,"bytes":7134},{"path":"main.cpp","lines":1126,"bytes":59850},{"path":"oproj_cfg15.cu","lines":8,"bytes":607},{"path":"oproj_cfg18.cu","lines":10,"bytes":739},{"path":"oproj_cfg19.cu","lines":13,"bytes":567},{"path":"oproj_cfg20.cu","lines":7,"bytes":487},{"path":"oproj_cfg21.cu","lines":27,"bytes":1827},{"path":"oproj_cfg9.cu","lines":13,"bytes":595},{"path":"qkv_cfg14.cu","lines":12,"bytes":712},{"path":"qkv_cfg15.cu","lines":12,"bytes":686},{"path":"qkv_cfg22.cu","lines":12,"bytes":616},{"path":"qkv_cfg24.cu","lines":12,"bytes":767},{"path":"qkv_cfg7.cu","lines":12,"bytes":651},{"path":"qkv_cfg8.cu","lines":12,"bytes":612},{"path":"qkv_common.h","lines":496,"bytes":29090},{"path":"qkv_decl.h","lines":16,"bytes":856},{"path":"qkvh.cu","lines":452,"bytes":25311},{"path":"sattn.cu","lines":252,"bytes":12030},{"path":"sp.cu","lines":2828,"bytes":157113},{"path":"sp64.cu","lines":649,"bytes":35834},{"path":"sp64l.cu","lines":654,"bytes":36326},{"path":"spk64.cu","lines":1064,"bytes":61340},{"path":"split.cu","lines":606,"bytes":31439},{"path":"tmem_ops.h","lines":31,"bytes":4288}],"idea":"Four PDL kernels in a CUDA graph: fp16 cast + cos/sin prep, CUTLASS QKV GEMM with fused RoPE epilogue, tcgen05 attention picked by shape, CUTLASS output GEMM.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.850835,"speedup":5.053}}},{"board":"L1","id":"076_batched_expert_forward","name":"Batched expert forward","group":"MLP and MoE","op":"gpt-oss experts: gate_up + clamped SwiGLU (alpha, limit) + down, dense over all experts","direction":"forward","model":"openai/gpt-oss-120b","workloads":14,"kernel":{"dir":"kernels/L1/076_batched_expert_forward","language":"CUDA C++","files":[{"path":"bk.h","lines":9,"bytes":543},{"path":"bk_gemm.cu","lines":665,"bytes":32876},{"path":"dn16_gemm.cu","lines":398,"bytes":20326},{"path":"down_gemm.cu","lines":110,"bytes":4999},{"path":"f35.h","lines":23,"bytes":1333},{"path":"f35_gemm.cu","lines":806,"bytes":43596},{"path":"fused_conv_gemm.cu","lines":1413,"bytes":89920},{"path":"glu_gemm.cu","lines":286,"bytes":15452},{"path":"kernel.cu","lines":656,"bytes":32564},{"path":"kernel.h","lines":169,"bytes":12127},{"path":"main.cpp","lines":1346,"bytes":73512},{"path":"tf32_glu_gemm.cu","lines":204,"bytes":9803},{"path":"tf32a_gemm.cu","lines":640,"bytes":33128},{"path":"tmema_gemm.cu","lines":1845,"bytes":112664}],"idea":"Per-size tcgen05 GEMMs on the fp32 weights (TF32, or converted to fp16 on the fly); the gate_up epilogue fuses bias, clamped SwiGLU and routing weight; CUDA graph replay.","origin":"search agent (Claude)","result":{"public":true,"sol":0.867062,"speedup":3.1363}}},{"board":"L1","id":"077_whisper_decoder_output_projection","name":"Whisper decoder output projection","group":"Projections and GEMM","op":"Whisper LM head GEMM","direction":"forward","model":"openai/whisper-large-v3","workloads":16,"kernel":{"dir":"kernels/L1/077_whisper_decoder_output_projection","language":"CUDA C++","files":[{"path":"cfg.h","lines":330,"bytes":18100},{"path":"cfg2.h","lines":406,"bytes":23185},{"path":"g8.cu","lines":272,"bytes":12379},{"path":"gemv.cu","lines":303,"bytes":13532},{"path":"gemv3d.cu","lines":557,"bytes":27862},{"path":"k_huge.cu","lines":82,"bytes":4661},{"path":"k_large.cu","lines":7,"bytes":388},{"path":"k_mid.cu","lines":12,"bytes":729},{"path":"k_small.cu","lines":10,"bytes":537},{"path":"k_split.cu","lines":65,"bytes":3500},{"path":"k_v128.cu","lines":8,"bytes":509},{"path":"kernel.cu","lines":77,"bytes":3661},{"path":"kernel.h","lines":13,"bytes":731},{"path":"kraster.cu","lines":119,"bytes":6937},{"path":"main.cpp","lines":35,"bytes":1757}],"idea":"By token count: tiny batches use an mma.sync GEMV fed by bulk/TMA copies with work stealing; others use CUTLASS 2-SM tcgen05 swap-AB GEMMs with L2 hints.","origin":"search agent (Claude)","result":{"public":true,"sol":0.737958,"speedup":1.6383}}},{"board":"L1","id":"078_group_norm_fusion","name":"Group norm fusion","group":"Image and video","op":"GroupNorm (SD UNet)","direction":"forward","model":"runwayml/stable-diffusion-v1-5","workloads":16,"kernel":{"dir":"kernels/L1/078_group_norm_fusion","language":"CUDA C++","files":[{"path":"gn_chan.cu","lines":161,"bytes":10136},{"path":"gn_clc.cuh","lines":241,"bytes":11279},{"path":"gn_clc_00.cu","lines":16,"bytes":860},{"path":"gn_common.cuh","lines":1520,"bytes":79128},{"path":"gn_fixed.cuh","lines":2943,"bytes":172432},{"path":"gn_fixed_00.cu","lines":9,"bytes":647},{"path":"gn_fixed_01.cu","lines":4,"bytes":194},{"path":"gn_fixed_02.cu","lines":4,"bytes":194},{"path":"gn_fixed_03.cu","lines":4,"bytes":193},{"path":"gn_fixed_04.cu","lines":4,"bytes":193},{"path":"gn_fixed_05.cu","lines":4,"bytes":193},{"path":"gn_fixed_06.cu","lines":4,"bytes":192},{"path":"gn_fixed_07.cu","lines":4,"bytes":192},{"path":"gn_fixed_08.cu","lines":4,"bytes":193},{"path":"gn_fixed_09.cu","lines":4,"bytes":193},{"path":"gn_fixed_10.cu","lines":4,"bytes":196},{"path":"gn_fixed_11.cu","lines":4,"bytes":196},{"path":"gn_fixed_12.cu","lines":4,"bytes":195},{"path":"gn_fixed_13.cu","lines":4,"bytes":195},{"path":"gn_fixed_14.cu","lines":4,"bytes":195},{"path":"gn_fixed_15.cu","lines":4,"bytes":196},{"path":"gn_fixed_16.cu","lines":4,"bytes":196},{"path":"gn_fixed_17.cu","lines":4,"bytes":196},{"path":"gn_fixed_18.cu","lines":4,"bytes":195},{"path":"gn_fixed_19.cu","lines":4,"bytes":195},{"path":"gn_fixed_20.cu","lines":7,"bytes":198},{"path":"gn_fixed_21.cu","lines":4,"bytes":196},{"path":"gn_fixed_22.cu","lines":4,"bytes":196},{"path":"gn_fixed_23.cu","lines":4,"bytes":196},{"path":"gn_fixed_24.cu","lines":4,"bytes":196},{"path":"gn_fixed_25.cu","lines":4,"bytes":196},{"path":"gn_fixed_26.cu","lines":4,"bytes":196},{"path":"gn_fixed_27.cu","lines":4,"bytes":196},{"path":"gn_fixed_28.cu","lines":4,"bytes":196},{"path":"gn_fixed_29.cu","lines":4,"bytes":196},{"path":"gn_fixed_30.cu","lines":4,"bytes":196},{"path":"gn_fixed_31.cu","lines":17,"bytes":761},{"path":"gn_fixed_32.cu","lines":4,"bytes":197},{"path":"gn_fixed_33.cu","lines":30,"bytes":1285},{"path":"gn_fixed_34.cu","lines":4,"bytes":200},{"path":"gn_fixed_35.cu","lines":4,"bytes":194},{"path":"gn_fixed_36.cu","lines":4,"bytes":203},{"path":"gn_fixed_37.cu","lines":4,"bytes":183},{"path":"gn_fixed_38.cu","lines":3,"bytes":144},{"path":"gn_fixed_39.cu","lines":3,"bytes":127},{"path":"gn_fixed_40.cu","lines":3,"bytes":142},{"path":"gn_fixed_41.cu","lines":3,"bytes":154},{"path":"gn_fixed_42.cu","lines":2,"bytes":52},{"path":"gn_fixed_43.cu","lines":2,"bytes":52},{"path":"gn_fixed_44.cu","lines":2,"bytes":52},{"path":"gn_fixed_45.cu","lines":2,"bytes":52},{"path":"gn_fixed_46.cu","lines":2,"bytes":52},{"path":"gn_fixed_host.h","lines":483,"bytes":21374},{"path":"gn_fixed_w7.cuh","lines":2715,"bytes":156276},{"path":"gn_fxlist.h","lines":100,"bytes":2903},{"path":"gn_gpi.cuh","lines":196,"bytes":9051},{"path":"gn_gq.cu","lines":185,"bytes":1691},{"path":"gn_gq.cuh","lines":714,"bytes":41080},{"path":"gn_ldiag.cu","lines":10,"bytes":299},{"path":"gn_prt.cuh","lines":11,"bytes":843},{"path":"gn_prt_03.cu","lines":18,"bytes":1258},{"path":"gn_rdn.cu","lines":223,"bytes":12518},{"path":"gn_rows3_05.cu","lines":10,"bytes":169},{"path":"gn_rows3s_05.cu","lines":3,"bytes":143},{"path":"gn_rows_14.cu","lines":4,"bytes":218},{"path":"gn_rows_44.cu","lines":4,"bytes":218},{"path":"gn_small.cuh","lines":250,"bytes":12835},{"path":"gn_small_00.cu","lines":7,"bytes":253},{"path":"gn_small_01.cu","lines":3,"bytes":121},{"path":"gn_small_02.cu","lines":3,"bytes":125},{"path":"gn_small_03.cu","lines":3,"bytes":121},{"path":"gn_split.cuh","lines":165,"bytes":7276},{"path":"gn_split_00.cu","lines":11,"bytes":560},{"path":"gn_topo.cu","lines":15,"bytes":565},{"path":"gn_wpg.cuh","lines":164,"bytes":8140},{"path":"kernel.cu","lines":728,"bytes":38678},{"path":"kernel.h","lines":43,"bytes":1119},{"path":"main.cpp","lines":71,"bytes":3679}],"idea":"One pass: each group split over a CTA cluster, x kept on chip, partial sums pushed to peers via DSMEM, then normalize + affine; per-shape kernels.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.893736,"speedup":6.3361}}},{"board":"L1","id":"079_ImageNet_83.6_ssm_output_projection_gate_multiply_backward","name":"ImageNet 83.6 SSM output projection gate multiply backward","group":"Backward pass","op":"SSM output projection gate multiply backward","direction":"backward","model":"saurabhati/VMamba","workloads":16,"kernel":{"dir":"kernels/L1/079_ImageNet_83.6_ssm_output_projection_gate_multiply_backward","language":"CUDA C++","files":[{"path":"cutdw.cu","lines":101,"bytes":5197},{"path":"kernel.cu","lines":8288,"bytes":484504},{"path":"kernel.h","lines":182,"bytes":12100},{"path":"main.cpp","lines":584,"bytes":37302},{"path":"tiny_impl.cuh","lines":797,"bytes":45489}],"idea":"tcgen05 GEMM for the input grad with the gate backward fused in its epilogue, alongside a split-K tcgen05 weight-grad GEMM with DSMEM reduce; schedule picked by M.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.784682,"speedup":2.8658}}},{"board":"L1","id":"080_adaptive_layernorm_continuous_with_modulation","name":"Adaptive LayerNorm continuous with modulation","group":"Image and video","op":"SD3.5 AdaLayerNormContinuous","direction":"forward","model":"stabilityai/stable-diffusion-3.5-large","workloads":16,"kernel":{"dir":"kernels/L1/080_adaptive_layernorm_continuous_with_modulation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5919,"bytes":321701},{"path":"main.cpp","lines":414,"bytes":25593}],"idea":"CUDA graph of two PDL kernels: a split-K GEMV for scale and shift (FP32 FFMA, or 3xTF32 tensor cores at larger batch), then a streaming LayerNorm + modulate pass.","origin":"search agent (Claude)","result":{"public":true,"sol":0.823055,"speedup":4.0055}}},{"board":"L1","id":"081_joint_attention_context_projection","name":"Joint attention context projection","group":"Image and video","op":"SD3.5 joint-attention context projection","direction":"forward","model":"stabilityai/stable-diffusion-3.5-large","workloads":16,"kernel":{"dir":"kernels/L1/081_joint_attention_context_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1916,"bytes":118055},{"path":"kernel.h","lines":4,"bytes":156},{"path":"main.cpp","lines":7,"bytes":320}],"idea":"Prep kernel adds the two halves of W (halving K) and casts to fp16; then CUTLASS tcgen05 or cuBLASLt GEMMs with bias, picked per shape.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.970168,"speedup":19.8852}}},{"board":"L1","id":"082_qk_norm_scaled_dot_product_attention","name":"QK norm scaled dot product attention","group":"Image and video","op":"SD3.5 QK-LayerNorm SDPA","direction":"forward","model":"stabilityai/stable-diffusion-3.5-medium","workloads":16,"kernel":{"dir":"kernels/L1/082_qk_norm_scaled_dot_product_attention","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8876,"bytes":480644},{"path":"kernel.h","lines":92,"bytes":6998},{"path":"main.cpp","lines":802,"bytes":45638},{"path":"precise.cu","lines":138,"bytes":6105}],"idea":"tcgen05 QKV GEMM (TF32 or fp16 by size) with Q/K LayerNorm in the epilogue, shape-picked tcgen05 flash attention, then the out GEMM; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.873338,"speedup":5.141}}},{"board":"L1","id":"083_attention_score_value_matmul","name":"Attention score value matmul","group":"Image and video","op":"SDXL attention weights @ V","direction":"forward","model":"stabilityai/stable-diffusion-xl-base-1.0","workloads":16,"kernel":{"dir":"kernels/L1/083_attention_score_value_matmul","language":"CUDA C++","files":[{"path":"fastdiv.h","lines":22,"bytes":819},{"path":"kernel.cu","lines":2905,"bytes":171530},{"path":"kernel.h","lines":59,"bytes":4932},{"path":"main.cpp","lines":163,"bytes":7425},{"path":"tcs.cu","lines":220,"bytes":12915},{"path":"umma.cu","lines":1686,"bytes":105188},{"path":"uni.cu","lines":594,"bytes":36236}],"idea":"By shape: TMA-fed tcgen05 kernels for large and short-K cases, TMA or cp.async mma.sync kernels for the rest; heads stored straight into the merged layout.","origin":"search agent (Claude)","result":{"public":true,"sol":0.831514,"speedup":3.4122}}},{"board":"L1","id":"084_silu_activation_backward","name":"SiLU activation backward","group":"Backward pass","op":"SiLU backward","direction":"backward","model":"stabilityai/stable-diffusion-xl-base-1.0","workloads":16,"kernel":{"dir":"kernels/L1/084_silu_activation_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":536,"bytes":37214},{"path":"kernel.h","lines":4,"bytes":169},{"path":"main.cpp","lines":16,"bytes":952}],"idea":"Elementwise kernel: float4 loads with L2 cache-policy hints, block and cluster shape picked per tensor size; each call runs as a one-node CUDA graph","origin":"search agent (Claude)","result":{"public":true,"sol":0.54333,"speedup":1.1514}}},{"board":"L1","id":"085_geglu_activation","name":"GEGLU activation","group":"Image and video","op":"GEGLU activation","direction":"forward","model":"stabilityai/stable-diffusion-xl-refiner-1.0","workloads":16,"kernel":{"dir":"kernels/L1/085_geglu_activation","language":"Triton","files":[{"path":"main.py","lines":552,"bytes":24694}],"idea":"One Triton elementwise kernel: vector loads of both halves with L2 hints, GELU via inline-PTX tanh.approx, multiply, store; load split and grid picked by row count.","origin":"search agent (Claude)","result":{"public":true,"sol":0.671218,"speedup":1.8672}}},{"board":"L1","id":"086_sam_hq_mask_decoder_iou_hypernetwork_fusion","name":"SAM hq mask decoder IoU hypernetwork fusion","group":"Image and video","op":"SAM-HQ IoU head + hypernetwork MLPs","direction":"forward","model":"syscv-community/sam-hq-vit-base","workloads":16,"kernel":{"dir":"kernels/L1/086_sam_hq_mask_decoder_iou_hypernetwork_fusion","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2008,"bytes":114545},{"path":"kernel.h","lines":11,"bytes":607},{"path":"main.cpp","lines":117,"bytes":6365}],"idea":"Two PDL-chained mma.sync kernels run all MLPs at once: layer 1, then layer 2 fused with layer 3 (red.add into the outputs); launched as a CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.959724,"speedup":22.6061}}},{"board":"L1","id":"087_embedding_with_initial_layernorm_backward","name":"Embedding with initial LayerNorm backward","group":"Backward pass","op":"embedding + LayerNorm backward","direction":"backward","model":"taozi555/jamba-mini-1.7-rp","workloads":16,"kernel":{"dir":"kernels/L1/087_embedding_with_initial_layernorm_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2199,"bytes":141281},{"path":"kernel.h","lines":23,"bytes":2204},{"path":"main.cpp","lines":290,"bytes":18639}],"idea":"Reuses a pooled output buffer, zeroing only rows no longer hit; CTA roles: norm-weight grad, token rows, duplicate merge; big batches: id chains + persistent kernel.","origin":"search agent (Claude)","result":{"public":true,"sol":0.916262,"speedup":6.6584}}},{"board":"L1","id":"088_rotary_position_embedding_application","name":"Rotary position embedding application","group":"Image and video","op":"RoPE application to Q/K (HunyuanImage)","direction":"forward","model":"tencent/HunyuanImage-2.1","workloads":16,"kernel":{"dir":"kernels/L1/088_rotary_position_embedding_application","language":"CUDA C++","files":[{"path":"kernel.cu","lines":764,"bytes":48745},{"path":"main.cpp","lines":127,"bytes":7002}],"idea":"A memory-bound kernel picked by row count; tiled versions reuse each cos/sin row across heads; L2 cache hints on loads and stores; cached CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.678157,"speedup":1.7036}}},{"board":"L1","id":"089_vae_attention_block_with_groupnorm","name":"VAE attention block with GroupNorm","group":"Image and video","op":"VAE attention block with GroupNorm","direction":"forward","model":"tencent/HunyuanImage-2.1","workloads":16,"kernel":{"dir":"kernels/L1/089_vae_attention_block_with_groupnorm","language":"CUDA C++","files":[{"path":"blk_epi.hpp","lines":1416,"bytes":73068},{"path":"blk_mma.hpp","lines":720,"bytes":33360},{"path":"calvars.inc","lines":10,"bytes":257},{"path":"gemms.cu","lines":1048,"bytes":61629},{"path":"gemms.h","lines":14,"bytes":1037},{"path":"kernel.cu","lines":882,"bytes":47850},{"path":"kernel.h","lines":5,"bytes":291},{"path":"main.cpp","lines":7,"bytes":422},{"path":"megapv.cu","lines":416,"bytes":23752},{"path":"megapv.h","lines":14,"bytes":811},{"path":"precise.cu","lines":188,"bytes":9122},{"path":"precise.h","lines":14,"bytes":809},{"path":"precise_det.cuh","lines":88,"bytes":3891}],"idea":"Folds Wk^T Wq and Wo Wv so keys and values are the normed input; then CUTLASS-built tcgen05 GEMMs for Q/V, exp2 scores and P @ V; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.893838,"speedup":3.2043}}},{"board":"L1","id":"090_batched_2d_rope_position_encoding_backward","name":"Batched 2D RoPE position encoding backward","group":"Backward pass","op":"batched 2D RoPE backward","direction":"backward","model":"tencent/HunyuanImage-3.0","workloads":16,"kernel":{"dir":"kernels/L1/090_batched_2d_rope_position_encoding_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":454,"bytes":24077},{"path":"kernel.h","lines":5,"bytes":191},{"path":"main.cpp","lines":27,"bytes":1755}],"idea":"Memory-bound elementwise kernel: vector loads, fast range-reduced MUFU sin/cos with an exact fallback for huge or invalid angles; block shape and L2 policy by size.","origin":"search agent (Claude)","result":{"public":true,"sol":0.897597,"speedup":6.6417}}},{"board":"L1","id":"091_fused_gqa_qkv_rope_qk_norm_backward","name":"Fused GQA QKV RoPE QK norm backward","group":"Backward pass","op":"fused GQA QKV + RoPE + QK-norm backward","direction":"backward","model":"tencent/HunyuanImage-3.0","workloads":16,"kernel":{"dir":"kernels/L1/091_fused_gqa_qkv_rope_qk_norm_backward","language":"CUDA C++","files":[{"path":"fused_dw.h","lines":367,"bytes":22542},{"path":"kernel.cu","lines":2694,"bytes":165917},{"path":"kernel.h","lines":31,"bytes":1219},{"path":"main.cpp","lines":71,"bytes":4066}],"idea":"A row kernel backprops through RoPE and QK-RMSNorm into one packed QKV grad; CUTLASS tcgen05 GEMMs give input and weight grads, as one persistent kernel when large","origin":"search agent (Claude)","result":{"public":true,"sol":0.957923,"speedup":10.3942}}},{"board":"L1","id":"092_gqa_attention_with_qk_norm","name":"GQA attention with QK norm","group":"Attention","op":"GQA attention block: QKV proj (bias), QK-RMSNorm, RoPE, causal, o_proj","direction":"forward","model":"zai-org/GLM-4.5-Air","workloads":16,"kernel":{"dir":"kernels/L1/092_gqa_attention_with_qk_norm","language":"CUDA C++","files":[{"path":"attn.cu","lines":105,"bytes":6326},{"path":"attn2.cu","lines":1555,"bytes":96491},{"path":"fused.cu","lines":824,"bytes":40910},{"path":"kernel.cu","lines":1711,"bytes":103108},{"path":"kernel.h","lines":147,"bytes":9462},{"path":"main.cpp","lines":178,"bytes":8104},{"path":"oproj.cu","lines":252,"bytes":13552},{"path":"oproj_gemm.cu","lines":770,"bytes":45774},{"path":"oproj_tc.cu","lines":786,"bytes":45288},{"path":"pref.h","lines":59,"bytes":3350},{"path":"qkv_wide.cu","lines":723,"bytes":45515}],"idea":"Persistent 2-CTA tcgen05 QKV GEMM with bias, QK-RMSNorm and RoPE in the epilogue, flash-style tcgen05 causal attention, then the output GEMM; short sequences fuse QKV and attention.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.709258,"speedup":1.4579}}},{"board":"L1","id":"093_grouped_topk_moe_routing_backward","name":"Grouped topk MoE routing backward","group":"Backward pass","op":"grouped top-k MoE routing backward","direction":"backward","model":"zai-org/GLM-4.7","workloads":16,"kernel":{"dir":"kernels/L1/093_grouped_topk_moe_routing_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":7430,"bytes":468988},{"path":"kernel.h","lines":13,"bytes":781},{"path":"main.cpp","lines":321,"bytes":19786}],"idea":"A small kernel builds the logit gradient G; one fused tcgen05 kernel computes both G @ W and G^T @ H from a shared tile pool; CUDA graph replay.","origin":"search agent (Claude)","result":{"public":true,"sol":0.867098,"speedup":5.0793}}},{"board":"L1","id":"094_time_decay_exponential_stabilization","name":"Time decay exponential stabilization","group":"Other","op":"RWKV time-decay exponent with stabilisation","direction":"forward","model":"zhiyuan8/RWKV-v7-1.5B-G1-GGUF","workloads":16,"kernel":{"dir":"kernels/L1/094_time_decay_exponential_stabilization","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2074,"bytes":115900},{"path":"main.cpp","lines":44,"bytes":2961}],"idea":"By size: many channels get one thread each over the whole sequence with a cp.async ring; few channels split time into chunks, merge chunk states, then recompute outputs.","origin":"search agent (Claude)","result":{"public":true,"sol":0.999111,"speedup":1062.1457}}},{"board":"L2","id":"001_fused_vision_multihead_attention_with_norms_backward","name":"Fused vision multihead attention with norms backward","group":"Backward pass","op":"vision MHA with norms backward","direction":"backward","model":"1024m/Molmo-7B-D-Base","workloads":16,"kernel":{"dir":"kernels/L2/001_fused_vision_multihead_attention_with_norms_backward","language":"CUDA C++","files":[{"path":"attn_deep.cuh","lines":788,"bytes":48997},{"path":"attn_tc_body.inc","lines":1298,"bytes":84825},{"path":"dgrad.cu","lines":1569,"bytes":97657},{"path":"fp16.cu","lines":964,"bytes":55840},{"path":"kernel.cu","lines":1578,"bytes":100104},{"path":"kernel.h","lines":228,"bytes":19111},{"path":"main.cpp","lines":1300,"bytes":84623},{"path":"pdl.h","lines":70,"bytes":3615},{"path":"probe.h","lines":68,"bytes":3127},{"path":"rec.h","lines":28,"bytes":1438},{"path":"wgrad.cu","lines":1027,"bytes":63434}],"idea":"Split-fp16 (hi + lo) custom 2-SM tcgen05 GEMMs for near-FP32 results, a cluster-per-head tcgen05 attention backward, a fused LayerNorm backward; replayed as one multi-stream CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.936556,"speedup":11.8848}}},{"board":"L2","id":"002_decoder_layer_full_block","name":"Decoder layer full block","group":"Full decoder layers","op":"Llama decoder layer: RMSNorm, GQA + RoPE, residual, RMSNorm, SwiGLU MLP, residual","direction":"forward","model":"NousResearch/DeepHermes-3-Llama-3-8B-Preview","workloads":18,"kernel":{"dir":"kernels/L2/002_decoder_layer_full_block","language":"CUDA C++","files":[{"path":"cutlass_gemm.cu","lines":71,"bytes":4226},{"path":"cutlass_gemm.h","lines":5,"bytes":438},{"path":"gu_tmem.cu","lines":1282,"bytes":73790},{"path":"gu_tmem.h","lines":56,"bytes":5012},{"path":"kernel.cu","lines":1263,"bytes":67447},{"path":"kernel.h","lines":46,"bytes":4720},{"path":"kernel2.cu","lines":395,"bytes":19158},{"path":"kernel2.h","lines":30,"bytes":2463},{"path":"kernel3.cu","lines":1010,"bytes":56774},{"path":"kernel3.h","lines":26,"bytes":2274},{"path":"main.cpp","lines":1252,"bytes":90817},{"path":"probe_sm.h","lines":18,"bytes":1052},{"path":"tc_gemm.cu","lines":1458,"bytes":88734},{"path":"tc_gemm.h","lines":48,"bytes":4881},{"path":"tmap_cache.h","lines":28,"bytes":1974},{"path":"ws_gemm.cu","lines":1839,"bytes":116592},{"path":"ws_gemm.h","lines":72,"bytes":6547}],"idea":"By token count: few tokens use weight-streaming tcgen05 GEMMs that convert fp32 weights to fp16 in smem, PDL-chained; many tokens use fp16 GEMMs and a tcgen05 flash attention.","origin":"search agent (Claude)","result":{"public":true,"sol":0.596572,"speedup":1.2621}}},{"board":"L2","id":"003_grouped_query_attention_with_rope_backward","name":"Grouped query attention with RoPE backward","group":"Backward pass","op":"GQA attention with RoPE backward","direction":"backward","model":"NousResearch/DeepHermes-3-Mistral-24B-Preview","workloads":16,"kernel":{"dir":"kernels/L2/003_grouped_query_attention_with_rope_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":12355,"bytes":679756},{"path":"kernel.h","lines":142,"bytes":11827},{"path":"main.cpp","lines":2601,"bytes":150357}],"idea":"Custom tcgen05 chain: dK/dV with GQA group sum + inverse RoPE fused, dQ, then the input-grad GEMM; weight grads on side streams; PDL and a CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.796833,"speedup":2.4869}}},{"board":"L2","id":"004_fused_residual_rms_mlp","name":"Fused residual RMS MLP","group":"MLP and MoE","op":"residual + RMSNorm + SwiGLU MLP","direction":"forward","model":"NousResearch/Hermes-4-405B","workloads":16,"kernel":{"dir":"kernels/L2/004_fused_residual_rms_mlp","language":"CuTe DSL","files":[{"path":"main.py","lines":4133,"bytes":253922}],"idea":"CuTe DSL: RMSNorm kernel, persistent 2-CTA tcgen05 gate/up GEMM with SwiGLU fused in the epilogue, then a split-K down GEMM; dynamic tile scheduler; CUDA graph replay.","origin":"search agent (Claude)","result":{"public":true,"sol":0.706436,"speedup":1.2177}}},{"board":"L2","id":"005_swiglu_mlp_backward","name":"SwiGLU MLP backward","group":"Backward pass","op":"SwiGLU MLP backward","direction":"backward","model":"NousResearch/Hermes-4-405B","workloads":18,"kernel":{"dir":"kernels/L2/005_swiglu_mlp_backward","language":"CUDA C++","files":[{"path":"bigm.cu","lines":94,"bytes":5082},{"path":"cute/arch/copy_sm90_tma.hpp","lines":75,"bytes":4203},{"path":"ggemm.cu","lines":105,"bytes":6471},{"path":"gx.cu","lines":238,"bytes":13511},{"path":"gxf.cu","lines":296,"bytes":15029},{"path":"k128.cu","lines":645,"bytes":35298},{"path":"kernel.cu","lines":647,"bytes":35476},{"path":"kernel.h","lines":73,"bytes":6062},{"path":"lt.cpp","lines":212,"bytes":11814},{"path":"main.cpp","lines":1404,"bytes":82197},{"path":"wgrad.cu","lines":107,"bytes":5928},{"path":"wgrad_ef.cu","lines":118,"bytes":6787}],"idea":"cuBLASLt GEMMs (custom CUTLASS/tcgen05 ones at small token counts; gate+up weight grads as one GEMM) around a fused SwiGLU-backward kernel; fixed plan per size bucket; CUDA graph replay.","origin":"search agent (Claude)","result":{"public":true,"sol":0.592906,"speedup":1.1021}}},{"board":"L2","id":"006_multimodal_rope_position_calculation","name":"Multimodal RoPE position calculation","group":"Attention","op":"multimodal 3D RoPE position-id calculation","direction":"forward","model":"Qwen/Qwen2.5-VL-7B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/006_multimodal_rope_position_calculation","language":"CUDA C++","files":[{"path":"b1.cu","lines":627,"bytes":35981},{"path":"b4.cu","lines":445,"bytes":25852},{"path":"bm.cu","lines":319,"bytes":16309},{"path":"claunch.h","lines":118,"bytes":6824},{"path":"cluster.h","lines":923,"bytes":61701},{"path":"fused.h","lines":1110,"bytes":62997},{"path":"fused_lb1.cu","lines":8,"bytes":600},{"path":"fused_lb2.cu","lines":8,"bytes":605},{"path":"kernel.cu","lines":3504,"bytes":236155},{"path":"ldna.h","lines":79,"bytes":5374},{"path":"main.cpp","lines":446,"bytes":28574},{"path":"pair.cu","lines":2135,"bytes":142696}],"idea":"One fused launch, kernel picked per shape: CTA clusters scan each row with warp ballots and bitmaps; each row passes its image/video counts to later rows.","origin":"search agent (Claude)","result":{"public":true,"sol":0.980774,"speedup":46.0487}}},{"board":"L2","id":"007_multimodal_rotary_embedding_attention","name":"Multimodal rotary embedding attention","group":"Attention","op":"GQA attention with multimodal 3D RoPE","direction":"forward","model":"Qwen/Qwen2.5-VL-7B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/007_multimodal_rotary_embedding_attention","language":"CUDA C++","files":[{"path":"kernel.cu","lines":12722,"bytes":783704},{"path":"kernel.h","lines":106,"bytes":8134},{"path":"main.cpp","lines":1202,"bytes":79089}],"idea":"tcgen05 QKV GEMM with bias and RoPE in the epilogue, mask tiles classified up front, tcgen05 flash attention, o_proj on cuBLASLt or a custom GEMM; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.766322,"speedup":2.238}}},{"board":"L2","id":"008_moe_sparse_routing_and_dispatch","name":"MoE sparse routing and dispatch","group":"MLP and MoE","op":"MoE block: softmax router + top-8 + SwiGLU experts + weighted sum","direction":"forward","model":"Qwen/Qwen3-30B-A3B-Instruct-2507","workloads":16,"kernel":{"dir":"kernels/L2/008_moe_sparse_routing_and_dispatch","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6013,"bytes":367450},{"path":"kernel.h","lines":12,"bytes":805},{"path":"main.cpp","lines":71,"bytes":3405},{"path":"probe_cfg.h","lines":2,"bytes":33}],"idea":"Router kernel (softmax, top-8, per-expert token blocks), then a persistent tcgen05 kernel running gate/up + SwiGLU tasks and down tasks that add weighted rows into the output.","origin":"search agent (Claude)","result":{"public":true,"sol":0.902345,"speedup":3.4315}}},{"board":"L2","id":"009_decoder_layer_with_residual_connections","name":"Decoder layer with residual connections","group":"Full decoder layers","op":"MoE decoder layer: RMSNorm, GQA + QK-norm, MoE, residuals","direction":"forward","model":"Qwen/Qwen3-Coder-30B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/009_decoder_layer_with_residual_connections","language":"CUDA C++","files":[{"path":"fa4.cu","lines":1462,"bytes":87940},{"path":"kernel.cu","lines":12404,"bytes":773391},{"path":"kernel.h","lines":106,"bytes":8415},{"path":"main.cpp","lines":292,"bytes":19377},{"path":"side_steal.cuh","lines":300,"bytes":13466},{"path":"ws_probe.cu","lines":162,"bytes":9056}],"idea":"tcgen05 chain (fp16 or FP8 by size): QKV GEMM with RoPE + QK-norm epilogue, flash attention that skips masked tiles, o_proj + residual, router, grouped expert GEMMs.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.8275,"speedup":3.3628}}},{"board":"L2","id":"010_moe_expert_computation_with_weighted_accumulation","name":"MoE expert computation with weighted accumulation","group":"MLP and MoE","op":"MoE experts SwiGLU + weighted accumulation (given top-k)","direction":"forward","model":"Qwen/Qwen3-Coder-30B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/010_moe_expert_computation_with_weighted_accumulation","language":"CUDA C++","files":[{"path":"fast_path.cu","lines":2422,"bytes":144511},{"path":"g12fused.cu","lines":3035,"bytes":205494},{"path":"graph_launch.h","lines":50,"bytes":2522},{"path":"kernel.cu","lines":997,"bytes":60858},{"path":"kernel.h","lines":4,"bytes":246},{"path":"main.cpp","lines":8,"bytes":609}],"idea":"Tokens sorted by expert on the GPU, then one persistent tcgen05 kernel runs both GEMMs (gate/up + SwiGLU, down + routing weight) from one work queue; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.956297,"speedup":7.7057}}},{"board":"L2","id":"011_moe_sparse_routing_and_dispatch_backward","name":"MoE sparse routing and dispatch backward","group":"Backward pass","op":"MoE routing + dispatch backward","direction":"backward","model":"Qwen/Qwen3-Coder-30B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/011_moe_sparse_routing_and_dispatch_backward","language":"CUDA C++","files":[{"path":"dg_xdyn.cuh","lines":374,"bytes":18845},{"path":"kernel.cu","lines":5258,"bytes":336112},{"path":"main.cpp","lines":482,"bytes":24623},{"path":"route_b.cuh","lines":318,"bytes":15727},{"path":"route_c.cuh","lines":778,"bytes":41599},{"path":"route_v.cuh","lines":107,"bytes":5382}],"idea":"Two launches in a CUDA graph: a warp-per-token router backward kernel, then one tcgen05 kernel that computes both gradient GEMMs (hidden states and gate weight).","origin":"search agent (Claude)","result":{"public":true,"sol":0.832835,"speedup":4.2604}}},{"board":"L2","id":"012_moe_expert_batched_execution_with_capacity_factor","name":"MoE expert batched execution with capacity factor","group":"MLP and MoE","op":"MoE experts with capacity-factor batching","direction":"forward","model":"Qwen/Qwen3-Coder-480B-A35B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/012_moe_expert_batched_execution_with_capacity_factor","language":"CUDA C++","files":[{"path":"kernel.cu","lines":4567,"bytes":265536},{"path":"kernel.h","lines":12,"bytes":997},{"path":"main.cpp","lines":76,"bytes":3944}],"idea":"Routing kernels rank tokens and drop over-capacity ones; swap-AB tcgen05 grouped GEMMs gather tokens, fuse SwiGLU, and scatter-add weighted rows in the down epilogue; PDL chain","origin":"search agent (Claude)","result":{"public":true,"sol":0.899786,"speedup":1.7019}}},{"board":"L2","id":"013_expert_weighted_aggregation_with_shared_expert","name":"Expert weighted aggregation with shared expert","group":"MLP and MoE","op":"MoE experts + weighted sum + sigmoid-gated shared expert","direction":"forward","model":"Qwen/Qwen3-Next-80B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/013_expert_weighted_aggregation_with_shared_expert","language":"CUDA C++","files":[{"path":"fused_body.cuh","lines":2801,"bytes":159817},{"path":"kernel.cu","lines":1678,"bytes":70791},{"path":"main.cpp","lines":6,"bytes":603},{"path":"route_body.cuh","lines":707,"bytes":37089}],"idea":"Routing groups tokens by expert; one persistent 2-CTA tcgen05 swap-AB grouped GEMM does gate/up + SwiGLU, then down + atomic weighted adds; shared expert as an extra expert.","origin":"search agent (Claude)","result":{"public":true,"sol":0.944881,"speedup":3.5869}}},{"board":"L2","id":"014_audio_encoder_varlen_attention_with_chunking_backward","name":"Audio encoder varlen attention with chunking backward","group":"Backward pass","op":"audio varlen attention with chunking backward","direction":"backward","model":"Qwen/Qwen3-Omni-30B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/014_audio_encoder_varlen_attention_with_chunking_backward","language":"CUDA C++","files":[{"path":"fastlaunch.h","lines":54,"bytes":2897},{"path":"gemm.cu","lines":2891,"bytes":189830},{"path":"gemm.h","lines":17,"bytes":1857},{"path":"kernel.cu","lines":6842,"bytes":379349},{"path":"kernel.h","lines":71,"bytes":5789},{"path":"main.cpp","lines":1198,"bytes":73803}],"idea":"Attention backward per (chunk, head) in custom tensor-core kernels picked by chunk length; projection grads via cuBLASLt or a persistent 2-SM tcgen05 GEMM; CUDA graph replay.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.945714,"speedup":13.4225}}},{"board":"L2","id":"015_audio_sinusoidal_position_embedding_with_conv_projection","name":"Audio sinusoidal position embedding with conv projection","group":"Audio","op":"audio sinusoidal position embed + Conv2d downsampling + proj","direction":"forward","model":"Qwen/Qwen3-Omni-30B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/015_audio_sinusoidal_position_embedding_with_conv_projection","language":"CUDA C++","files":[{"path":"cutlass_conv.cu","lines":1068,"bytes":64928},{"path":"cutlass_gemm.cu","lines":283,"bytes":14558},{"path":"fastlaunch.h","lines":129,"bytes":6896},{"path":"kernel.cu","lines":7766,"bytes":465045},{"path":"kernel.h","lines":132,"bytes":11062},{"path":"main.cpp","lines":1291,"bytes":74467},{"path":"plan_table.h","lines":102,"bytes":7865}],"idea":"Each conv + bias + GELU runs as an implicit GEMM (mma.sync, CUTLASS conv, or custom tcgen05 split-K); the projection GEMM fuses the scale and position add; PDL chain.","origin":"search agent (Claude)","result":{"public":true,"sol":0.891792,"speedup":5.229}}},{"board":"L2","id":"016_moe_expert_mlp_with_load_balancing","name":"MoE expert MLP with load balancing","group":"MLP and MoE","op":"MoE block: softmax router + top-8 + SwiGLU experts (returns router logits)","direction":"forward","model":"Qwen/Qwen3-Omni-30B-A3B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/016_moe_expert_mlp_with_load_balancing","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3746,"bytes":195041},{"path":"kernel.h","lines":93,"bytes":2764},{"path":"main.cpp","lines":95,"bytes":4402}],"idea":"Split-K router GEMM then softmax + top-8; tokens grouped by expert; one persistent tcgen05 grouped GEMM: gate/up + SwiGLU, then down with atomic weighted adds.","origin":"search agent (Claude)","result":{"public":true,"sol":0.860126,"speedup":2.0881}}},{"board":"L2","id":"017_fused_vision_cu_seqlens_attention_with_2d_rope_backward","name":"Fused vision cu seqlens attention with 2D RoPE backward","group":"Backward pass","op":"vision varlen attention with 2D RoPE backward","direction":"backward","model":"Qwen/Qwen3-VL-4B-Instruct","workloads":16,"kernel":{"dir":"kernels/L2/017_fused_vision_cu_seqlens_attention_with_2d_rope_backward","language":"CUDA C++","files":[{"path":"attn_tc.cu","lines":9100,"bytes":563432},{"path":"main.cpp","lines":47,"bytes":3602}],"idea":"fp16 tcgen05 warp-specialized attention (forward recompute, then dQ and dK/dV kernels with ping-pong warpgroups, inverse RoPE in epilogues); cuBLAS or 2-SM tcgen05 projection GEMMs; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.829945,"speedup":3.4105}}},{"board":"L2","id":"018_cu_seqlens_variable_length_vision_attention","name":"Cu seqlens variable length vision attention","group":"Image and video","op":"vision varlen attention (cu_seqlens) with RoPE","direction":"forward","model":"Qwen/Qwen-Image-Edit-2509","workloads":16,"kernel":{"dir":"kernels/L2/018_cu_seqlens_variable_length_vision_attention","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6056,"bytes":377692},{"path":"kernel.h","lines":7,"bytes":517},{"path":"main.cpp","lines":84,"bytes":4565}],"idea":"cuBLASLt QKV GEMM, a RoPE pass, warp-specialized TMA + tcgen05 varlen attention (mma.sync for short sequences), cuBLASLt out-proj; the whole call replays as a CUDA graph","origin":"search agent (Claude)","result":{"public":true,"sol":0.812297,"speedup":4.0091}}},{"board":"L2","id":"019_decoder_layer_fused_attention_mlp","name":"Decoder layer fused attention MLP","group":"Full decoder layers","op":"Qwen2-VL decoder layer (M-RoPE GQA + SwiGLU)","direction":"forward","model":"Qwen/Qwen-Image-Edit-2509","workloads":16,"kernel":{"dir":"kernels/L2/019_decoder_layer_fused_attention_mlp","language":"CUDA C++","files":[{"path":"attn_fa4.cu","lines":947,"bytes":47551},{"path":"attn_fa4x2.cu","lines":636,"bytes":30957},{"path":"attn_short_tc.cu","lines":511,"bytes":25157},{"path":"attn_sm100.cu","lines":241,"bytes":11564},{"path":"fmha_mainloop_opt.hpp","lines":372,"bytes":21812},{"path":"fp32_guard.cu","lines":347,"bytes":15606},{"path":"gateup_sm100.cu","lines":2903,"bytes":146552},{"path":"gemm_common.cuh","lines":89,"bytes":4704},{"path":"gemm_f16_f16.cu","lines":13,"bytes":768},{"path":"gemm_f16_f32.cu","lines":48,"bytes":2758},{"path":"gemm_h1h.cu","lines":41,"bytes":2433},{"path":"gemm_oproj.cu","lines":366,"bytes":20145},{"path":"gemm_tf32_2sm.cu","lines":41,"bytes":2653},{"path":"kernel.h","lines":474,"bytes":26582},{"path":"kernels.cu","lines":1616,"bytes":79983},{"path":"main.cpp","lines":2406,"bytes":139187},{"path":"qkv_rope_cut.cu","lines":137,"bytes":6910},{"path":"ws_gemm.cu","lines":4950,"bytes":235513}],"idea":"Path picked by token count: few tokens stream fp32 weights through swap-AB tcgen05 kernels with fused epilogues; many tokens use fp16 CUTLASS GEMMs and tcgen05 flash attention.","origin":"search agent (Claude)","result":{"public":true,"sol":0.641563,"speedup":1.3661}}},{"board":"L2","id":"020_decoder_layer_pre_post_norm_residual","name":"Decoder layer pre post norm residual","group":"Full decoder layers","op":"decoder layer with pre / post norm residuals","direction":"forward","model":"RekaAI/reka-flash-3","workloads":16,"kernel":{"dir":"kernels/L2/020_decoder_layer_pre_post_norm_residual","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5178,"bytes":292104},{"path":"kernel.h","lines":110,"bytes":9080},{"path":"main.cpp","lines":511,"bytes":30213}],"idea":"By token count: hand-written persistent 2-SM tcgen05 GEMMs (fused RoPE, residual and SwiGLU epilogues) or cuBLASLt; tcgen05 causal GQA attention with a mask check; PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.677576,"speedup":1.2641}}},{"board":"L2","id":"021_cross_attention_text_video_conditioning_backward","name":"Cross attention text video conditioning backward","group":"Backward pass","op":"text-video cross-attention backward","direction":"backward","model":"Wan-AI/Wan2.2-T2V-A14B","workloads":16,"kernel":{"dir":"kernels/L2/021_cross_attention_text_video_conditioning_backward","language":"CUDA C++","files":[{"path":"g16.cuh","lines":2058,"bytes":147581},{"path":"kernel.cu","lines":3615,"bytes":253546},{"path":"kernel.h","lines":4,"bytes":437},{"path":"main.cpp","lines":7,"bytes":474},{"path":"tc16p.cuh","lines":671,"bytes":39270},{"path":"tc2bw.cuh","lines":288,"bytes":14316},{"path":"tc2w.cuh","lines":264,"bytes":12949},{"path":"tc3k.cuh","lines":282,"bytes":14208},{"path":"tc4k.cuh","lines":405,"bytes":23127},{"path":"tc4q.cuh","lines":790,"bytes":48881},{"path":"tc5k.cuh","lines":2090,"bytes":138883},{"path":"tcw.cuh","lines":541,"bytes":32063}],"idea":"fp16 tensor-core pipeline with a power-of-2 scale per tensor: projection and weight-gradient GEMMs on cuBLASLt or a grouped tcgen05 GEMM; tcgen05 attention-backward kernels picked by shape.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.818858,"speedup":3.999}}},{"board":"L2","id":"022_video_latent_denoising_unet_block","name":"Video latent denoising UNet block","group":"Image and video","op":"video latent denoising block","direction":"forward","model":"Wan-AI/Wan2.2-T2V-A14B","workloads":16,"kernel":{"dir":"kernels/L2/022_video_latent_denoising_unet_block","language":"CUDA C++","files":[{"path":"cf_0.cu","lines":3,"bytes":136},{"path":"cf_1.cu","lines":3,"bytes":136},{"path":"cg_0.cu","lines":3,"bytes":118},{"path":"cg_3.cu","lines":3,"bytes":118},{"path":"cg_4.cu","lines":4,"bytes":172},{"path":"cudnn_attn.cpp","lines":87,"bytes":4159},{"path":"cutlass_gemm.cuh","lines":262,"bytes":15841},{"path":"fattn.cu","lines":200,"bytes":9998},{"path":"kernel.cu","lines":201,"bytes":10213},{"path":"kernel.h","lines":50,"bytes":2985},{"path":"main.cpp","lines":387,"bytes":24410},{"path":"pdl.h","lines":25,"bytes":1495},{"path":"pkern.cu","lines":163,"bytes":7266},{"path":"prec.h","lines":3,"bytes":142},{"path":"tattn.cu","lines":222,"bytes":11605}],"idea":"fp16 CUTLASS SM100 GEMMs with LayerNorm folded into weights and fused epilogues; mma.sync attention for frames and short keys, cuDNN for long keys; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.744869,"speedup":2.1202}}},{"board":"L2","id":"023_video_latent_vae_encoder_downsampling","name":"Video latent VAE encoder downsampling","group":"Image and video","op":"video VAE encoder downsampling","direction":"forward","model":"Wan-AI/Wan2.2-T2V-A14B","workloads":16,"kernel":{"dir":"kernels/L2/023_video_latent_vae_encoder_downsampling","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5929,"bytes":320196},{"path":"main.cpp","lines":320,"bytes":23719}],"idea":"Implicit-GEMM 3D convs on tcgen05 (strided TMA boxes, 2-SM pairs), the 1x1 residual as extra K steps, Winograd along width on some stages, GroupNorm stats in epilogues.","origin":"search agent (Claude)","result":{"public":true,"sol":0.952392,"speedup":3.9527}}},{"board":"L2","id":"024_moe_expert_parallel_execution","name":"MoE expert parallel execution","group":"MLP and MoE","op":"MoE experts (256, given top-k) SwiGLU + scatter-add","direction":"forward","model":"XiaomiMiMo/MiMo-V2-Flash","workloads":16,"kernel":{"dir":"kernels/L2/024_moe_expert_parallel_execution","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5279,"bytes":299501},{"path":"kernel.h","lines":7,"bytes":517},{"path":"main.cpp","lines":51,"bytes":2202}],"idea":"Group tokens by expert, then tcgen05 GEMMs: gate/up + SwiGLU, then down proj with weighted red.add; one fused persistent kernel for few tokens, 2-CTA GEMMs for many.","origin":"search agent (Claude)","result":{"public":true,"sol":0.990009,"speedup":12.9455}}},{"board":"L2","id":"025_moe_expert_parallel_execution_backward","name":"MoE expert parallel execution backward","group":"Backward pass","op":"MoE experts backward","direction":"backward","model":"XiaomiMiMo/MiMo-V2-Flash","workloads":16,"kernel":{"dir":"kernels/L2/025_moe_expert_parallel_execution_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5729,"bytes":320466},{"path":"kernel.h","lines":6,"bytes":262},{"path":"main.cpp","lines":10,"bytes":597}],"idea":"Expert-grouped tcgen05 GEMMs fed by TMA gather4: TF32 recompute with SwiGLU backward in the epilogue, block-scaled MXFP6/MXFP8 input-grad GEMM, BF16 weight-grad GEMMs; PDL chain","origin":"search agent (Claude)","result":{"public":true,"sol":0.599945,"speedup":1.4046}}},{"board":"L2","id":"026_moe_expert_parallel_execution_with_weighted_aggregation","name":"MoE expert parallel execution with weighted aggregation","group":"MLP and MoE","op":"MoE experts (16, top-2) with weighted aggregation","direction":"forward","model":"ai21labs/AI21-Jamba-Large-1.7","workloads":16,"kernel":{"dir":"kernels/L2/026_moe_expert_parallel_execution_with_weighted_aggregation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2622,"bytes":139934},{"path":"kernel.h","lines":14,"bytes":879},{"path":"kernel_mid.cu","lines":3254,"bytes":167577},{"path":"kernel_mid.h","lines":67,"bytes":4335},{"path":"kernel_small.cu","lines":3352,"bytes":175781},{"path":"kernel_small.h","lines":65,"bytes":4377},{"path":"main.cpp","lines":138,"bytes":7238}],"idea":"One persistent 2-SM swap-AB tcgen05 megakernel sorts tokens, runs gate/up + SwiGLU, then down with weighted red.add, gated by per-expert counters; smaller batches use a PDL chain.","origin":"search agent (Claude)","result":{"public":true,"sol":0.75664,"speedup":1.4067}}},{"board":"L2","id":"027_grouped_query_attention_with_yarn_rope_and_qk_norm","name":"Grouped query attention with YaRN RoPE and QK norm","group":"Attention","op":"GQA attention with YaRN RoPE, QK-norm, sliding window","direction":"forward","model":"allenai/Olmo-3-32B-Think","workloads":16,"kernel":{"dir":"kernels/L2/027_grouped_query_attention_with_yarn_rope_and_qk_norm","language":"CUDA C++","files":[{"path":"attn_tc.cu","lines":3908,"bytes":217432},{"path":"big_gemm.cu","lines":1850,"bytes":111327},{"path":"cutlass_gemm.cu","lines":246,"bytes":13432},{"path":"flash_fix.cuh","lines":262,"bytes":12665},{"path":"fused_o.cu","lines":440,"bytes":21488},{"path":"gemm.cuh","lines":195,"bytes":8340},{"path":"kernel.cu","lines":3200,"bytes":190069},{"path":"kernel.h","lines":6,"bytes":315},{"path":"lt_gemm.cu","lines":220,"bytes":13082},{"path":"m64_helpers.inc","lines":18,"bytes":3318},{"path":"main.cpp","lines":10,"bytes":587},{"path":"mega.cu","lines":882,"bytes":49322},{"path":"pdl_skinny.h","lines":228,"bytes":12475},{"path":"skinny_gemm.cu","lines":2683,"bytes":144259}],"idea":"Hand-written tcgen05 QKV GEMMs with QK-norm + YaRN RoPE fused in (epilogue or a follow-up kernel), a FlashAttention-4-style tcgen05 core, then the O projection; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.676288,"speedup":1.4463}}},{"board":"L2","id":"028_gqa_rotary_attention_core_backward","name":"GQA rotary attention core backward","group":"Backward pass","op":"GQA rotary attention core backward","direction":"backward","model":"baidu/ERNIE-4.5-300B-A47B-PT","workloads":16,"kernel":{"dir":"kernels/L2/028_gqa_rotary_attention_core_backward","language":"CUDA C++","files":[{"path":"attn_fused_tc.cu","lines":898,"bytes":55021},{"path":"attn_fused_tc_v1.cu","lines":658,"bytes":40232},{"path":"attn_tc_bwd.cu","lines":1642,"bytes":105964},{"path":"attn_tc_fwd2.cu","lines":504,"bytes":29391},{"path":"attn_tc_fwd4.cu","lines":1136,"bytes":69551},{"path":"kernel.cu","lines":335,"bytes":19376},{"path":"kernel.h","lines":126,"bytes":10100},{"path":"main.cpp","lines":1401,"bytes":97655},{"path":"tc_gemm.cu","lines":234,"bytes":15962},{"path":"wg_gemm.cu","lines":869,"bytes":52393},{"path":"ws_gemm.cu","lines":2728,"bytes":162480}],"idea":"tcgen05 attention forward + backward (dK/dV summed per query group), RoPE kernels, and cuBLASLt or custom tcgen05 projection GEMMs on two streams; choices timed per shape.","origin":"search agent (Claude)","result":{"public":true,"sol":0.733443,"speedup":1.6935}}},{"board":"L2","id":"029_moe_sparse_routing_and_dispatch","name":"MoE sparse routing and dispatch","group":"MLP and MoE","op":"MoE block: biased router, top-k, experts + shared expert","direction":"forward","model":"baidu/ERNIE-4.5-300B-A47B-PT","workloads":9,"kernel":{"dir":"kernels/L2/029_moe_sparse_routing_and_dispatch","language":"CUDA C++","files":[{"path":"abcfg.h","lines":7,"bytes":224},{"path":"kernel.cu","lines":4346,"bytes":266138},{"path":"kernel.h","lines":8,"bytes":380},{"path":"main.cpp","lines":54,"bytes":3704}],"idea":"One persistent 2-SM tcgen05 megakernel: a scheduler hands out router, expert gate/up (SiLU) and down GEMM items, shared expert included; outputs are reduce-added in place.","origin":"search agent (Claude)","result":{"public":true,"sol":0.883839,"speedup":2.0849}}},{"board":"L2","id":"030_flux_concatenated_sequence_processing_with_split","name":"Flux concatenated sequence processing with split","group":"Image and video","op":"FLUX concat text+image, linear, split","direction":"forward","model":"black-forest-labs/FLUX.1-Kontext-dev","workloads":16,"kernel":{"dir":"kernels/L2/030_flux_concatenated_sequence_processing_with_split","language":"CUDA C++","files":[{"path":"cutlass_gemm.cu","lines":204,"bytes":13554},{"path":"kernel.cu","lines":3042,"bytes":176130},{"path":"kernel.h","lines":84,"bytes":4736},{"path":"main.cpp","lines":244,"bytes":12838}],"idea":"No real concat: one GEMM launch covers both token sets, output split by views; TF32 tcgen05 for small inputs, else row-scaled fp16 copies on tcgen05 or CUTLASS.","origin":"search agent (Claude)","result":{"public":true,"sol":0.676785,"speedup":1.6273}}},{"board":"L2","id":"031_flux_timestep_guidance_projection_embedding","name":"Flux timestep guidance projection embedding","group":"Image and video","op":"FLUX timestep + guidance embedding","direction":"forward","model":"black-forest-labs/FLUX.1-dev","workloads":16,"kernel":{"dir":"kernels/L2/031_flux_timestep_guidance_projection_embedding","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2275,"bytes":131633},{"path":"kernel.h","lines":7,"bytes":470},{"path":"main.cpp","lines":38,"bytes":2393}],"idea":"Small batches: fp32 FMA kernels streaming weights via bulk copies and an mbarrier ring; larger batches: tcgen05 TF32 GEMMs with hi/lo splits for near-fp32 accuracy; PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.909997,"speedup":9.9132}}},{"board":"L2","id":"032_dual_stream_attention_with_conditional_cross_attention","name":"Dual stream attention with conditional cross attention","group":"Image and video","op":"FIBO dual-stream attention block","direction":"forward","model":"briaai/FIBO","workloads":16,"kernel":{"dir":"kernels/L2/032_dual_stream_attention_with_conditional_cross_attention","language":"CUDA C++","files":[{"path":"cudnn_sdpa.cu","lines":83,"bytes":4277},{"path":"cutlass_gemm.cu","lines":411,"bytes":26568},{"path":"kernel.cu","lines":10814,"bytes":626966},{"path":"main.cpp","lines":15,"bytes":1400},{"path":"sel_table.h","lines":143,"bytes":4162}],"idea":"Per-shape fp16 tcgen05 pipeline: adaLN projection, QKV GEMM with fused bias and RoPE, text K/V on a side stream, flash attention (or cuDNN SDPA), gated-residual output GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.776539,"speedup":2.6596}}},{"board":"L2","id":"033_multi_scale_feature_pyramid","name":"Multi scale feature pyramid","group":"Image and video","op":"multi-scale feature pyramid (U-Net)","direction":"forward","model":"chuxiaojie/NAFNet","workloads":16,"kernel":{"dir":"kernels/L2/033_multi_scale_feature_pyramid","language":"CUDA C++","files":[{"path":"conv3x3.cu","lines":1257,"bytes":54217},{"path":"conv3x3_tc.cu","lines":5521,"bytes":288637},{"path":"conv_cutlass.cu","lines":446,"bytes":23041},{"path":"conv_earlyb.hpp","lines":932,"bytes":41858},{"path":"convt2.cu","lines":1846,"bytes":88027},{"path":"convt_tc.cu","lines":838,"bytes":43510},{"path":"enc0down0.cu","lines":257,"bytes":11470},{"path":"fpn_table.h","lines":196,"bytes":23021},{"path":"kernel.cu","lines":1819,"bytes":81214},{"path":"kernel.h","lines":255,"bytes":16140},{"path":"main.cpp","lines":4835,"bytes":252106},{"path":"mega.cu","lines":883,"bytes":39090},{"path":"outconv.cu","lines":1172,"bytes":56519},{"path":"pdl.cuh","lines":206,"bytes":8910}],"idea":"Per-shape table picks each conv: a cuDNN engine or a custom TF32 tcgen05 implicit-GEMM kernel checked bit-exact against cuDNN; bias and concat fused; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.819267,"speedup":4.1644}}},{"board":"L2","id":"034_vision_language_cross_attention_fusion","name":"Vision language cross attention fusion","group":"Attention","op":"language-to-vision cross-attention with 1D / 3D RoPE","direction":"forward","model":"cybermotaz/Qwen3-VL-32B-Instruct-NVFP4","workloads":16,"kernel":{"dir":"kernels/L2/034_vision_language_cross_attention_fusion","language":"CUDA C++","files":[{"path":"cg_256x128_c2.cu","lines":10,"bytes":521},{"path":"cg_256x128_c4.cu","lines":11,"bytes":605},{"path":"cg_256x256_c2.cu","lines":10,"bytes":521},{"path":"cg_256x256_c4.cu","lines":10,"bytes":560},{"path":"cg_256x64_c2.cu","lines":11,"bytes":588},{"path":"cutlass_gemm.cuh","lines":152,"bytes":8657},{"path":"kernel.cu","lines":6708,"bytes":382556},{"path":"kernel.h","lines":186,"bytes":9866},{"path":"main.cpp","lines":170,"bytes":10430}],"idea":"Three PDL-chained kernels: QKV tcgen05 GEMM with bias and 1D/3D RoPE in its epilogue, tcgen05 flash attention keeping P in TMEM, then the output GEMM (mostly CUTLASS).","origin":"search agent (Claude)","result":{"public":true,"sol":0.742762,"speedup":1.7861}}},{"board":"L2","id":"035_convnextv2_block_with_grn","name":"ConvNeXtV2 block with GRN","group":"Image and video","op":"ConvNeXtV2 block with GRN","direction":"forward","model":"facebook/convnextv2-base-22k-224","workloads":16,"kernel":{"dir":"kernels/L2/035_convnextv2_block_with_grn","language":"CUDA C++","files":[{"path":"kernel.cu","lines":13749,"bytes":836510},{"path":"kernel.h","lines":6,"bytes":407},{"path":"main.cpp","lines":9,"bytes":659}],"idea":"Per-shape chain of PDL kernels in one CUDA graph: depthwise conv (+LayerNorm), tcgen05 GEMM with GELU epilogue, GRN sums, then a tcgen05 GEMM applying GRN, bias and residual.","origin":"search agent (Claude)","result":{"public":true,"sol":0.831854,"speedup":4.5942}}},{"board":"L2","id":"036_convnextv2_layer_with_nhwc_persistence_backward","name":"ConvNeXtV2 layer with NHWC persistence backward","group":"Backward pass","op":"ConvNeXtV2 layer backward","direction":"backward","model":"facebook/convnextv2-base-22k-224","workloads":14,"kernel":{"dir":"kernels/L2/036_convnextv2_layer_with_nhwc_persistence_backward","language":"CUDA C++","files":[{"path":"k3p.cuh","lines":1145,"bytes":66198},{"path":"k3s.cuh","lines":896,"bytes":48987},{"path":"kernel.cu","lines":7639,"bytes":419249},{"path":"kernel.h","lines":17,"bytes":1144},{"path":"main.cpp","lines":386,"bytes":22110}],"idea":"tcgen05 pipeline: one fused kernel runs both MLP data-grad GEMMs (hi/lo split operands for fp32 accuracy) with GRN, GELU and LayerNorm backward; weight-grad and depthwise kernels overlap.","origin":"search agent (Claude)","result":{"public":true,"sol":0.907037,"speedup":9.1161}}},{"board":"L2","id":"037_qk_norm_rope_attention_core_backward","name":"QK norm RoPE attention core backward","group":"Backward pass","op":"QK-norm RoPE attention core backward","direction":"backward","model":"google/gemma-3-4b-it","workloads":16,"kernel":{"dir":"kernels/L2/037_qk_norm_rope_attention_core_backward","language":"CUDA C++","files":[{"path":"exact_ref.cpp","lines":74,"bytes":3938},{"path":"kernel.cu","lines":6780,"bytes":399980},{"path":"main.cpp","lines":11,"bytes":776}],"idea":"Strict fp32: larger projection GEMMs use Strassen-Winograd or rank-48 fast-matmul levels over batched SGEMMs; flash-style fp32 causal soft-cap attention fwd + bwd; CUDA graph","origin":"search agent (Claude)","result":{"public":true,"sol":0.221197,"speedup":0.2968}}},{"board":"L2","id":"038_audio_relative_position_attention","name":"Audio relative position attention","group":"Audio","op":"Gemma3n audio relative-position attention","direction":"forward","model":"google/gemma-3n-E2B","workloads":14,"kernel":{"dir":"kernels/L2/038_audio_relative_position_attention","language":"CUDA C++","files":[{"path":"kernel.cu","lines":10783,"bytes":626243},{"path":"kernel.h","lines":80,"bytes":7280},{"path":"main.cpp","lines":90,"bytes":4853}],"idea":"tcgen05 2-SM QKV GEMM that also builds the position embeddings; banded local attention on tcgen05 or mma.sync with the relative shift done in-kernel; PDL chain.","origin":"search agent (Claude)","result":{"public":true,"sol":0.95767,"speedup":17.9933}}},{"board":"L2","id":"039_kv_shared_attention_with_rope","name":"KV shared attention with RoPE","group":"Attention","op":"Gemma3n KV-shared attention with RoPE","direction":"forward","model":"google/gemma-3n-E2B","workloads":16,"kernel":{"dir":"kernels/L2/039_kv_shared_attention_with_rope","language":"CUDA C++","files":[{"path":"kdecl.h","lines":19,"bytes":972},{"path":"kernel.cu","lines":4822,"bytes":284060},{"path":"kernel.h","lines":117,"bytes":9099},{"path":"main.cpp","lines":1036,"bytes":60793},{"path":"oepi.cuh","lines":782,"bytes":40651}],"idea":"One persistent tcgen05 megakernel runs the QKV GEMM (RMSNorm + RoPE epilogue), GQA flash attention skipping masked tiles, and o_proj, as ordered tickets synced by counters.","origin":"search agent (Claude)","result":{"public":true,"sol":0.900087,"speedup":5.0347}}},{"board":"L2","id":"040_altup_predict_correction_cycle_backward","name":"AltUp predict correction cycle backward","group":"Backward pass","op":"AltUp predict / correct backward","direction":"backward","model":"google/gemma-3n-E4B","workloads":16,"kernel":{"dir":"kernels/L2/040_altup_predict_correction_cycle_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":959,"bytes":54609},{"path":"kernel.h","lines":66,"bytes":4074},{"path":"kernel_g128.cu","lines":1457,"bytes":95434},{"path":"kernel_ws.cu","lines":908,"bytes":53272},{"path":"kernel_wsr.cu","lines":1507,"bytes":106644},{"path":"main.cpp","lines":431,"bytes":29959}],"idea":"One persistent warp-specialized kernel: TMA stages each token's rows in an mbarrier ring, a few row dot products give every grad, and weight grads are reduced across CTAs.","origin":"search agent (Claude)","result":{"public":true,"sol":0.993548,"speedup":20.9939}}},{"board":"L2","id":"041_kv_shared_attention_with_dual_rope","name":"KV shared attention with dual RoPE","group":"Attention","op":"Gemma3n KV-shared attention with dual RoPE","direction":"forward","model":"google/gemma-3n-E4B","workloads":16,"kernel":{"dir":"kernels/L2/041_kv_shared_attention_with_dual_rope","language":"CUDA C++","files":[{"path":"kernel.cu","lines":10702,"bytes":615216},{"path":"kernel.h","lines":7,"bytes":573},{"path":"main.cpp","lines":17,"bytes":1554},{"path":"oproj_cutlass.cu","lines":117,"bytes":6679}],"idea":"tcgen05 projection GEMM with RMSNorm + RoPE in its epilogue; persistent tcgen05 GQA flash attention with soft-cap, causal by default plus a mask fix-up kernel","origin":"search agent (Claude)","result":{"public":true,"sol":0.958881,"speedup":12.7298}}},{"board":"L2","id":"042_ffn_gelu_projection_fused_backward","name":"FFN GELU projection fused backward","group":"Backward pass","op":"FFN GELU projection backward","direction":"backward","model":"hexgrad/Kokoro-82M","workloads":16,"kernel":{"dir":"kernels/L2/042_ffn_gelu_projection_fused_backward","language":"CUDA C++","files":[{"path":"b2b.cuh","lines":461,"bytes":26043},{"path":"dhk.cuh","lines":413,"bytes":25915},{"path":"dht.cuh","lines":437,"bytes":30993},{"path":"fused2.cuh","lines":532,"bytes":27147},{"path":"ggk.cuh","lines":1920,"bytes":132819},{"path":"ggw.cuh","lines":330,"bytes":18346},{"path":"k1v.cuh","lines":491,"bytes":32034},{"path":"kernel.cu","lines":579,"bytes":32209},{"path":"kernel.h","lines":247,"bytes":17233},{"path":"main.cpp","lines":1581,"bytes":100949},{"path":"sdh.cuh","lines":573,"bytes":36069},{"path":"simt.cuh","lines":121,"bytes":6417},{"path":"swg.cuh","lines":437,"bytes":28162},{"path":"tgd.cuh","lines":226,"bytes":11833},{"path":"tgg.cuh","lines":353,"bytes":22070},{"path":"wgrad.cuh","lines":1814,"bytes":123403}],"idea":"Split-fp16 (hi + lo) GEMMs for near-FP32 grads: custom 2-CTA tcgen05 kernels fuse the fc2 input-grad GEMM with GELU backward and compute the weight grads; multi-stream CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.778289,"speedup":3.0573}}},{"board":"L2","id":"043_mamba_chunk_scan_with_segsum","name":"Mamba chunk scan with segsum","group":"State space and conv","op":"Mamba2 chunk scan with segsum","direction":"forward","model":"ibm-granite/granite-4.0-1b","workloads":16,"kernel":{"dir":"kernels/L2/043_mamba_chunk_scan_with_segsum","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8866,"bytes":416262},{"path":"kernel.h","lines":19,"bytes":1175},{"path":"kernel_v3.cu","lines":1513,"bytes":76589},{"path":"main.cpp","lines":58,"bytes":3379}],"idea":"SSD on tcgen05: per-chunk masked C @ B^T, chunk outputs and states, an fp32 scan across chunks, then the cross-chunk output; some shapes run one fused kernel.","origin":"search agent (Claude)","result":{"public":true,"sol":0.971494,"speedup":29.828}}},{"board":"L2","id":"044_mamba_discretization_and_segsum","name":"Mamba discretization and segsum","group":"State space and conv","op":"Mamba SSM discretisation + segsum","direction":"forward","model":"ibm-granite/granite-4.0-micro","workloads":16,"kernel":{"dir":"kernels/L2/044_mamba_discretization_and_segsum","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3863,"bytes":265149},{"path":"kernel.h","lines":13,"bytes":867},{"path":"main.cpp","lines":332,"bytes":19822}],"idea":"A per-shape table picks the plan: a scan of softplus(dt)*A writes L while C @ B^T tiles on tcgen05 or mma.sync write G and M, side by side.","origin":"search agent (Claude)","result":{"public":true,"sol":0.942343,"speedup":7.0549}}},{"board":"L2","id":"045_audio_encoder_to_language_model_multimodal_fusion","name":"Audio encoder to language model multimodal fusion","group":"Audio","op":"speech encoder + Q-Former + scatter into LM embeddings","direction":"forward","model":"ibm-granite/granite-speech-3.3-8b","workloads":16,"kernel":{"dir":"kernels/L2/045_audio_encoder_to_language_model_multimodal_fusion","language":"CUDA C++","files":[{"path":"kernel.cu","lines":11753,"bytes":647924},{"path":"kernel.h","lines":143,"bytes":6829},{"path":"main.cpp","lines":56,"bytes":2638}],"idea":"PDL chain: one cluster per window runs the encoder (and attention) with DSMEM exchange; tcgen05 GEMMs project and scatter the rows; a side-stream TMA copy writes the other rows.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.99255,"speedup":6.5777}}},{"board":"L2","id":"046_conformer_relative_position_attention","name":"Conformer relative position attention","group":"Audio","op":"Conformer relative-position attention","direction":"forward","model":"ibm-granite/granite-speech-3.3-8b","workloads":16,"kernel":{"dir":"kernels/L2/046_conformer_relative_position_attention","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6646,"bytes":415634},{"path":"kernel.h","lines":63,"bytes":3112},{"path":"main.cpp","lines":232,"bytes":13965}],"idea":"PDL chain: LayerNorm, 2-CTA tcgen05 QKV GEMM, tcgen05 flash attention adding Q times the position table as a bias (streamed via smem), then a tcgen05 output GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.844249,"speedup":4.0381}}},{"board":"L2","id":"047_moe_training_token_repeat_and_expert_computation","name":"MoE training token repeat and expert computation","group":"MLP and MoE","op":"MoE training forward: token repeat + masked expert SwiGLU","direction":"forward","model":"inclusionAI/Ling-1T","workloads":16,"kernel":{"dir":"kernels/L2/047_moe_training_token_repeat_and_expert_computation","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1912,"bytes":106473},{"path":"kernel.h","lines":29,"bytes":1261},{"path":"kernel_big.cu","lines":787,"bytes":39625},{"path":"kernel_big.h","lines":11,"bytes":767},{"path":"kernel_bigf.cu","lines":845,"bytes":42184},{"path":"kernel_bigf.h","lines":11,"bytes":625},{"path":"kernel_cb.cu","lines":257,"bytes":12899},{"path":"kernel_cg.cu","lines":1252,"bytes":68480},{"path":"main.cpp","lines":255,"bytes":15771}],"idea":"By tokens per expert: smaller cases use persistent tcgen05 kernels that TMA-gather token rows, fuse SwiGLU and atomically add weighted outputs (f16x2); the largest use CUTLASS grouped GEMMs.","origin":"search agent (Claude)","result":{"public":true,"sol":0.920425,"speedup":1.9683}}},{"board":"L2","id":"048_moe_expert_inference_batched_dispatch","name":"MoE expert inference batched dispatch","group":"MLP and MoE","op":"MoE experts inference dispatch (sorted by expert)","direction":"forward","model":"inclusionAI/Ling-flash-2.0","workloads":16,"kernel":{"dir":"kernels/L2/048_moe_expert_inference_batched_dispatch","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3264,"bytes":197663},{"path":"kernel.h","lines":33,"bytes":2363},{"path":"main.cpp","lines":175,"bytes":8650},{"path":"mbench.cu","lines":186,"bytes":10137}],"idea":"Route kernel sorts tokens by expert; tcgen05 gate/up kernel TMA-gathers token rows and fuses SwiGLU; tcgen05 down kernel adds weighted outputs into fp16, then cast to bf16.","origin":"search agent (Claude)","result":{"public":true,"sol":0.981803,"speedup":7.1149}}},{"board":"L2","id":"049_group_limited_topk_routing","name":"Group limited topk routing","group":"MLP and MoE","op":"group-limited top-k routing: router GEMM, sigmoid + bias, 8 groups / top-4 / top-8","direction":"forward","model":"inclusionAI/Ring-flash-2.0","workloads":16,"kernel":{"dir":"kernels/L2/049_group_limited_topk_routing","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8893,"bytes":537053},{"path":"main.cpp","lines":1859,"bytes":119407}],"idea":"cuBLASLt or tcgen05 router GEMM over K-split partial sums, then a PDL group top-k kernel; many tokens: routing fused into the tcgen05 GEMM epilogue","origin":"search agent (Claude)","result":{"public":true,"sol":0.91032,"speedup":7.5521}}},{"board":"L2","id":"050_vae_decoder_mid_block_attention_resnet","name":"VAE decoder mid block attention ResNet","group":"Image and video","op":"VAE decoder mid-block (ResNet + attention)","direction":"forward","model":"kaiyuyue/FLUX.2-dev-vae","workloads":11,"kernel":{"dir":"kernels/L2/050_vae_decoder_mid_block_attention_resnet","language":"CUDA C++","files":[{"path":"cutlass_conv.cu","lines":71,"bytes":3686},{"path":"htcombo.inc","lines":8,"bytes":418},{"path":"kernel.cu","lines":12682,"bytes":687639},{"path":"kernel.h","lines":58,"bytes":4716},{"path":"main.cpp","lines":1140,"bytes":65089}],"idea":"Custom tcgen05 kernels: implicit-GEMM 3x3 convs with cluster weight multicast, fused GroupNorm + SiLU, attention with pre-folded Q-K and V-out weights on many shapes; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.811109,"speedup":3.2816}}},{"board":"L2","id":"051_seqlen-finetuned-reconstructed_hyena_complete_forward_block","name":"Seqlen-finetuned-reconstructed Hyena complete forward block","group":"State space and conv","op":"Hyena block forward","direction":"forward","model":"magicslabnu/Hyena-small-32k","workloads":16,"kernel":{"dir":"kernels/L2/051_seqlen-finetuned-reconstructed_hyena_complete_forward_block","language":"CUDA C++","files":[{"path":"kernel.cu","lines":14383,"bytes":732533},{"path":"kernel.h","lines":283,"bytes":18889},{"path":"main.cpp","lines":1549,"bytes":86039}],"idea":"CUDA graph of custom kernels: tcgen05 in-proj fused with the short conv, long conv by cuFFT or a Toeplitz tensor-core kernel, tcgen05 out-proj with LayerNorm, fused fc1-GELU-fc2 MLP.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.93265,"speedup":12.8941}}},{"board":"L2","id":"052_seqlen-finetuned-reconstructed_hyena_gating_and_output_projection","name":"Seqlen-finetuned-reconstructed Hyena gating and output projection","group":"State space and conv","op":"Hyena gating + FFT conv + output projection","direction":"forward","model":"magicslabnu/Hyena-small-32k","workloads":16,"kernel":{"dir":"kernels/L2/052_seqlen-finetuned-reconstructed_hyena_gating_and_output_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":11813,"bytes":726609},{"path":"kernel.h","lines":4,"bytes":273},{"path":"main.cpp","lines":48,"bytes":2717}],"idea":"The FFT conv runs exactly as a causal block-Toeplitz GEMM on tensor cores, gates fused in; then a tcgen05 output-projection GEMM, fused as a tail for some shapes.","origin":"search agent (Claude)","result":{"public":true,"sol":0.91246,"speedup":9.6192}}},{"board":"L2","id":"053_text_decoder_layer_with_self_attention_and_mlp","name":"Text decoder layer with self attention and MLP","group":"Full decoder layers","op":"Mllama text decoder layer: RMSNorm, GQA + RoPE, SwiGLU MLP, residuals","direction":"forward","model":"meta-llama/Llama-3.2-11B-Vision","workloads":16,"kernel":{"dir":"kernels/L2/053_text_decoder_layer_with_self_attention_and_mlp","language":"CUDA C++","files":[{"path":"attn.cu","lines":3488,"bytes":166687},{"path":"attn4.cu","lines":1007,"bytes":53059},{"path":"kernel.cu","lines":7136,"bytes":383465},{"path":"kernel.h","lines":212,"bytes":15983},{"path":"main.cpp","lines":603,"bytes":36937},{"path":"mega_impl.cuh","lines":1122,"bytes":49485}],"idea":"tcgen05 GEMMs with fused epilogues (RoPE, residual adds, SiLU*mul), swap-AB skinny GEMMs for few tokens, attention kernels picked by shape after an on-device causal-mask check.","origin":"search agent (Claude)","result":{"public":true,"sol":0.745709,"speedup":1.6892}}},{"board":"L2","id":"054_vision_encoder_layer_with_gated_residuals","name":"Vision encoder layer with gated residuals","group":"Image and video","op":"vision encoder layer with tanh-gated residuals","direction":"forward","model":"meta-llama/Llama-3.2-11B-Vision","workloads":16,"kernel":{"dir":"kernels/L2/054_vision_encoder_layer_with_gated_residuals","language":"CUDA C++","files":[{"path":"attn_fa4.cu","lines":3464,"bytes":214605},{"path":"choice_table.h","lines":21,"bytes":2771},{"path":"diag.h","lines":20,"bytes":1130},{"path":"ef_load.h","lines":35,"bytes":2173},{"path":"epi_ops.h","lines":131,"bytes":5811},{"path":"gelu_fast.h","lines":79,"bytes":4248},{"path":"gemm.cu","lines":1918,"bytes":135222},{"path":"gemm_e.cu","lines":710,"bytes":46442},{"path":"gemm_pf.cu","lines":308,"bytes":19936},{"path":"kernel.cu","lines":1451,"bytes":83445},{"path":"kernel.h","lines":158,"bytes":14057},{"path":"l2p.h","lines":77,"bytes":4454},{"path":"lnfc1.cu","lines":311,"bytes":16555},{"path":"main.cpp","lines":761,"bytes":50369},{"path":"oproj_ov.cu","lines":149,"bytes":8540},{"path":"pf_gemm.h","lines":82,"bytes":4840},{"path":"sched_depth.h","lines":8,"bytes":506},{"path":"tl.h","lines":42,"bytes":2211},{"path":"wlb.h","lines":136,"bytes":7183}],"idea":"CUTLASS tcgen05 GEMMs with fused epilogues (gated residual, bias + GELU) and custom attention (mma.sync for short sequences, tcgen05/TMEM flash otherwise); the layer replays as one CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.686531,"speedup":1.7807}}},{"board":"L2","id":"055_audio_encoder_conv_positional_layer_stack","name":"Audio encoder conv positional layer stack","group":"Audio","op":"audio conv stem + first encoder layer","direction":"forward","model":"mistralai/Voxtral-Small-24B-2507","workloads":15,"kernel":{"dir":"kernels/L2/055_audio_encoder_conv_positional_layer_stack","language":"CUDA C++","files":[{"path":"attn_tc.cu","lines":727,"bytes":43601},{"path":"conv1_tc.cu","lines":521,"bytes":34840},{"path":"conv2w3_tc.cu","lines":533,"bytes":32587},{"path":"conv2w_tc.cu","lines":516,"bytes":31617},{"path":"gelu_fast.h","lines":39,"bytes":2624},{"path":"kernel.cu","lines":545,"bytes":32433},{"path":"main.cpp","lines":798,"bytes":51424},{"path":"qkv_tc.cu","lines":374,"bytes":22335}],"idea":"tcgen05 conv GEMMs with fused bias, GELU and positional add; persistent tcgen05 attention; projections and MLP mostly on cuBLASLt with fused epilogues; one CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.69816,"speedup":1.2861}}},{"board":"L2","id":"056_language_model_decoder_prenorm_attention_ffn_residual_backward","name":"Language model decoder prenorm attention FFN residual backward","group":"Backward pass","op":"decoder layer backward","direction":"backward","model":"mistralai/Voxtral-Small-24B-2507","workloads":16,"kernel":{"dir":"kernels/L2/056_language_model_decoder_prenorm_attention_ffn_residual_backward","language":"CUDA C++","files":[{"path":"cut_c_128_p.cu","lines":4,"bytes":227},{"path":"cut_c_256_p.cu","lines":4,"bytes":227},{"path":"cut_dispatch.cu","lines":38,"bytes":2450},{"path":"cut_r_128_p.cu","lines":4,"bytes":253},{"path":"cut_r_256_p.cu","lines":4,"bytes":253},{"path":"cutlass_gemm.h","lines":29,"bytes":2171},{"path":"cutlass_impl.h","lines":145,"bytes":8544},{"path":"kernel.cu","lines":7676,"bytes":423329},{"path":"kernel.h","lines":139,"bytes":9740},{"path":"lt_table.h","lines":90,"bytes":15175},{"path":"main.cpp","lines":1976,"bytes":110799}],"idea":"cuBLASLt projection GEMMs (algorithms timed per shape, weight grads overlapped on a second stream) plus custom SwiGLU-backward, RMSNorm-backward and tcgen05 attention-backward kernels (GQA sum, RoPE backward).","origin":"search agent (Claude)","result":{"public":true,"sol":0.71436,"speedup":1.5583}}},{"board":"L2","id":"057_residual_coupling_flow_block","name":"Residual coupling flow block","group":"Audio","op":"normalising-flow residual coupling block (TTS)","direction":"forward","model":"myshell-ai/OpenVoice","workloads":16,"kernel":{"dir":"kernels/L2/057_residual_coupling_flow_block","language":"CUDA C++","files":[{"path":"kernel.cu","lines":11867,"bytes":717644},{"path":"main.cpp","lines":79,"bytes":3774}],"idea":"A filter-prep kernel, then one persistent 2-SM TF32 tcgen05 kernel where each CTA pair runs all coupling steps for its tile; other shapes use staged conv kernels.","origin":"search agent (Claude)","result":{"public":true,"sol":0.906222,"speedup":8.6263}}},{"board":"L2","id":"058_mamba2_selective_scan","name":"Mamba2 selective scan","group":"State space and conv","op":"Mamba2 selective scan with conv + gated norm","direction":"forward","model":"nvidia/Nemotron-H-47B-Base-8K","workloads":16,"kernel":{"dir":"kernels/L2/058_mamba2_selective_scan","language":"CUDA C++","files":[{"path":"gemm_clc.cuh","lines":657,"bytes":41969},{"path":"gemm_evt.cu","lines":169,"bytes":9790},{"path":"gemm_evt.h","lines":9,"bytes":647},{"path":"kernel.cu","lines":2650,"bytes":155151},{"path":"kernel.h","lines":3,"bytes":329},{"path":"main.cpp","lines":12,"bytes":842}],"idea":"Warp-specialized tcgen05 chunked-scan kernel keeps each head's SSM state in TMEM; fused conv + SiLU and gated-norm kernels; projections on cuBLASLt or a custom tcgen05 GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.854164,"speedup":2.376}}},{"board":"L2","id":"059_decoder_layer_full_block","name":"Decoder layer full block","group":"Full decoder layers","op":"Qwen3 decoder layer: RMSNorm, QKV + QK-norm, RoPE, GQA, o_proj, SwiGLU MLP","direction":"forward","model":"nvidia/Qwen3-14B-NVFP4","workloads":16,"kernel":{"dir":"kernels/L2/059_decoder_layer_full_block","language":"CUDA C++","files":[{"path":"attn_fa4.cu","lines":753,"bytes":40805},{"path":"attn_g5.cu","lines":274,"bytes":13501},{"path":"attn_tc2.cu","lines":831,"bytes":40314},{"path":"common.cu","lines":423,"bytes":22102},{"path":"engine.cu","lines":1246,"bytes":70200},{"path":"kernel.h","lines":182,"bytes":12547},{"path":"lt.cpp","lines":177,"bytes":9978},{"path":"main.cpp","lines":205,"bytes":13485},{"path":"wgemm.cu","lines":732,"bytes":40885}],"idea":"FlashAttention-4-style tcgen05 attention, 2-SM tcgen05 GEMMs for QKV (norm + RoPE epilogue) and SwiGLU, cuBLASLt o_proj/down with fused residual; few tokens use split-K weight-streaming GEMMs.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.64744,"speedup":1.292}}},{"board":"L2","id":"060_chunk_gated_delta_rule_linear_attention","name":"Chunk gated delta rule linear attention","group":"Attention","op":"chunked gated delta-rule linear attention","direction":"forward","model":"nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4","workloads":16,"kernel":{"dir":"kernels/L2/060_chunk_gated_delta_rule_linear_attention","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5630,"bytes":319060},{"path":"kernel.h","lines":137,"bytes":13093},{"path":"kernel2.cu","lines":10518,"bytes":592102},{"path":"kernel2_nh.cu","lines":29,"bytes":1239},{"path":"kernel_nh.cu","lines":29,"bytes":1237},{"path":"kernel_nh.h","lines":138,"bytes":13259},{"path":"main.cpp","lines":417,"bytes":22590},{"path":"rlh.inc","lines":488,"bytes":24460},{"path":"tlprep.inc","lines":738,"bytes":37612},{"path":"tmapcache.h","lines":34,"bytes":1910}],"idea":"Prep kernel builds per-chunk WY terms (blocked triangular inverse); a recurrence kernel walks the chunks with tcgen05 state GEMMs, fp32 state kept in TMEM; route picked by shape","origin":"search agent (Claude)","result":{"public":true,"sol":0.965604,"speedup":20.0548}}},{"board":"L2","id":"061_sparse_moe_routing_and_experts","name":"Sparse MoE routing and experts","group":"MLP and MoE","op":"MoE block: softmax router top-10 + experts + sigmoid-gated shared expert","direction":"forward","model":"nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4","workloads":16,"kernel":{"dir":"kernels/L2/061_sparse_moe_routing_and_experts","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6427,"bytes":390704},{"path":"kernel.h","lines":4,"bytes":275},{"path":"main.cpp","lines":5,"bytes":216}],"idea":"Router GEMM + top-k kernel, then persistent tcgen05 expert kernels (gate/up + SiLU, then down with weighted reduce-add, shared expert included); layout picked by token count.","origin":"search agent (Claude)","result":{"public":true,"sol":0.925969,"speedup":3.5911}}},{"board":"L2","id":"062_decoder_complete_layer","name":"Decoder complete layer","group":"Audio","op":"speech decoder layer: self-attn + cross-attn + MLP","direction":"forward","model":"nvidia/canary-qwen-2.5b","workloads":16,"kernel":{"dir":"kernels/L2/062_decoder_complete_layer","language":"CUDA C++","files":[{"path":"cat_mainloop.hpp","lines":834,"bytes":38050},{"path":"dec_table.h","lines":195,"bytes":9310},{"path":"ef_mainloop.hpp","lines":45,"bytes":2721},{"path":"fmha_safe_mainloop.hpp","lines":1262,"bytes":48894},{"path":"ilv_mainloop.hpp","lines":730,"bytes":31142},{"path":"ilv_swiglu.hpp","lines":404,"bytes":23574},{"path":"kernel.cu","lines":6742,"bytes":369416},{"path":"kernel.h","lines":158,"bytes":13554},{"path":"kernel_fa.cu","lines":2945,"bytes":165912},{"path":"kernel_ilv2.cu","lines":133,"bytes":6712},{"path":"main.cpp","lines":870,"bytes":51858},{"path":"pf_wrap.hpp","lines":74,"bytes":4384},{"path":"rope_epi.hpp","lines":359,"bytes":19572},{"path":"rownorm_epi.hpp","lines":432,"bytes":25218}],"idea":"Per-shape CUTLASS SM100 tcgen05 GEMMs (or a hand-written swap-AB one for small M) and tcgen05 flash attention, PDL-chained; gate and up run as one batched GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.708559,"speedup":1.8308}}},{"board":"L2","id":"063_encoder_layer_dual_residual_norm_chain","name":"Encoder layer dual residual norm chain","group":"Audio","op":"speech encoder layer (dual residual-norm chain)","direction":"forward","model":"nvidia/parakeet-tdt-0.6b-v3","workloads":16,"kernel":{"dir":"kernels/L2/063_encoder_layer_dual_residual_norm_chain","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8769,"bytes":530669},{"path":"kernel.h","lines":5,"bytes":382},{"path":"main.cpp","lines":7,"bytes":520}],"idea":"fp16 tcgen05 pipeline with norm weights folded into the weights: persistent GEMMs with fused RoPE, residual and SwiGLU epilogues, GQA-packed tcgen05 flash attention; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.711731,"speedup":1.935}}},{"board":"L2","id":"064_multi_head_qkv_projection_with_rope_backward","name":"Multi head QKV projection with RoPE backward","group":"Backward pass","op":"QKV projection with RoPE backward","direction":"backward","model":"nvidia/parakeet-tdt-0.6b-v3","workloads":16,"kernel":{"dir":"kernels/L2/064_multi_head_qkv_projection_with_rope_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3285,"bytes":204294},{"path":"main.cpp","lines":138,"bytes":8707}],"idea":"A prep kernel undoes RoPE on the Q/K grads and casts to fp16; one PDL-chained tcgen05 GEMM launch computes both dX and dW; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.697463,"speedup":1.8206}}},{"board":"L2","id":"065_sparse_expert_dispatch_and_combine","name":"Sparse expert dispatch and combine","group":"MLP and MoE","op":"gpt-oss sparse experts: gate_up + clamped SwiGLU + down + index_add","direction":"forward","model":"openai/gpt-oss-120b","workloads":16,"kernel":{"dir":"kernels/L2/065_sparse_expert_dispatch_and_combine","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3388,"bytes":210393},{"path":"kernel.h","lines":6,"bytes":326},{"path":"main.cpp","lines":33,"bytes":1961}],"idea":"Buckets tokens by expert, then grouped tcgen05 GEMMs: gate_up with a fused clamped-SwiGLU epilogue, down_proj whose epilogue bulk-reduce-adds weighted rows into the output.","origin":"search agent (Claude)","result":{"public":true,"sol":0.756324,"speedup":2.1558}}},{"board":"L2","id":"066_resnet_block_with_time_embedding","name":"ResNet block with time embedding","group":"Image and video","op":"SD ResNet block with time embedding","direction":"forward","model":"runwayml/stable-diffusion-v1-5","workloads":16,"kernel":{"dir":"kernels/L2/066_resnet_block_with_time_embedding","language":"CUDA C++","files":[{"path":"kernel.cu","lines":9902,"bytes":605365},{"path":"kernel.h","lines":14,"bytes":612},{"path":"main.cpp","lines":171,"bytes":10429},{"path":"plan_table.h","lines":19,"bytes":1050}],"idea":"PDL chain: one-launch GroupNorm + SiLU into padded NHWC fp16, TMA-fed tcgen05 implicit-GEMM convs, and GN2 overlapped with conv1 through per-batch ready counters.","origin":"search agent (Claude)","result":{"public":true,"sol":0.820503,"speedup":3.4851}}},{"board":"L2","id":"067_patch_embed_to_joint_attention_input","name":"Patch embed to joint attention input","group":"Image and video","op":"SD3.5 patch embed + time / text conditioning","direction":"forward","model":"stabilityai/stable-diffusion-3.5-large","workloads":16,"kernel":{"dir":"kernels/L2/067_patch_embed_to_joint_attention_input","language":"CUDA C++","files":[{"path":"convert.cu","lines":340,"bytes":19059},{"path":"ctx_gemm.cu","lines":2705,"bytes":157056},{"path":"ctx_nosplit.cu","lines":219,"bytes":12854},{"path":"ctx_swapk.cu","lines":336,"bytes":17393},{"path":"cutlass_gemm.cu","lines":230,"bytes":12714},{"path":"fused.cu","lines":819,"bytes":40977},{"path":"kernel.cu","lines":3838,"bytes":210411},{"path":"kernel.h","lines":167,"bytes":13689},{"path":"main.cpp","lines":1113,"bytes":65679},{"path":"temb_tc.cu","lines":355,"bytes":19635}],"idea":"Three parallel streams: a persistent TF32 tcgen05 implicit-im2col patch-embed GEMM, a custom tcgen05 (or cuBLASLt) context-embedder GEMM, and split-K kernels for the conditioning.","origin":"search agent (Claude)","result":{"public":true,"sol":0.741702,"speedup":2.3782}}},{"board":"L2","id":"068_gelu_approximate_feedforward_backward","name":"GELU approximate feedforward backward","group":"Backward pass","op":"GELU feed-forward backward","direction":"backward","model":"stabilityai/stable-diffusion-3.5-medium","workloads":16,"kernel":{"dir":"kernels/L2/068_gelu_approximate_feedforward_backward","language":"CUDA C++","files":[{"path":"fused.cu","lines":820,"bytes":42320},{"path":"kernel.cu","lines":932,"bytes":49355},{"path":"kernel.h","lines":155,"bytes":11343},{"path":"main.cpp","lines":1047,"bytes":67198},{"path":"nslice.cu","lines":419,"bytes":22259},{"path":"plain.cu","lines":1458,"bytes":88557},{"path":"wgtf.cu","lines":301,"bytes":16697}],"idea":"Mostly fp16 tcgen05 GEMMs: one with a fused GELU-backward epilogue, then weight and input grads on side streams with PDL; fp32 rerun if fp16 overflows.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.659713,"speedup":1.5246}}},{"board":"L2","id":"069_joint_transformer_block_residual_path","name":"Joint transformer block residual path","group":"Image and video","op":"SD3.5 joint transformer block residual path","direction":"forward","model":"stabilityai/stable-diffusion-3.5-medium","workloads":16,"kernel":{"dir":"kernels/L2/069_joint_transformer_block_residual_path","language":"CUDA C++","files":[{"path":"attn_sb.cu","lines":693,"bytes":37625},{"path":"cg.h","lines":113,"bytes":10536},{"path":"cg_bias.cu","lines":8,"bytes":491},{"path":"cg_gelu.cu","lines":10,"bytes":640},{"path":"cg_plain.cu","lines":12,"bytes":815},{"path":"dec.cpp","lines":44,"bytes":1327},{"path":"dec.h","lines":9,"bytes":346},{"path":"dec_table.h","lines":250,"bytes":14394},{"path":"gemm_tune.cu","lines":82,"bytes":3534},{"path":"gemm_tune.h","lines":31,"bytes":1708},{"path":"hostcache.h","lines":44,"bytes":2423},{"path":"kernel.cu","lines":5898,"bytes":301490},{"path":"kernel.h","lines":154,"bytes":14306},{"path":"main.cpp","lines":1544,"bytes":102441},{"path":"pdl.h","lines":31,"bytes":1726},{"path":"sgx.cu","lines":2956,"bytes":178385},{"path":"sgx_sweep8.cu","lines":4,"bytes":148},{"path":"skm.cu","lines":285,"bytes":13786},{"path":"smm.cu","lines":32,"bytes":1968},{"path":"tc.cu","lines":1095,"bytes":60624},{"path":"tc_np.cu","lines":1113,"bytes":62565},{"path":"tcbf.cu","lines":1875,"bytes":103515},{"path":"tcbf_np.cu","lines":2491,"bytes":140857},{"path":"torch_lite.h","lines":12,"bytes":563}],"idea":"Per-shape table picks exact FP32 GEMMs (FFMA2 tiles or cuBLAS) and attention kernels; long sequences use a tcgen05 key screen, then exact softmax over only keys with nonzero weight.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.641822,"speedup":1.7903}}},{"board":"L2","id":"070_basic_transformer_block","name":"Basic transformer block","group":"Image and video","op":"SDXL basic transformer block","direction":"forward","model":"stabilityai/stable-diffusion-xl-refiner-1.0","workloads":16,"kernel":{"dir":"kernels/L2/070_basic_transformer_block","language":"CUDA C++","files":[{"path":"cutlass_resid.cu","lines":239,"bytes":13433},{"path":"kernel.cu","lines":7731,"bytes":410575},{"path":"kernel.h","lines":3,"bytes":113},{"path":"main.cpp","lines":12,"bytes":904}],"idea":"Custom fp16 tcgen05 kernels for the QKV GEMM, self- and cross-attention and GEGLU FF1; CUTLASS and cuBLASLt residual GEMMs; side streams, PDL, one CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.670653,"speedup":1.6521}}},{"board":"L2","id":"071_edit_consistency_loss_with_perceptual_weighting","name":"Edit consistency loss with perceptual weighting","group":"Image and video","op":"edit-consistency perceptual loss","direction":"forward","model":"stepfun-ai/Step1X-Edit-v1p2","workloads":16,"kernel":{"dir":"kernels/L2/071_edit_consistency_loss_with_perceptual_weighting","language":"CUDA C++","files":[{"path":"kernel.cu","lines":9396,"bytes":563660},{"path":"kernel.h","lines":17,"bytes":997},{"path":"main.cpp","lines":94,"bytes":5003}],"idea":"Predicted and target images run as one batch through fp16 tcgen05 implicit-GEMM 3x3 convs (2-SM pairs, weight multicast); some loss terms run on a parallel graph branch.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.940117,"speedup":6.1267}}},{"board":"L2","id":"072_region_aware_self_attention_with_edit_bias_backward","name":"Region aware self attention with edit bias backward","group":"Backward pass","op":"region-aware self-attention backward","direction":"backward","model":"stepfun-ai/Step1X-Edit-v1p2","workloads":16,"kernel":{"dir":"kernels/L2/072_region_aware_self_attention_with_edit_bias_backward","language":"CUDA C++","files":[{"path":"a_dcheck.cu","lines":77,"bytes":4430},{"path":"b_attnA.cu","lines":781,"bytes":46560},{"path":"b_dcheck.cu","lines":88,"bytes":5358},{"path":"b_dq_tc.cu","lines":801,"bytes":47539},{"path":"b_kernel.cu","lines":2150,"bytes":126771},{"path":"b_kernel.h","lines":98,"bytes":6553},{"path":"b_main.cpp","lines":554,"bytes":35598},{"path":"b_stats.h","lines":65,"bytes":3609},{"path":"b_verify.cu","lines":327,"bytes":16095},{"path":"f32x2.h","lines":57,"bytes":2967},{"path":"fast_out.h","lines":52,"bytes":2767},{"path":"ga2sm.cu","lines":503,"bytes":29524},{"path":"gh2sm.cu","lines":477,"bytes":29293},{"path":"kernel.cu","lines":3661,"bytes":235267},{"path":"kernel.h","lines":122,"bytes":8604},{"path":"main.cpp","lines":858,"bytes":59087}],"idea":"One CUDA graph per shape: cuBLASLt fp16 projection GEMMs, an mma.sync attention-backward kernel, a tcgen05 dQ kernel and bias-gradient sums; a check triggers an exact fp32 fallback.","origin":"search agent (Claude)","result":{"public":true,"sol":0.870734,"speedup":5.641}}},{"board":"L2","id":"073_feedforward_mlp_backward","name":"Feedforward MLP backward","group":"Backward pass","op":"feed-forward MLP backward","direction":"backward","model":"stepfun-ai/Step1X-Edit","workloads":16,"kernel":{"dir":"kernels/L2/073_feedforward_mlp_backward","language":"CUDA C++","files":[{"path":"defscalar.h","lines":104,"bytes":6328},{"path":"g1f1.cu","lines":10,"bytes":567},{"path":"g1fr.cu","lines":997,"bytes":62216},{"path":"gelu0.h","lines":130,"bytes":6017},{"path":"kernel.cu","lines":8073,"bytes":488548},{"path":"kernel.h","lines":13,"bytes":705},{"path":"main.cpp","lines":180,"bytes":11836},{"path":"tmael.h","lines":63,"bytes":4125}],"idea":"Cached CUDA graph of fp16 CUTLASS tcgen05 GEMMs; extra fp8 or NVFP4 GEMMs add rounding-error terms only when input statistics need them; GELU backward fused.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.67455,"speedup":1.5913}}},{"board":"L2","id":"074_sam_hq_mask_decoder_iou_hypernetwork_fusion_backward","name":"SAM hq mask decoder IoU hypernetwork fusion backward","group":"Backward pass","op":"SAM-HQ hypernetwork backward","direction":"backward","model":"syscv-community/sam-hq-vit-base","workloads":16,"kernel":{"dir":"kernels/L2/074_sam_hq_mask_decoder_iou_hypernetwork_fusion_backward","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5071,"bytes":281199},{"path":"kernel.h","lines":70,"bytes":4129},{"path":"main.cpp","lines":174,"bytes":10934}],"idea":"One persistent kernel: CTAs take ordered task tickets and wait on dependency counters; fp16 conversions and TMA-fed mma.sync GEMM tiles (a few on tcgen05), no grid barriers.","origin":"search agent (Claude)","result":{"public":true,"sol":0.900283,"speedup":8.2185}}},{"board":"L2","id":"075_sam_hq_mask_decoder_two_way_transformer","name":"SAM hq mask decoder two way transformer","group":"Image and video","op":"SAM-HQ two-way transformer block","direction":"forward","model":"syscv-community/sam-hq-vit-base","workloads":16,"kernel":{"dir":"kernels/L2/075_sam_hq_mask_decoder_two_way_transformer","language":"CUDA C++","files":[{"path":"comb2.cuh","lines":693,"bytes":35850},{"path":"combsplit.cuh","lines":173,"bytes":8720},{"path":"front.cuh","lines":198,"bytes":8539},{"path":"front2.cuh","lines":771,"bytes":39674},{"path":"kernel.cu","lines":1701,"bytes":87588},{"path":"kernel.h","lines":54,"bytes":3030},{"path":"kernel_small.cu","lines":3149,"bytes":157179},{"path":"lin2.cuh","lines":892,"bytes":51430},{"path":"main.cpp","lines":325,"bytes":17431},{"path":"p1umma.cuh","lines":1159,"bytes":62266},{"path":"p2umma.cuh","lines":1103,"bytes":64164},{"path":"tcfg.h","lines":3,"bytes":158},{"path":"tsdbg.cuh","lines":41,"bytes":2357},{"path":"umma.cuh","lines":186,"bytes":11577}],"idea":"By shape, a PDL chain of custom kernels: tcgen05 passes for the image-side attention, mma.sync for small token GEMMs, L2 weight prefetch; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.943878,"speedup":13.1402}}},{"board":"L2","id":"076_sam_hq_vision_attention_with_relative_position_backward","name":"SAM hq vision attention with relative position backward","group":"Backward pass","op":"SAM-HQ relative-position attention backward","direction":"backward","model":"syscv-community/sam-hq-vit-base","workloads":16,"kernel":{"dir":"kernels/L2/076_sam_hq_vision_attention_with_relative_position_backward","language":"CUDA C++","files":[{"path":"gemm.cu","lines":1530,"bytes":86515},{"path":"kernel.cu","lines":8011,"bytes":426260},{"path":"kernel.h","lines":243,"bytes":15607},{"path":"lt.cu","lines":116,"bytes":6466},{"path":"main.cpp","lines":1042,"bytes":54873},{"path":"mega.cu","lines":1564,"bytes":84081},{"path":"proj.cu","lines":3693,"bytes":202617}],"idea":"Rel-pos bias folded into QK^T via extra head-dim columns (rel logits on Q, one-hot on K); TMA + tcgen05 attention and projection kernels in a CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.855844,"speedup":5.4852}}},{"board":"L2","id":"077_sam_hq_vision_encoder_window_partition_attention","name":"SAM hq vision encoder window partition attention","group":"Image and video","op":"SAM-HQ windowed attention block","direction":"forward","model":"syscv-community/sam-hq-vit-base","workloads":16,"kernel":{"dir":"kernels/L2/077_sam_hq_vision_encoder_window_partition_attention","language":"CUDA C++","files":[{"path":"fp32path.cu","lines":221,"bytes":10902},{"path":"gemm.cu","lines":905,"bytes":55568},{"path":"gemm.h","lines":12,"bytes":1052},{"path":"gemm1.cu","lines":1082,"bytes":67547},{"path":"gemm1.h","lines":13,"bytes":1176},{"path":"kernel.cu","lines":1660,"bytes":99606},{"path":"kernel.h","lines":44,"bytes":3591},{"path":"main.cpp","lines":575,"bytes":33867},{"path":"proj.cu","lines":349,"bytes":19132},{"path":"proj.h","lines":8,"bytes":622}],"idea":"LN1 folded into a 2-SM tcgen05 QKV GEMM, tcgen05 window attention with rel-pos bias via an augmented query, cuBLASLt proj, tcgen05 MLP GEMMs fusing LN2, GELU and residual.","origin":"search agent (Claude)","result":{"public":true,"sol":0.931478,"speedup":6.3137}}},{"board":"L2","id":"078_fused_final_layer_upsample_with_adaptive_norm","name":"Fused final layer upsample with adaptive norm","group":"Image and video","op":"HunyuanImage final layer upsample + adaptive norm","direction":"forward","model":"tencent/HunyuanImage-3.0","workloads":16,"kernel":{"dir":"kernels/L2/078_fused_final_layer_upsample_with_adaptive_norm","language":"CUDA C++","files":[{"path":"conv2sm.cu","lines":882,"bytes":51076},{"path":"cudnn_conv.h","lines":372,"bytes":17264},{"path":"cutlass_conv.cu","lines":33,"bytes":2570},{"path":"cutlass_conv1.cu","lines":101,"bytes":6152},{"path":"cutlass_conv1_dyn.cu","lines":89,"bytes":5220},{"path":"cutlass_conv_192.cu","lines":17,"bytes":1234},{"path":"cutlass_conv_192f.cu","lines":14,"bytes":882},{"path":"cutlass_conv_c24.cu","lines":13,"bytes":653},{"path":"cutlass_conv_cfg.h","lines":197,"bytes":11381},{"path":"cutlass_conv_f.cu","lines":27,"bytes":2361},{"path":"cutlass_conv_fsk.cu","lines":18,"bytes":1422},{"path":"cutlass_conv_sk.cu","lines":19,"bytes":1332},{"path":"kernel.cu","lines":2368,"bytes":123622},{"path":"kernel.h","lines":81,"bytes":7141},{"path":"main.cpp","lines":932,"bytes":60509},{"path":"pins.h","lines":41,"bytes":2402}],"idea":"NHWC data: cuDNN first conv; a 2-SM tcgen05 kernel fuses conv2, skip conv, biases and GroupNorm stats; the mma.sync last conv applies GroupNorm + SiLU on load.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.797338,"speedup":2.2613}}},{"board":"L2","id":"079_git_vision_encoder_layer","name":"Git vision encoder layer","group":"Image and video","op":"ViT encoder layer (MaskGIT)","direction":"forward","model":"valhalla/maskgit-imagenet-soft-code-34k","workloads":16,"kernel":{"dir":"kernels/L2/079_git_vision_encoder_layer","language":"CUDA C++","files":[{"path":"attn.cu","lines":790,"bytes":47465},{"path":"attn2.cu","lines":537,"bytes":33620},{"path":"attn2c.cu","lines":1978,"bytes":137630},{"path":"attn2csk.cu","lines":752,"bytes":41180},{"path":"attn2d.cu","lines":645,"bytes":35660},{"path":"attn2e.cu","lines":612,"bytes":35321},{"path":"attn3l.cu","lines":621,"bytes":35105},{"path":"attn4.cu","lines":570,"bytes":30480},{"path":"attn_ks.cu","lines":388,"bytes":21889},{"path":"attn_med.cu","lines":214,"bytes":11350},{"path":"attn_short.cu","lines":207,"bytes":10701},{"path":"attn_stc.cu","lines":1880,"bytes":110272},{"path":"epi_f32x2.h","lines":67,"bytes":3333},{"path":"fc2tc.cu","lines":392,"bytes":23262},{"path":"gemm_fc1.cu","lines":1195,"bytes":80555},{"path":"gemm_fc2.cu","lines":490,"bytes":35282},{"path":"kernel.cu","lines":1609,"bytes":95334},{"path":"kernel.h","lines":241,"bytes":24106},{"path":"ln2gemm.cu","lines":344,"bytes":19482},{"path":"lngemm.cu","lines":228,"bytes":12094},{"path":"lnqkv_tc.cu","lines":516,"bytes":29927},{"path":"lnqkv_tf32.cu","lines":284,"bytes":15758},{"path":"main.cpp","lines":1525,"bytes":111814},{"path":"qkvtc.cu","lines":257,"bytes":13991},{"path":"rev_sched.h","lines":82,"bytes":4545},{"path":"tune_table.h","lines":111,"bytes":12782},{"path":"w32gemm.cu","lines":343,"bytes":19657}],"idea":"Per-shape CUDA graph: fp16 weights, LayerNorm kernels that also write residual + bias seeds, CUTLASS/cuBLAS GEMMs that add onto them (fc1 with quickGELU epilogue), FA4-style tcgen05 attention","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.631628,"speedup":1.5106}}},{"board":"L2","id":"080_moe_complete_layer_with_shared_expert_backward","name":"MoE complete layer with shared expert backward","group":"Backward pass","op":"MoE layer with shared expert backward","direction":"backward","model":"zai-org/GLM-4.5-Air","workloads":16,"kernel":{"dir":"kernels/L2/080_moe_complete_layer_with_shared_expert_backward","language":"CUDA C++","files":[{"path":"common.cuh","lines":578,"bytes":34261},{"path":"kernel.cu","lines":694,"bytes":37575},{"path":"kernel.h","lines":166,"bytes":12776},{"path":"kernel2.cu","lines":256,"bytes":15335},{"path":"kernel_3b.cu","lines":312,"bytes":18743},{"path":"kernel_evt.cu","lines":287,"bytes":17356},{"path":"kernel_g1x.cu","lines":84,"bytes":6209},{"path":"kernel_sk.cu","lines":81,"bytes":5865},{"path":"kernel_wsk.cu","lines":8,"bytes":602},{"path":"main.cpp","lines":933,"bytes":52553},{"path":"mega.cuh","lines":369,"bytes":16972}],"idea":"CUTLASS tcgen05 GEMMs on four streams in one CUDA graph: down-proj grad with SwiGLU backward, weight grads, a warp-per-token router kernel, one stacked input-grad GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.763665,"speedup":2.3977}}},{"board":"L2","id":"081_moe_sparse_expert_dispatch","name":"MoE sparse expert dispatch","group":"MLP and MoE","op":"MoE block: sigmoid router + top-8 + experts + shared expert","direction":"forward","model":"zai-org/GLM-4.5-Air","workloads":16,"kernel":{"dir":"kernels/L2/081_moe_sparse_expert_dispatch","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3728,"bytes":253978},{"path":"kernel.h","lines":84,"bytes":5597},{"path":"main.cpp","lines":344,"bytes":22191}],"idea":"tcgen05 router GEMM, warp top-8 and token permute, then one persistent 2-CTA tcgen05 grouped GEMM over shared then routed gate/up and down tiles with atomic adds; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.983124,"speedup":5.9441}}},{"board":"L2","id":"082_moe_layer_complete_forward_with_residual","name":"MoE layer complete forward with residual","group":"MLP and MoE","op":"full MoE layer: sigmoid + bias router, group top-8, 160 experts, shared expert, residual","direction":"forward","model":"zai-org/GLM-4.7","workloads":16,"kernel":{"dir":"kernels/L2/082_moe_layer_complete_forward_with_residual","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3439,"bytes":227525},{"path":"kernel.h","lines":14,"bytes":415},{"path":"main.cpp","lines":53,"bytes":3877}],"idea":"tcgen05 router (split-K, DSMEM reduce) with top-8 and expert lists; one persistent 2-CTA tcgen05 kernel runs all gate/up, then down tiles, adding bf16 results atomically.","origin":"search agent (Claude)","result":{"public":true,"sol":0.996533,"speedup":6.1268}}},{"board":"Quant","id":"001_fp8_attention_output_projection","name":"FP8 attention output projection","group":"Projections and GEMM","op":"FP8 o_proj GEMM + bias (60x128 -> 7680)","direction":"forward","model":"Qwen/Qwen3-VL-30B-A3B-Instruct-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/001_fp8_attention_output_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":706,"bytes":39855},{"path":"kernel.h","lines":14,"bytes":1029},{"path":"kernel_fused.cu","lines":596,"bytes":34494},{"path":"kernel_mid.cu","lines":6413,"bytes":384185},{"path":"kernel_mid.h","lines":29,"bytes":1742},{"path":"main.cpp","lines":68,"bytes":3937}],"idea":"Small M: the GEMM TMA-loads bf16 weights and quantizes each block to FP8 in smem just before tcgen05 MMA; larger M: quant kernels, then a tcgen05 FP8 GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.770757,"speedup":2.172}}},{"board":"Quant","id":"002_fp8_attention_qkv_projection","name":"FP8 attention QKV projection","group":"Projections and GEMM","op":"FP8 QKV projection (bias) + QK-RMSNorm","direction":"forward","model":"Qwen/Qwen3-VL-30B-A3B-Instruct-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/002_fp8_attention_qkv_projection","language":"CUDA C++","files":[{"path":"gemm1.cu","lines":1917,"bytes":115305},{"path":"kernel.cu","lines":8439,"bytes":556250},{"path":"kernel.h","lines":153,"bytes":7406},{"path":"l2diag.cu","lines":93,"bytes":4880},{"path":"main.cpp","lines":314,"bytes":17868}],"idea":"Quantize kernel (FP8 inputs and weights), then a block-scaled FP8 tcgen05 GEMM (2-SM pairs) with bias + QK-RMSNorm epilogue; small M uses split-K.","origin":"search agent (Claude)","result":{"public":true,"sol":0.81705,"speedup":2.9219}}},{"board":"Quant","id":"003_fp8_mlp_gate_up_projection","name":"FP8 MLP gate up projection","group":"MLP and MoE","op":"FP8 gate+up GEMMs + SiLU gating (pre-quantized inputs)","direction":"forward","model":"Qwen/Qwen3-VL-30B-A3B-Instruct-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/003_fp8_mlp_gate_up_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1493,"bytes":90391},{"path":"kernel.h","lines":38,"bytes":3036},{"path":"kernel2.cu","lines":2752,"bytes":175527},{"path":"main.cpp","lines":7,"bytes":447}],"idea":"Persistent FP8 tcgen05 GEMM, mostly 2-SM pairs: one MMA covers matching gate and up rows; block scales applied per K block from TMEM; SiLU*up epilogue.","origin":"search agent (Claude)","result":{"public":true,"sol":0.865792,"speedup":2.3903}}},{"board":"Quant","id":"004_fp8_moe_expert_linear","name":"FP8 MoE expert linear","group":"MLP and MoE","op":"FP8 single-expert MLP: gate_up + SiLU + down, x routing weight","direction":"forward","model":"Qwen/Qwen3-VL-30B-A3B-Instruct-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/004_fp8_moe_expert_linear","language":"CUDA C++","files":[{"path":"kernel.cu","lines":641,"bytes":33934},{"path":"kernel.h","lines":27,"bytes":1935},{"path":"kernel_impl.cuh","lines":2861,"bytes":165269},{"path":"kspec0.cu","lines":35,"bytes":2656},{"path":"kspec1.cu","lines":36,"bytes":2834},{"path":"kspec2.cu","lines":34,"bytes":2861},{"path":"kspec3.cu","lines":35,"bytes":2722},{"path":"main.cpp","lines":192,"bytes":7810}],"idea":"FP8 block-quant kernel, then one persistent tcgen05 kernel runs both GEMMs from a dynamic tile queue, scaling each K block in fp32 and fusing SiLU * up with requant.","origin":"search agent (Claude)","result":{"public":true,"sol":0.910758,"speedup":6.8497}}},{"board":"Quant","id":"005_fp8_moe_router_projection","name":"FP8 MoE router projection","group":"MLP and MoE","op":"FP8 MoE router GEMM (experts padded to 128)","direction":"forward","model":"Qwen/Qwen3-VL-30B-A3B-Instruct-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/005_fp8_moe_router_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1809,"bytes":111636},{"path":"kernel.h","lines":5,"bytes":315},{"path":"main.cpp","lines":29,"bytes":1796}],"idea":"tcgen05 FP8 MMAs into a fresh TMEM accumulator per K block, then scaled and summed in fp32 registers; split-K over a cluster, reduced through DSMEM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.849213,"speedup":4.69}}},{"board":"Quant","id":"006_fp8_vision_attention_output_projection","name":"FP8 vision attention output projection","group":"Image and video","op":"FP8 vision o_proj GEMM (scales given)","direction":"forward","model":"Qwen/Qwen3-VL-30B-A3B-Instruct-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/006_fp8_vision_attention_output_projection","language":"CUDA C++","files":[{"path":"cutlass_gemm.cu","lines":112,"bytes":5566},{"path":"kernel.cu","lines":4366,"bytes":326632},{"path":"kernel.h","lines":16,"bytes":1108},{"path":"main.cpp","lines":209,"bytes":11740}],"idea":"Quant kernel, then (PDL) a persistent warp-specialized tcgen05 FP8 GEMM scaling each K block in fp32; small sizes use one fused kernel or a cluster split-K GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.889543,"speedup":6.996}}},{"board":"Quant","id":"007_fp8_vision_attention_qkv_projection","name":"FP8 vision attention QKV projection","group":"Image and video","op":"FP8 vision QKV projection + bias","direction":"forward","model":"Qwen/Qwen3-VL-30B-A3B-Instruct-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/007_fp8_vision_attention_qkv_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":7481,"bytes":486940},{"path":"kernel.h","lines":7,"bytes":492},{"path":"main.cpp","lines":187,"bytes":8639},{"path":"tune_table.h","lines":136,"bytes":7526}],"idea":"Quant kernel, then a persistent tcgen05 FP8 GEMM that scales each K block in fp32, adds bias and TMA-stores bf16 into Q, K, V; some small sizes fuse both.","origin":"search agent (Claude)","result":{"public":true,"sol":0.80261,"speedup":3.2254}}},{"board":"Quant","id":"008_nvfp4_multimodal_embedding_projection","name":"NVFP4 multimodal embedding projection","group":"Image and video","op":"NVFP4 vision projection + merge into text embeddings","direction":"forward","model":"cybermotaz/Qwen3-VL-32B-Instruct-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/008_nvfp4_multimodal_embedding_projection","language":"CUDA C++","files":[{"path":"gemm_regstore.cu","lines":1362,"bytes":81098},{"path":"kernel.cu","lines":4038,"bytes":211841},{"path":"kernel.h","lines":91,"bytes":5209},{"path":"main.cpp","lines":648,"bytes":37247},{"path":"scatter_epilogue.hpp","lines":1756,"bytes":86671},{"path":"sm100_gemm_preb.hpp","lines":1485,"bytes":76302}],"idea":"Prep kernel quantizes to NVFP4 and maps vision rows; a CUTLASS block-scaled tcgen05 GEMM scatters its rows into place while text rows are gathered alongside.","origin":"search agent (Claude)","result":{"public":true,"sol":0.920833,"speedup":8.6491}}},{"board":"Quant","id":"009_nvfp4_vision_temporal_patch_merge_with_projection","name":"NVFP4 vision temporal patch merge with projection","group":"Image and video","op":"NVFP4 temporal patch merge + projection","direction":"forward","model":"cybermotaz/Qwen3-VL-32B-Instruct-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/009_nvfp4_vision_temporal_patch_merge_with_projection","language":"CUDA C++","files":[{"path":"builder_npad.h","lines":181,"bytes":11935},{"path":"collective_npad.h","lines":1084,"bytes":52531},{"path":"epi_hoist.h","lines":1558,"bytes":76970},{"path":"fusion_evt.h","lines":249,"bytes":13808},{"path":"gemm.cuh","lines":343,"bytes":19118},{"path":"gemm_common.h","lines":410,"bytes":27005},{"path":"gemm_epi8.h","lines":423,"bytes":28721},{"path":"gemm_hints.h","lines":309,"bytes":18459},{"path":"gemm_patch.h","lines":155,"bytes":8227},{"path":"kernel.cu","lines":2340,"bytes":160698},{"path":"kernel.h","lines":9,"bytes":430},{"path":"kt_probe.h","lines":23,"bytes":1439},{"path":"main.cpp","lines":41,"bytes":2271},{"path":"probe2.h","lines":24,"bytes":1533},{"path":"quant.cuh","lines":684,"bytes":39190},{"path":"small.cu","lines":244,"bytes":14711},{"path":"small.h","lines":47,"bytes":1579},{"path":"small_preb.cu","lines":268,"bytes":15140}],"idea":"Merge as a free reshape; a persistent kernel quantizes to NVFP4 (global amax via a grid barrier), then a PDL-chained CUTLASS block-scaled FP4 GEMM adds bias","origin":"search agent (Claude)","result":{"public":true,"sol":0.974141,"speedup":24.2244}}},{"board":"Quant","id":"010_fp8_attention_output_projection","name":"FP8 attention output projection","group":"Projections and GEMM","op":"FP8 o_proj GEMM (16384 -> 7168)","direction":"forward","model":"deepseek-ai/DeepSeek-R1-0528","workloads":16,"kernel":{"dir":"kernels/Quant/010_fp8_attention_output_projection","language":"CUDA C++","files":[{"path":"clk.cu","lines":184,"bytes":9884},{"path":"dtma.cu","lines":58,"bytes":3375},{"path":"fq.cu","lines":493,"bytes":27063},{"path":"kernel.cu","lines":2932,"bytes":169971},{"path":"kernel.h","lines":47,"bytes":3126},{"path":"main.cpp","lines":194,"bytes":10762},{"path":"mb.cu","lines":188,"bytes":11605},{"path":"proto.cu","lines":3353,"bytes":205693},{"path":"rt_gemm.cu","lines":532,"bytes":28245},{"path":"sm100_blockwise_fast.hpp","lines":1345,"bytes":60548}],"idea":"One fused kernel quantizes x and W to FP8 (blockwise scales); then a hand-written 1- or 2-SM tcgen05 blockwise FP8 GEMM picked by shape, launched with PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.902272,"speedup":4.4961}}},{"board":"Quant","id":"011_fp8_moe_gate_routing","name":"FP8 MoE gate routing","group":"MLP and MoE","op":"FP8 router GEMM + sigmoid + bias + group top-k (8 groups / top-4 / top-8)","direction":"forward","model":"deepseek-ai/DeepSeek-R1-0528","workloads":16,"kernel":{"dir":"kernels/Quant/011_fp8_moe_gate_routing","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3942,"bytes":285970},{"path":"kernel.h","lines":14,"bytes":934},{"path":"main.cpp","lines":710,"bytes":48075}],"idea":"Three PDL kernels: weight to FP8; a split-K tcgen05 FP8 GEMM that quantizes x in-kernel and applies block scales per K block; then a warp-per-token top-k router.","origin":"search agent (Claude)","result":{"public":true,"sol":0.940924,"speedup":13.7151}}},{"board":"Quant","id":"012_fp8_shared_expert_mlp","name":"FP8 shared expert MLP","group":"MLP and MoE","op":"FP8 shared-expert SwiGLU MLP","direction":"forward","model":"deepseek-ai/DeepSeek-R1-0528","workloads":16,"kernel":{"dir":"kernels/Quant/012_fp8_shared_expert_mlp","language":"CUDA C++","files":[{"path":"gk.cu","lines":4496,"bytes":250210},{"path":"kernel.cu","lines":1247,"bytes":63023},{"path":"kernel.h","lines":102,"bytes":6822},{"path":"main.cpp","lines":585,"bytes":32469}],"idea":"Fused FP8 quant of x and weights; tcgen05 gate/up GEMM with SwiGLU and FP8 re-quant fused in, then the down GEMM; hand-written or CUTLASS per M, PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.987732,"speedup":48.6599}}},{"board":"Quant","id":"013_fp8_mla_kv_compression_projection","name":"FP8 MLA KV compression projection","group":"Projections and GEMM","op":"FP8 MLA KV path: kv_a GEMM -> RMSNorm -> kv_b GEMM","direction":"forward","model":"deepseek-ai/DeepSeek-V3.1-Terminus","workloads":16,"kernel":{"dir":"kernels/Quant/013_fp8_mla_kv_compression_projection","language":"CUDA C++","files":[{"path":"graph.cu","lines":239,"bytes":14556},{"path":"kernel.cu","lines":4119,"bytes":254640},{"path":"kernel.h","lines":19,"bytes":1221},{"path":"main.cpp","lines":227,"bytes":12826}],"idea":"Four PDL-chained kernels in a CUDA graph: FP8 quant, split-K tcgen05 kv_a GEMM, RMSNorm + requant (W_b quant overlapped), tcgen05 kv_b GEMM; per-K-block fp32 scaling.","origin":"search agent (Claude)","result":{"public":true,"sol":0.939813,"speedup":9.9737}}},{"board":"Quant","id":"014_fp8_yarn_rope_embedding","name":"FP8 YaRN RoPE embedding","group":"Attention","op":"YaRN RoPE cos/sin table (DeepSeek)","direction":"forward","model":"deepseek-ai/DeepSeek-V3.1-Terminus","workloads":16,"kernel":{"dir":"kernels/Quant/014_fp8_yarn_rope_embedding","language":"CUDA C++","files":[{"path":"kernel.cu","lines":2425,"bytes":161386},{"path":"kernel.h","lines":9,"bytes":528},{"path":"main.cpp","lines":145,"bytes":7922}],"idea":"The FP8 step reduces exactly to a per-column constant times the position: one divide plus fast sincos per thread; per-length kernels launched from a CUDA graph.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"Quant","id":"015_fp8_mla_attention_output_projection","name":"FP8 MLA attention output projection","group":"Projections and GEMM","op":"FP8 MLA o_proj GEMM (pre-quantized act + weight)","direction":"forward","model":"deepseek-ai/DeepSeek-V3","workloads":16,"kernel":{"dir":"kernels/Quant/015_fp8_mla_attention_output_projection","language":"CUDA C++","files":[{"path":"fp24_push.h","lines":75,"bytes":3877},{"path":"kernel.cu","lines":1110,"bytes":52765},{"path":"kernel.h","lines":25,"bytes":1618},{"path":"kernel_l2sk.cu","lines":643,"bytes":31234},{"path":"kernel_l2sk.h","lines":6,"bytes":354},{"path":"kernel_l2x.cu","lines":456,"bytes":22100},{"path":"kernel_l2x.h","lines":6,"bytes":351},{"path":"kernel_large.cu","lines":854,"bytes":43479},{"path":"kernel_large.h","lines":18,"bytes":915},{"path":"kernel_large2.cu","lines":1702,"bytes":92887},{"path":"kernel_large2.h","lines":25,"bytes":1562},{"path":"kernel_largev.cu","lines":524,"bytes":26021},{"path":"kernel_largev.h","lines":7,"bytes":412},{"path":"kernel_m128c.cu","lines":956,"bytes":54058},{"path":"kernel_m128c.h","lines":13,"bytes":930},{"path":"kernel_m128x2.cu","lines":530,"bytes":26276},{"path":"kernel_m128x2.h","lines":7,"bytes":459},{"path":"kernel_m256.cu","lines":863,"bytes":46185},{"path":"kernel_m256.h","lines":9,"bytes":525},{"path":"kernel_m256c.cu","lines":666,"bytes":34732},{"path":"kernel_m256c.h","lines":11,"bytes":750},{"path":"kernel_m256p.cu","lines":768,"bytes":42064},{"path":"kernel_m256p.h","lines":7,"bytes":493},{"path":"kernel_m256v.cu","lines":864,"bytes":44006},{"path":"kernel_m256v.h","lines":14,"bytes":810},{"path":"kernel_m256x2.cu","lines":526,"bytes":25907},{"path":"kernel_m256x2.h","lines":7,"bytes":473},{"path":"kernel_sk.cu","lines":786,"bytes":39912},{"path":"kernel_sk.h","lines":6,"bytes":396},{"path":"kernel_sk2c.cu","lines":1568,"bytes":93502},{"path":"kernel_sk2c.h","lines":20,"bytes":1424},{"path":"main.cpp","lines":694,"bytes":39827},{"path":"raw_push.h","lines":34,"bytes":1767},{"path":"tmap_cache.h","lines":46,"bytes":1693}],"idea":"FP8 tcgen05 GEMMs that rescale each K-block partial by the fp32 block scales in registers; warp-specialized kernels picked by M (swap-AB when tiny, split-K tails)","origin":"search agent (Claude)","result":{"public":true,"sol":0.870918,"speedup":2.5121}}},{"board":"Quant","id":"016_fp8_multi_latent_attention_qkv_projection","name":"FP8 multi latent attention QKV projection","group":"Projections and GEMM","op":"FP8 MLA Q and KV projections with both latent RMSNorms","direction":"forward","model":"deepseek-ai/DeepSeek-V3","workloads":16,"kernel":{"dir":"kernels/Quant/016_fp8_multi_latent_attention_qkv_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":6579,"bytes":377078},{"path":"kernel.h","lines":153,"bytes":13036},{"path":"main.cpp","lines":1049,"bytes":70841}],"idea":"Quantizes input and weights to block-scaled FP8; FP8 down-proj GEMM, latent RMSNorms with requant, persistent tcgen05 FP8 up-proj GEMMs; two streams in one CUDA graph","origin":"search agent (Claude)","result":{"public":true,"sol":0.941222,"speedup":9.194}}},{"board":"Quant","id":"017_fp8_shared_expert_mlp","name":"FP8 shared expert MLP","group":"MLP and MoE","op":"FP8 shared-expert SwiGLU MLP (weight scales given)","direction":"forward","model":"deepseek-ai/DeepSeek-V3","workloads":16,"kernel":{"dir":"kernels/Quant/017_fp8_shared_expert_mlp","language":"CUDA C++","files":[{"path":"bw2wg.h","lines":4160,"bytes":275669},{"path":"kernel.cu","lines":1766,"bytes":101236},{"path":"kernel.h","lines":21,"bytes":1559},{"path":"main.cpp","lines":55,"bytes":2794},{"path":"smallm.cu","lines":1308,"bytes":70433}],"idea":"Quant kernels feed blockwise-scaled FP8 tcgen05 GEMMs (CUTLASS and custom); gate+up as one GEMM, SwiGLU + FP8 requant fused at larger M; small M streams weights; PDL.","origin":"search agent (Claude)","result":{"public":true,"sol":0.945265,"speedup":9.3988}}},{"board":"Quant","id":"018_nvfp4_attention_output_projection_with_residual","name":"NVFP4 attention output projection with residual","group":"Projections and GEMM","op":"NVFP4 o_proj GEMM + residual","direction":"forward","model":"mratsim/Nova-70B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/018_nvfp4_attention_output_projection_with_residual","language":"CUDA C++","files":[{"path":"collective_anyn.hpp","lines":1102,"bytes":53020},{"path":"kernel.cu","lines":4461,"bytes":227878},{"path":"kernel.h","lines":28,"bytes":1386},{"path":"main.cpp","lines":329,"bytes":15889}],"idea":"Front kernel quantizes to NVFP4 (global amax by grid barrier, or a DSMEM cluster gather when small); CUTLASS block-scaled FP4 GEMM adds the residual in its epilogue","origin":"search agent (Claude)","result":{"public":true,"sol":0.938069,"speedup":12.6459}}},{"board":"Quant","id":"019_nvfp4_grouped_query_attention","name":"NVFP4 grouped query attention","group":"Attention","op":"NVFP4 GQA attention block: QKV, RoPE, attention, o_proj","direction":"forward","model":"mratsim/Nova-70B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/019_nvfp4_grouped_query_attention","language":"CUDA C++","files":[{"path":"array_pre.hpp","lines":1598,"bytes":73332},{"path":"cutlass/gemm/collective/builders/sm100_common.inl","lines":1010,"bytes":46550},{"path":"cutlass/gemm/collective/sm100_blockscaled_mma_array_warpspecialized.hpp","lines":1372,"bytes":64902},{"path":"cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp","lines":1125,"bytes":52635},{"path":"kernel.cu","lines":9777,"bytes":599675},{"path":"kernel.h","lines":123,"bytes":8664},{"path":"main.cpp","lines":306,"bytes":17218}],"idea":"CUTLASS block-scaled NVFP4 tcgen05 GEMMs (Q/K/V as one grouped GEMM), custom amax and FP4 quant kernels, persistent warp-specialized tcgen05 causal attention; PDL between launches.","origin":"search agent (Claude)","result":{"public":true,"sol":0.956118,"speedup":13.3457}}},{"board":"Quant","id":"020_nvfp4_linear_layer","name":"NVFP4 linear layer","group":"Projections and GEMM","op":"NVFP4 linear (8192 x 8192)","direction":"forward","model":"mratsim/Nova-70B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/020_nvfp4_linear_layer","language":"CUDA C++","files":[{"path":"cute/arch/copy_sm90_tma.hpp","lines":1511,"bytes":58872},{"path":"cutlass/arch/barrier.h","lines":957,"bytes":32060},{"path":"cutlass/gemm/collective/builders/sm100_common.inl","lines":1011,"bytes":46588},{"path":"cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp","lines":1294,"bytes":63087},{"path":"cutlass_api.h","lines":35,"bytes":2424},{"path":"cutlass_cfg.cuh","lines":290,"bytes":15875},{"path":"cutlass_gemm_b.cu","lines":20,"bytes":984},{"path":"cutlass_gemm_h.cu","lines":28,"bytes":1474},{"path":"kernel.cu","lines":3136,"bytes":167106},{"path":"kernel.h","lines":57,"bytes":4100},{"path":"main.cpp","lines":675,"bytes":32987},{"path":"nvfp4_nosmem_epi.cuh","lines":278,"bytes":14301},{"path":"nvfp4_tma_epi.cuh","lines":244,"bytes":13052}],"idea":"Quant kernel (grid barrier for the global amax) packs x to NVFP4 + scales, then a CUTLASS block-scaled tcgen05 GEMM; small M uses a custom weight-stationary GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.919794,"speedup":9.3304}}},{"board":"Quant","id":"021_fp8_mamba2_in_projection","name":"FP8 Mamba2 in projection","group":"State space and conv","op":"FP8 Mamba2 in-projection GEMM","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/021_fp8_mamba2_in_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":9359,"bytes":504457},{"path":"kernel.h","lines":17,"bytes":1225},{"path":"main.cpp","lines":406,"bytes":18905}],"idea":"Quantize kernel plus a persistent block-scaled FP8 tcgen05 GEMM, PDL-chained and graph-launched; for small M the GEMM quantizes the bf16 weight on chip.","origin":"search agent (Claude)","result":{"public":true,"sol":0.852468,"speedup":3.2187}}},{"board":"Quant","id":"022_fp8_mamba2_out_projection","name":"FP8 Mamba2 out projection","group":"State space and conv","op":"FP8 Mamba2 out-projection GEMM (pre-quantized)","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8","workloads":16,"kernel":{"dir":"kernels/Quant/022_fp8_mamba2_out_projection","language":"CuTe DSL","files":[{"path":"main.py","lines":5615,"bytes":397963}],"idea":"CuTe DSL blockwise FP8 GEMM built on the CUTLASS example: persistent warp-specialized tcgen05 (2-SM and 1-SM variants), per-K-block fp32 scaling; variant picked by M.","origin":"search agent (Claude)","result":{"public":true,"sol":0.847577,"speedup":3.7843}}},{"board":"Quant","id":"023_fp8_mamba2_ssm_discretization","name":"FP8 Mamba2 SSM discretization","group":"State space and conv","op":"FP8 Mamba2 SSM discretisation","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8","workloads":6,"kernel":{"dir":"kernels/Quant/023_fp8_mamba2_ssm_discretization","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1863,"bytes":104766},{"path":"kernel.h","lines":12,"bytes":615},{"path":"main.cpp","lines":145,"bytes":8627}],"idea":"One fused kernel: per-row and weight amax, e4m3 quantize, FP8 mma.sync dt projection, softplus + clamp, then dA and a wide vector-store dB stream","origin":"search agent (Claude)","result":{"public":true,"sol":0.819819,"speedup":4.6914}}},{"board":"Quant","id":"024_nvfp4_attention_output_projection","name":"NVFP4 attention output projection","group":"Projections and GEMM","op":"NVFP4 o_proj GEMM (FP32 input)","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/024_nvfp4_attention_output_projection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8897,"bytes":546261},{"path":"kernel.h","lines":42,"bytes":1190},{"path":"main.cpp","lines":94,"bytes":5913}],"idea":"Fused amax + NVFP4 quantize (grid barrier), then a tcgen05 mxf4nvf4 block-scaled GEMM (1- or 2-CTA); some routes do both in one launch; route by M.","origin":"search agent (Claude)","result":{"public":true,"sol":0.870568,"speedup":5.5888}}},{"board":"Quant","id":"025_nvfp4_attention_qkv_projection","name":"NVFP4 attention QKV projection","group":"Projections and GEMM","op":"NVFP4 Q, K, V projections (FP32 input)","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/025_nvfp4_attention_qkv_projection","language":"CUDA C++","files":[{"path":"barrier_study.cu","lines":172,"bytes":9305},{"path":"cl_common.h","lines":1096,"bytes":66408},{"path":"kernel.cu","lines":6030,"bytes":354396},{"path":"kernel.h","lines":24,"bytes":1374},{"path":"kernel_early.cu","lines":67,"bytes":4921},{"path":"kernel_kt.cu","lines":53,"bytes":3412},{"path":"kernel_pipe.cu","lines":49,"bytes":3175},{"path":"main.cpp","lines":83,"bytes":5253},{"path":"ovl.h","lines":251,"bytes":16643},{"path":"study.h","lines":3,"bytes":258},{"path":"tl.h","lines":11,"bytes":495}],"idea":"Cooperative kernel (grid barrier for global amax) quantizes to NVFP4; a CUTLASS block-scaled tcgen05 GEMM runs Q, K, V as one wide GEMM; CUDA graph.","origin":"search agent (Claude)","result":{"public":true,"sol":0.96716,"speedup":22.067}}},{"board":"Quant","id":"026_nvfp4_mamba2_out_projection","name":"NVFP4 Mamba2 out projection","group":"State space and conv","op":"NVFP4 Mamba2 out-projection (FP4 act + weight)","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/026_nvfp4_mamba2_out_projection","language":"CUDA C++","files":[{"path":"dual.cuh","lines":657,"bytes":37668},{"path":"dual240.cuh","lines":357,"bytes":19257},{"path":"fused.cuh","lines":243,"bytes":16013},{"path":"kernel.cu","lines":640,"bytes":32401},{"path":"kernel.h","lines":6,"bytes":291},{"path":"main.cpp","lines":52,"bytes":2498},{"path":"official_probe.cuh","lines":481,"bytes":31598},{"path":"pairdual192.cuh","lines":447,"bytes":24132},{"path":"pairdual240.cuh","lines":787,"bytes":48358},{"path":"pd2t.cuh","lines":534,"bytes":31245},{"path":"pmid.cuh","lines":1135,"bytes":72172},{"path":"ppair.cuh","lines":1084,"bytes":64611},{"path":"psmall.cuh","lines":634,"bytes":39458},{"path":"ptp.cuh","lines":360,"bytes":20115},{"path":"small.cuh","lines":1262,"bytes":74793},{"path":"swab.cuh","lines":763,"bytes":44874},{"path":"wide.cuh","lines":521,"bytes":28614}],"idea":"Hand-written tcgen05 NVFP4 GEMMs by token count (swap-AB, 1-SM or 2-SM pairs) that read raw block scales; else a scale reorder plus a CUTLASS block-scaled GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.792671,"speedup":3.6413}}},{"board":"Quant","id":"027_nvfp4_moe_router_projection","name":"NVFP4 MoE router projection","group":"MLP and MoE","op":"NVFP4 MoE router GEMM + sigmoid + bias + top-6","direction":"forward","model":"nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/027_nvfp4_moe_router_projection","language":"CUDA C++","files":[{"path":"ebench.h","lines":208,"bytes":9934},{"path":"kernel.cu","lines":6123,"bytes":330465},{"path":"kernel.h","lines":9,"bytes":610},{"path":"main.cpp","lines":164,"bytes":9801},{"path":"qbench.h","lines":243,"bytes":13535}],"idea":"Amax kernel, then one PDL kernel: on-chip NVFP4 quantize, swap-AB tcgen05 GEMM (cluster split-K via DSMEM when small), and a warp-per-token sigmoid + top-6 epilogue.","origin":"search agent (Claude)","result":{"public":true,"sol":0.976918,"speedup":20.9119}}},{"board":"Quant","id":"028_nvfp4_attention_qkv_projection_with_rope","name":"NVFP4 attention QKV projection with RoPE","group":"Projections and GEMM","op":"NVFP4 QKV projection + QK-RMSNorm + RoPE","direction":"forward","model":"nvidia/Qwen3-8B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/028_nvfp4_attention_qkv_projection_with_rope","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3231,"bytes":193956},{"path":"kernel.h","lines":19,"bytes":968},{"path":"main.cpp","lines":39,"bytes":1818},{"path":"qkv_gemm_kernel.hpp","lines":935,"bytes":41285}],"idea":"A prep step finds the global amax and quantizes activations to NVFP4; a CUTLASS block-scaled FP4 GEMM applies QK-RMSNorm and RoPE in its epilogue","origin":"search agent (Claude)","result":{"public":true,"sol":0.966829,"speedup":20.8094}}},{"board":"Quant","id":"029_nvfp4_fused_mlp_silu_gating","name":"NVFP4 fused MLP SiLU gating","group":"MLP and MoE","op":"NVFP4 SwiGLU MLP (gate, up, down)","direction":"forward","model":"nvidia/Qwen3-8B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/029_nvfp4_fused_mlp_silu_gating","language":"CUDA C++","files":[{"path":"cut_all_a.cu","lines":50,"bytes":2431},{"path":"cut_all_pre.cu","lines":10,"bytes":370},{"path":"cut_cfg.h","lines":344,"bytes":22929},{"path":"cut_gu_cfg.h","lines":213,"bytes":11854},{"path":"cut_gu_ip_cfg.h","lines":476,"bytes":30696},{"path":"gu_mainloop.hpp","lines":1387,"bytes":69119},{"path":"kernel.cu","lines":5967,"bytes":335832},{"path":"kernel.h","lines":6,"bytes":378},{"path":"main.cpp","lines":48,"bytes":2633},{"path":"tl.h","lines":10,"bytes":763}],"idea":"Block-scaled NVFP4 tcgen05 GEMMs: x is quantized, gate and up share one MMA with SiLU gating in the epilogue, hidden re-quantized for the down GEMM; CUDA graph.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.931935,"speedup":11.0347}}},{"board":"Quant","id":"030_nvfp4_fused_decoder_layer_pre_norm_attention","name":"NVFP4 fused decoder layer pre norm attention","group":"Attention","op":"NVFP4 decoder pre-norm + full attention block","direction":"forward","model":"nvidia/Qwen3-14B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/030_nvfp4_fused_decoder_layer_pre_norm_attention","language":"Triton","files":[{"path":"attn_cute.py","lines":3643,"bytes":222320},{"path":"attn_q1.py","lines":1442,"bytes":89724},{"path":"attn_q1c.py","lines":1424,"bytes":86267},{"path":"attn_q1cn.py","lines":740,"bytes":44989},{"path":"front_cute.py","lines":715,"bytes":42109},{"path":"gemm_cute.py","lines":2059,"bytes":140242},{"path":"gemm_o_cute.py","lines":1442,"bytes":93840},{"path":"main.py","lines":2635,"bytes":115424}],"idea":"PDL chain: RMSNorm + NVFP4 quantize, CuTe DSL tcgen05 QKV GEMM with QK-norm + RoPE epilogue, persistent tcgen05 attention (Triton if short), NVFP4 O GEMM.","origin":"edited after the search by Claude agents","result":{"public":true,"sol":0.971073,"speedup":20.6684}}},{"board":"Quant","id":"031_nvfp4_grouped_query_attention_with_kv_repeat","name":"NVFP4 grouped query attention with KV repeat","group":"Attention","op":"NVFP4-quantized attention core (FP4 QK^T and PV)","direction":"forward","model":"nvidia/Qwen3-14B-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/031_nvfp4_grouped_query_attention_with_kv_repeat","language":"CUDA C++","files":[{"path":"fused.cu","lines":2883,"bytes":162911},{"path":"kernel.cu","lines":3471,"bytes":214192},{"path":"kernel.h","lines":17,"bytes":1330},{"path":"main.cpp","lines":205,"bytes":9179}],"idea":"NVFP4-quantizes Q, K, V, then FP4 tcgen05 attention: row stats first, then the weights and a re-quantized P @ V (single pass for short rows); masked tiles skipped.","origin":"search agent (Claude)","result":{"public":true,"sol":0.996664,"speedup":101.6263}}},{"board":"Quant","id":"032_nvfp4_moe_expert_linear_with_gating","name":"NVFP4 MoE expert linear with gating","group":"MLP and MoE","op":"NVFP4 SwiGLU MLP (one expert-sized MLP, 2048 -> 5120)","direction":"forward","model":"nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/032_nvfp4_moe_expert_linear_with_gating","language":"CUDA C++","files":[{"path":"alt.cu","lines":48,"bytes":2514},{"path":"alt2.cu","lines":48,"bytes":2463},{"path":"alt3.cu","lines":40,"bytes":2061},{"path":"gemm_ops.h","lines":23,"bytes":1539},{"path":"gemm_part0.cu","lines":10,"bytes":263},{"path":"gemm_part1.cu","lines":9,"bytes":245},{"path":"gemm_part2.cu","lines":11,"bytes":281},{"path":"gemm_part3.cu","lines":10,"bytes":272},{"path":"gemm_part4.cu","lines":8,"bytes":225},{"path":"gemm_part5.cu","lines":8,"bytes":225},{"path":"gu_collective.h","lines":1376,"bytes":71985},{"path":"kernel.cu","lines":1257,"bytes":78897},{"path":"kernel.h","lines":26,"bytes":973},{"path":"kernel_impl.h","lines":3489,"bytes":198782},{"path":"main.cpp","lines":55,"bytes":2667},{"path":"probe.h","lines":39,"bytes":2301},{"path":"probe_cfg.h","lines":2,"bytes":117},{"path":"sm100_kernel_mma_first.h","lines":1141,"bytes":53808}],"idea":"CUDA graph of four PDL launches: input amax + NVFP4 quant, CUTLASS NVFP4 gate/up GEMM with fused SwiGLU + amax epilogue, NVFP4 requant, CUTLASS NVFP4 down GEMM.","origin":"search agent (Claude)","result":{"public":true,"sol":0.972733,"speedup":23.1674}}},{"board":"Quant","id":"033_nvfp4_moe_routing_with_topk_selection","name":"NVFP4 MoE routing with topk selection","group":"MLP and MoE","op":"NVFP4 router GEMM + softmax + top-10","direction":"forward","model":"nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4","workloads":16,"kernel":{"dir":"kernels/Quant/033_nvfp4_moe_routing_with_topk_selection","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8088,"bytes":509512},{"path":"kernel.h","lines":14,"bytes":981},{"path":"main.cpp","lines":407,"bytes":23637}],"idea":"Amax and NVFP4 quantize kernels, a tcgen05 block-scaled FP4 router GEMM (split-K, or cluster-fused top-k), then top-10 on raw logits with renorm; one CUDA graph","origin":"search agent (Claude)","result":{"public":true,"sol":0.984852,"speedup":37.9962}}},{"board":"FlashInfer","id":"001_fused_add_rmsnorm_h2048","name":"Fused add RMSNorm h2048","group":"Normalization","op":"fused add + RMSNorm","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b","workloads":7,"kernel":{"dir":"kernels/FlashInfer/001_fused_add_rmsnorm_h2048","language":"CUDA C++","files":[{"path":"kernel.cu","lines":843,"bytes":51004},{"path":"kernel.h","lines":11,"bytes":740},{"path":"main.cpp","lines":40,"bytes":2017}],"idea":"By row count: few rows get several CTAs per row, each redoing the sum and storing a slice; many rows pack two rows per CTA; PDL.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"002_fused_add_rmsnorm_h4096","name":"Fused add RMSNorm h4096","group":"Normalization","op":"fused add + RMSNorm","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b","workloads":14,"kernel":{"dir":"kernels/FlashInfer/002_fused_add_rmsnorm_h4096","language":"CUDA C++","files":[{"path":"kernel.cu","lines":682,"bytes":42841},{"path":"kernel.h","lines":5,"bytes":304},{"path":"main.cpp","lines":102,"bytes":6144}],"idea":"By row count: tiny batches split each row over a CTA pair swapping sums via DSMEM; larger ones use L2 cache hints; CUDA graph replay.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"003_fused_add_rmsnorm_h7168","name":"Fused add RMSNorm h7168","group":"Normalization","op":"fused add + RMSNorm","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1","workloads":8,"kernel":{"dir":"kernels/FlashInfer/003_fused_add_rmsnorm_h7168","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1826,"bytes":93954},{"path":"kernel.h","lines":4,"bytes":185},{"path":"main.cpp","lines":62,"bytes":3704}],"idea":"By batch size: small batches split each row over CTAs that each re-read it for the sum; large batches give CTAs whole rows; CUDA graph.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"004_gemm_n128_k2048","name":"GEMM n128 k2048","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen 3 30B A3B moe.gate)","workloads":25,"kernel":{"dir":"kernels/FlashInfer/004_gemm_n128_k2048","language":"CUDA C++","files":[{"path":"kernel.cu","lines":932,"bytes":62536},{"path":"kernel.h","lines":8,"bytes":526},{"path":"krd.cuh","lines":1270,"bytes":71537},{"path":"ksp.cuh","lines":244,"bytes":14779},{"path":"launch_rec.h","lines":55,"bytes":2813},{"path":"main.cpp","lines":75,"bytes":4388},{"path":"mc2.cuh","lines":779,"bytes":51597},{"path":"mc2p.cuh","lines":214,"bytes":11957},{"path":"mck.cuh","lines":564,"bytes":31653},{"path":"mma_gemv.cuh","lines":1057,"bytes":66891},{"path":"mma_small.cuh","lines":32,"bytes":2154},{"path":"persist.cuh","lines":181,"bytes":9319},{"path":"rd1.cuh","lines":374,"bytes":18219},{"path":"split2.cuh","lines":197,"bytes":10152},{"path":"swap.cuh","lines":167,"bytes":8265},{"path":"v8.cuh","lines":939,"bytes":51497}],"idea":"By M: small and mid M mostly use mma.sync with operands loaded straight into registers and split-K; large M uses tcgen05 TMA GEMMs (2-SM pairs, swap-AB, persistent).","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"005_gemm_n256_k7168","name":"GEMM n256 k7168","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3 moe.gate)","workloads":17,"kernel":{"dir":"kernels/FlashInfer/005_gemm_n256_k7168","language":"CUDA C++","files":[{"path":"cutlass_gemm.cu","lines":267,"bytes":15257},{"path":"kernel.cu","lines":4381,"bytes":259939},{"path":"kernel.h","lines":39,"bytes":3251},{"path":"m80.cu","lines":107,"bytes":6751},{"path":"m80_base.cuh","lines":605,"bytes":33553},{"path":"main.cpp","lines":205,"bytes":12106}],"idea":"Picks a kernel by M: small M splits K over a CTA cluster (FMA or mma.sync, DSMEM reduce); larger M uses swap-AB tcgen05 kernels or CUTLASS SM100.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"006_gemm_n2048_k4096","name":"GEMM n2048 k4096","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen 3 30B A3B attn.o_proj)","workloads":29,"kernel":{"dir":"kernels/FlashInfer/006_gemm_n2048_k4096","language":"CUDA C++","files":[{"path":"fused.cu","lines":2703,"bytes":144740},{"path":"kernel.cu","lines":554,"bytes":36722},{"path":"kernel.h","lines":88,"bytes":8902},{"path":"kernel_ext.cu","lines":81,"bytes":6724},{"path":"kernel_ext2.cu","lines":36,"bytes":1437},{"path":"kernel_ext3.cu","lines":194,"bytes":12096},{"path":"kernel_ext4.cu","lines":39,"bytes":1995},{"path":"main.cpp","lines":541,"bytes":29812},{"path":"skinny.cu","lines":1502,"bytes":83410},{"path":"sm100_mma_ws_padb.hpp","lines":693,"bytes":30019}],"idea":"Picks a kernel by M: swap-AB mma.sync for tiny M, swap-AB tcgen05 split-K with a DSMEM cluster reduce for mid M, CUTLASS SM100 2-SM for large M.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"007_gemm_n4096_k4096","name":"GEMM n4096 k4096","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B attn.o_proj)","workloads":43,"kernel":{"dir":"kernels/FlashInfer/007_gemm_n4096_k4096","language":"CUDA C++","files":[{"path":"drvl.h","lines":41,"bytes":2379},{"path":"impl.h","lines":4527,"bytes":334753},{"path":"kernel.cu","lines":131,"bytes":11951},{"path":"kernel.h","lines":4,"bytes":204},{"path":"kernel42.cu","lines":329,"bytes":19893},{"path":"kernel43.cu","lines":36,"bytes":3415},{"path":"kernel44.cu","lines":7,"bytes":482},{"path":"kernel45.cu","lines":29,"bytes":2138},{"path":"kernel46.cu","lines":34,"bytes":2692},{"path":"kernel47.cu","lines":21,"bytes":1706},{"path":"main.cpp","lines":36,"bytes":2244},{"path":"skl.h","lines":994,"bytes":54181}],"idea":"Picks by M: small M streams weights with mma.sync; larger M runs CUTLASS swap-AB 2-SM tcgen05 GEMMs with TMA weight multicast in clusters, persistent tiles for big M.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"008_gemm_n4096_k14336","name":"GEMM n4096 k14336","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B mlp.down_proj)","workloads":43,"kernel":{"dir":"kernels/FlashInfer/008_gemm_n4096_k14336","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8557,"bytes":537689},{"path":"kernel.h","lines":23,"bytes":1500},{"path":"main.cpp","lines":15,"bytes":794}],"idea":"Picks by M: tiny M streams weights into mma.sync; mid M uses swap-AB tcgen05 kernels, mostly cluster split-K with DSMEM reduce; large M uses 2-SM tcgen05 tiles.","origin":"edited after the search by Claude agents","result":{"public":false}}},{"board":"FlashInfer","id":"009_gemm_n5120_k2048","name":"GEMM n5120 k2048","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen 3 30B A3B attn.qkv_proj)","workloads":25,"kernel":{"dir":"kernels/FlashInfer/009_gemm_n5120_k2048","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1226,"bytes":65924},{"path":"kernel.h","lines":5,"bytes":239},{"path":"main.cpp","lines":17,"bytes":768}],"idea":"By M: small M runs custom 1-D bulk-copy + mma.sync kernels (K split across warps); larger M runs CUTLASS tcgen05 GEMMs (swap-AB, 2-SM clusters); PDL.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"010_gemm_n6144_k4096","name":"GEMM n6144 k4096","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B attn.qkv_proj)","workloads":43,"kernel":{"dir":"kernels/FlashInfer/010_gemm_n6144_k4096","language":"CUDA C++","files":[{"path":"cutlass/arch/barrier.h","lines":972,"bytes":32387},{"path":"gemm_cutlass.cu","lines":581,"bytes":34988},{"path":"gemm_sw160.cu","lines":17,"bytes":1062},{"path":"gemm_sw192.cu","lines":17,"bytes":1299},{"path":"gemm_sw224.cu","lines":8,"bytes":667},{"path":"gemm_sw256.cu","lines":8,"bytes":579},{"path":"kernel_big.cu","lines":1061,"bytes":60358},{"path":"kernel_mixed.cu","lines":735,"bytes":39073},{"path":"main.cpp","lines":108,"bytes":6558},{"path":"persist.cu","lines":1042,"bytes":62756},{"path":"splitk_2sm.cuh","lines":245,"bytes":12159},{"path":"splitk_dsmem.cuh","lines":365,"bytes":17617},{"path":"stream16.cu","lines":131,"bytes":6181},{"path":"stream_mc.cu","lines":720,"bytes":37506},{"path":"stream_mc2h.cu","lines":498,"bytes":25824},{"path":"sw_common.h","lines":322,"bytes":18221},{"path":"wide2sm.cuh","lines":647,"bytes":33994},{"path":"wpf.h","lines":161,"bytes":8677}],"idea":"Small M: TMA weight-streaming kernels (mma.sync or swap-AB tcgen05, split-K); larger M: CUTLASS or custom 2-SM tcgen05 GEMMs with even work per CTA pair.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"011_gemm_n28672_k4096","name":"GEMM n28672 k4096","group":"Projections and GEMM","op":"dense GEMM C = A @ B^T (fp16)","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B mlp.gate_up_proj)","workloads":43,"kernel":{"dir":"kernels/FlashInfer/011_gemm_n28672_k4096","language":"CUDA C++","files":[{"path":"cutlass_gemm.cu","lines":700,"bytes":43753},{"path":"kernel.cu","lines":9692,"bytes":580818},{"path":"kernel.h","lines":19,"bytes":1445},{"path":"main.cpp","lines":102,"bytes":5389}],"idea":"Picks a kernel by M: small M uses hand-written tcgen05 kernels (mostly swap-AB) that spread the weight rows evenly over all SMs; large M uses CUTLASS SM100.","origin":"edited after the search by Claude agents","result":{"public":false}}},{"board":"FlashInfer","id":"012_gqa_paged_decode_h32_kv4_d128_ps1","name":"GQA paged decode h32 kv4 d128 ps1","group":"Attention","op":"GQA paged decode attention (page size 1)","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B)","workloads":48,"kernel":{"dir":"kernels/FlashInfer/012_gqa_paged_decode_h32_kv4_d128_ps1","language":"CUDA C++","files":[{"path":"kernel.cu","lines":3925,"bytes":233261},{"path":"kernel.h","lines":4,"bytes":247},{"path":"main.cpp","lines":50,"bytes":2528}],"idea":"Split-KV decode on mma.sync: KV pages loaded by TMA or cp.async, partial results merged across a CTA cluster via DSMEM; config picked by batch size and length.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"013_gqa_paged_decode_h32_kv8_d128_ps1","name":"GQA paged decode h32 kv8 d128 ps1","group":"Attention","op":"GQA paged decode attention (page size 1)","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B)","workloads":48,"kernel":{"dir":"kernels/FlashInfer/013_gqa_paged_decode_h32_kv8_d128_ps1","language":"CUDA C++","files":[{"path":"kernel.cu","lines":5376,"bytes":303190},{"path":"kernel.h","lines":105,"bytes":6706},{"path":"main.cpp","lines":983,"bytes":50620}],"idea":"Split-KV flash decoding with mma.sync and cp.async K/V row gathers; picks a kernel by batch and length; partial results merged through DSMEM clusters or a workspace.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"014_gqa_paged_prefill_causal_h32_kv4_d128_ps1","name":"GQA paged prefill causal h32 kv4 d128 ps1","group":"Attention","op":"GQA paged prefill attention, causal (page size 1)","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B during incremental prefill)","workloads":30,"kernel":{"dir":"kernels/FlashInfer/014_gqa_paged_prefill_causal_h32_kv4_d128_ps1","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8234,"bytes":420018},{"path":"kernel.h","lines":21,"bytes":1492},{"path":"main.cpp","lines":242,"bytes":13625}],"idea":"By shape: long KV runs a persistent warp-specialized tcgen05 kernel (TMA page gathers, GQA heads as MMA rows); other shapes use smaller tcgen05, mma.sync or CUDA-core kernels.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"015_gqa_paged_prefill_causal_h32_kv8_d128_ps1","name":"GQA paged prefill causal h32 kv8 d128 ps1","group":"Attention","op":"GQA paged prefill attention, causal (page size 1)","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B during incremental prefill)","workloads":38,"kernel":{"dir":"kernels/FlashInfer/015_gqa_paged_prefill_causal_h32_kv8_d128_ps1","language":"CUDA C++","files":[{"path":"decode_path.cu","lines":1736,"bytes":109962},{"path":"decode_sks.cu","lines":1536,"bytes":94396},{"path":"gqa_impl.cuh","lines":3560,"bytes":211336},{"path":"gqa_impl_spk.cuh","lines":3756,"bytes":221393},{"path":"kernel.cu","lines":40,"bytes":2950},{"path":"kernel.h","lines":36,"bytes":4425},{"path":"large_hybrid.cu","lines":64,"bytes":4174},{"path":"main.cpp","lines":201,"bytes":10771},{"path":"small_kpc4_spk.cu","lines":77,"bytes":5331},{"path":"small_kpc4_tq1.cu","lines":29,"bytes":2146},{"path":"small_kpc4_tq4.cu","lines":55,"bytes":3454},{"path":"tiny_path.cu","lines":471,"bytes":30037},{"path":"tmap_fill.h","lines":42,"bytes":2266}],"idea":"FA2-style mma.sync tiles with cp.async K/V gathers and online softmax; extra CTAs write rows that see no keys using TMA bulk stores; picks a kernel by shape.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"016_gqa_ragged_prefill_causal_h32_kv4_d128","name":"GQA ragged prefill causal h32 kv4 d128","group":"Attention","op":"GQA ragged prefill attention, causal","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B during total prefill)","workloads":15,"kernel":{"dir":"kernels/FlashInfer/016_gqa_ragged_prefill_causal_h32_kv4_d128","language":"CUDA C++","files":[{"path":"kernel.cu","lines":8673,"bytes":458403},{"path":"kernel.h","lines":6,"bytes":390},{"path":"main.cpp","lines":89,"bytes":4491}],"idea":"By token count: small inputs run mma.sync warp kernels; large ones run warp-specialized tcgen05 flash kernels (TMA rings, P kept in TMEM), persistent for the largest.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"017_gqa_ragged_prefill_causal_h32_kv8_d128","name":"GQA ragged prefill causal h32 kv8 d128","group":"Attention","op":"GQA ragged prefill attention, causal","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B during total prefill)","workloads":21,"kernel":{"dir":"kernels/FlashInfer/017_gqa_ragged_prefill_causal_h32_kv8_d128","language":"CUDA C++","files":[{"path":"fa2.cu","lines":4931,"bytes":278872},{"path":"kernel.cu","lines":3203,"bytes":205634},{"path":"kernel.h","lines":14,"bytes":1016},{"path":"main.cpp","lines":167,"bytes":9598},{"path":"np.cu","lines":935,"bytes":52018},{"path":"pdl.h","lines":189,"bytes":9679}],"idea":"FlashAttention-style tcgen05 kernel: query heads of one KV head share each K/V load, S/P/O in TMEM, lazy rescale, heavy tiles first; small inputs use mma.sync.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"018_mla_paged_decode_h16_ckv512_kpe64_ps1","name":"MLA paged decode h16 ckv512 kpe64 ps1","group":"Attention","op":"MLA paged decode attention (absorbed, ckv 512 + kpe 64, page size 1)","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3 with tensor parallel size 8)","workloads":47,"kernel":{"dir":"kernels/FlashInfer/018_mla_paged_decode_h16_ckv512_kpe64_ps1","language":"CUDA C++","files":[{"path":"kernel.cu","lines":10054,"bytes":616717},{"path":"kernel.h","lines":16,"bytes":1159},{"path":"main.cpp","lines":143,"bytes":8644}],"idea":"mma.sync flash-decode with cp.async or TMA-gather loads; split-KV partials merged by a PDL combine kernel or over DSMEM in clusters; picked by batch and length","origin":"edited after the search by Claude agents","result":{"public":false}}},{"board":"FlashInfer","id":"019_mla_paged_prefill_causal_h16_ckv512_kpe64_ps1","name":"MLA paged prefill causal h16 ckv512 kpe64 ps1","group":"Attention","op":"MLA paged prefill attention, causal (absorbed)","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3 during incremental prefill with tensor parallel size 8)","workloads":38,"kernel":{"dir":"kernels/FlashInfer/019_mla_paged_prefill_causal_h16_ckv512_kpe64_ps1","language":"CUDA C++","files":[{"path":"decode.cu","lines":6445,"bytes":352273},{"path":"kernel.cu","lines":7266,"bytes":423061},{"path":"kernel.h","lines":311,"bytes":19321},{"path":"main.cpp","lines":1643,"bytes":89156},{"path":"small.cu","lines":2085,"bytes":111377}],"idea":"Picks a path by size: tcgen05 flash attention on tiles packing tokens x heads, KV gathered by cp.async or pre-packed for TMA; small inputs use mma.sync kernels.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"020_moe_fp8_block_scale_ds_routing_topk8_ng8_kg4_e32_h7168_i2048","name":"MoE FP8 block scale ds routing topk8 ng8 kg4 e32 h7168 i2048","group":"MLP and MoE","op":"FP8 block-scale MoE: DeepSeek routing + 2 grouped GEMMs (32 local experts)","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1","workloads":19,"kernel":{"dir":"kernels/FlashInfer/020_moe_fp8_block_scale_ds_routing_topk8_ng8_kg4_e32_h7168_i2048","language":"CUDA C++","files":[{"path":"kernel.cu","lines":10413,"bytes":612822},{"path":"kernel.h","lines":56,"bytes":3187},{"path":"main.cpp","lines":277,"bytes":14615}],"idea":"Routing groups tokens by expert; two warp-specialized tcgen05 FP8 grouped GEMMs (TMA, swap-AB, block-scale promotion) with SwiGLU + FP8 requant in between; tile size set by token count.","origin":"edited after the search by Claude agents","result":{"public":false}}},{"board":"FlashInfer","id":"021_rmsnorm_h128","name":"RMSNorm h128","group":"Normalization","op":"RMSNorm","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B. Epsilon is fixed at 1e-6)","workloads":14,"kernel":{"dir":"kernels/FlashInfer/021_rmsnorm_h128","language":"Triton + CuTe DSL","files":[{"path":"cute_mid.py","lines":1469,"bytes":98559},{"path":"cute_small.py","lines":2496,"bytes":169442},{"path":"gluon_huge.py","lines":1021,"bytes":65771},{"path":"gluon_v4f.py","lines":1341,"bytes":92903},{"path":"kernel.py","lines":506,"bytes":30931}],"idea":"By row count: CuTe DSL kernels in CTA clusters (small, some mid sizes) or Gluon (Triton) kernels otherwise; 256-bit loads, PDL, L2 cache hints.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"022_rmsnorm_h512","name":"RMSNorm h512","group":"Normalization","op":"RMSNorm","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3/R1. Epsilon is fixed at 1e-6)","workloads":8,"kernel":{"dir":"kernels/FlashInfer/022_rmsnorm_h512","language":"CuTe DSL","files":[{"path":"main.py","lines":1897,"bytes":117583}],"idea":"CuTe DSL by row count: small batches use PDL, an L2 bulk-prefetch warp and tensor-core (mma.sync) row sums; large batches use one warp per row.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"023_rmsnorm_h1536","name":"RMSNorm h1536","group":"Normalization","op":"RMSNorm","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3/R1. Epsilon is fixed at 1e-6)","workloads":8,"kernel":{"dir":"kernels/FlashInfer/023_rmsnorm_h1536","language":"CuTe DSL","files":[{"path":"main.py","lines":2158,"bytes":120949}],"idea":"CuTe DSL, picked by row count: a thread group per row (two CTAs per row for tiny batches), a persistent warp-per-row kernel for large ones; PDL.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"024_rmsnorm_h2048","name":"RMSNorm h2048","group":"Normalization","op":"RMSNorm","direction":"forward","model":"flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B. Epsilon is fixed at 1e-6)","workloads":7,"kernel":{"dir":"kernels/FlashInfer/024_rmsnorm_h2048","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1368,"bytes":95752},{"path":"kernel.h","lines":4,"bytes":206},{"path":"main.cpp","lines":79,"bytes":5014}],"idea":"Few rows: two CTAs per row, extra CTAs that prefetch rows into L2, mma.sync warp sums; many rows: one CTA per row pair; PDL.","origin":"search agent (Claude)","result":{"public":false}}},{"board":"FlashInfer","id":"025_rmsnorm_h4096","name":"RMSNorm h4096","group":"Normalization","op":"RMSNorm","direction":"forward","model":"flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B. Epsilon is fixed at 1e-5)","workloads":14,"kernel":{"dir":"kernels/FlashInfer/025_rmsnorm_h4096","language":"CUDA C++","files":[{"path":"kernel.cu","lines":615,"bytes":35468},{"path":"kernel.h","lines":16,"bytes":976},{"path":"main.cpp","lines":60,"bytes":3325}],"idea":"Few rows: several CTAs per row (each sums the whole row, stores a slice); many rows: a CTA per row with L2 prefetch; tf32 mma.sync warp sums.","origin":"edited after the search by Claude agents","result":{"public":false}}},{"board":"FlashInfer","id":"026_rmsnorm_h7168","name":"RMSNorm h7168","group":"Normalization","op":"RMSNorm","direction":"forward","model":"flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3/R1. Epsilon is fixed at 1e-6)","workloads":8,"kernel":{"dir":"kernels/FlashInfer/026_rmsnorm_h7168","language":"CUDA C++","files":[{"path":"kernel.cu","lines":1131,"bytes":68861},{"path":"kernel.h","lines":6,"bytes":342},{"path":"main.cpp","lines":53,"bytes":2811}],"idea":"By row count: few rows split each row over several CTAs; mid counts use 2-CTA clusters that share sums via DSMEM; many rows get one CTA each.","origin":"search agent (Claude)","result":{"public":false}}}],"method":{"files":[{"path":"docs/METHOD.md","lines":161,"bytes":11041},{"path":"compoundingkernel/__init__.py","lines":78,"bytes":3339},{"path":"compoundingkernel/archive.py","lines":281,"bytes":13777},{"path":"compoundingkernel/child.py","lines":269,"bytes":13986},{"path":"compoundingkernel/controller.py","lines":285,"bytes":14597},{"path":"compoundingkernel/harness.py","lines":299,"bytes":13049},{"path":"compoundingkernel/score.py","lines":83,"bytes":3679},{"path":"compoundingkernel/checks/__init__.py","lines":8,"bytes":609},{"path":"compoundingkernel/checks/native_code.py","lines":196,"bytes":8941},{"path":"compoundingkernel/checks/precision.py","lines":93,"bytes":4935},{"path":"compoundingkernel/checks/robustness.py","lines":294,"bytes":14483},{"path":"compoundingkernel/checks/sanitizer.py","lines":64,"bytes":3401}]}} </script> <script> (function () { "use strict"; /* The GitHub repo of the CompoundingKernels package. Replace the placeholder before upload, for example with "https://github.com/<org>/<repo>" (no slash at the end). */ const REPO_URL = ""; // set to the GitHub repo URL once it exists; empty = GitHub links hidden const REPO_REF = "main"; const BLOB = JSON.parse(document.getElementById("data").textContent); const DATA = BLOB.problems; const METHOD = (BLOB.method && BLOB.method.files) || []; const BOARDS = [ { key: "L1", label: "L1", desc: "single ops", v: "--l1", url: "https://research.nvidia.com/benchmarks/sol-execbench/leaderboard/collection/1/B200" }, { key: "L2", label: "L2", desc: "fused blocks", v: "--l2", url: "https://research.nvidia.com/benchmarks/sol-execbench/leaderboard/collection/2/B200" }, { key: "Quant", label: "Quant", desc: "low precision", v: "--quant", url: "https://research.nvidia.com/benchmarks/sol-execbench/leaderboard/collection/3/B200" }, { key: "FlashInfer", label: "FlashInfer", desc: "serving ops", v: "--fi", url: null }, ]; const BY = Object.fromEntries(BOARDS.map(b => [b.key, b])); const KEY = p => p.board + "/" + p.id; const BYKEY = new Map(DATA.map(p => [KEY(p), p])); const nOf = f => DATA.filter(f).length; const GROUPS = [...new Set(DATA.map(p => p.group))].sort((a, b) => nOf(p => p.group === b) - nOf(p => p.group === a)); const NK = nOf(p => p.kernel); const state = { board: null, group: null, q: "" }; const $ = id => document.getElementById(id); const esc = s => String(s).replace(/[&<>"]/g, c => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" }[c])); const reduced = () => window.matchMedia && matchMedia("(prefers-reduced-motion: reduce)").matches; const TITLE = document.title; const enc = s => s.split("/").map(encodeURIComponent).join("/"); const numOf = p => { const n = p.id.split("_")[0]; return /^\d+$/.test(n) ? n : ""; }; const boardNum = p => p.board + (numOf(p) ? " #" + numOf(p) : ""); const kHash = (p, file) => "#/k/" + enc(p.board) + "/" + enc(p.id) + (file ? "/" + enc(file) : ""); const plural = (n, w) => n.toLocaleString("en-US") + " " + w + (n === 1 ? "" : "s"); const fmtSize = b => b < 1024 ? b + " bytes" : b < 1048576 ? (b / 1024).toFixed(1) + " KB" : (b / 1048576).toFixed(1) + " MB"; const fmtX = x => (x >= 100 ? x.toFixed(0) : x >= 10 ? x.toFixed(1) : x.toFixed(2)) + "×"; const ext = (href, text) => '<a href="' + esc(href) + '" target="_blank" rel="noopener noreferrer">' + text + "</a>"; if (REPO_URL) { $("nav-gh").href = REPO_URL; } else { $("nav-gh").hidden = true; } /* theme: system preference first, then the reader's choice */ const root = document.documentElement; let stored = null; try { stored = localStorage.getItem("ck-theme"); } catch (e) {} setTheme(stored || (window.matchMedia && matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), false); function setTheme(t, save) { root.dataset.theme = t; $("theme").setAttribute("aria-label", t === "dark" ? "Switch to light mode" : "Switch to dark mode"); if (save) { try { localStorage.setItem("ck-theme", t); } catch (e) {} } } $("theme").addEventListener("click", () => setTheme(root.dataset.theme === "dark" ? "light" : "dark", true)); /* the demo film: 1080p first, so it starts fast. The 4K choice swaps the file and keeps the time and play or pause. */ const film = $("film"), filmSource = film.querySelector("source"), filmBtns = [...document.querySelectorAll("#film-q button")]; let filmLoad = 0, filmWant = null; filmBtns.forEach(b => b.addEventListener("click", () => { if (b.getAttribute("aria-pressed") === "true") return; filmBtns.forEach(x => x.setAttribute("aria-pressed", String(x === b))); const want = filmWant || { t: film.currentTime, play: !film.paused && !film.ended, rate: film.playbackRate }; const n = ++filmLoad; filmWant = want; // a second click before the file is ready keeps the first time and state filmSource.src = b.dataset.src; film.load(); film.addEventListener("loadedmetadata", () => { if (n !== filmLoad) return; filmWant = null; film.playbackRate = want.rate; if (want.t > 0) film.currentTime = want.t; if (want.play) film.play().catch(() => {}); }, { once: true }); })); /* ================================================================ problems view */ /* leaderboard buttons */ const boardsEl = $("boards"); mkBoardBtn(null, "All problems", DATA.length, "--ink"); BOARDS.forEach(b => mkBoardBtn(b.key, b.label + ": " + b.desc, nOf(p => p.board === b.key), b.v)); function mkBoardBtn(key, label, n, v) { const btn = document.createElement("button"); btn.type = "button"; btn.dataset.board = key || ""; btn.style.setProperty("--c", "var(" + v + ")"); btn.innerHTML = '<span class="n">' + n + '</span><span class="t">' + (key ? '<span class="sw" aria-hidden="true"></span>' : "") + label + "</span>"; btn.addEventListener("click", () => { state.board = key; update(); }); boardsEl.appendChild(btn); } $("legend").innerHTML = BOARDS.map(b => '<span><i style="background:var(' + b.v + ')"></i>' + b.label + "</span>").join("") + (NK ? '<span><i class="solid"></i>Kernel on this page</span>' : "") + (NK < DATA.length ? '<span><i class="hollow"></i>Kernel on the way</span>' : ""); $("plan-hint").textContent = NK === DATA.length ? "" : NK ? "A hollow square means its kernel is on the way." : "Kernels are on the way."; /* floorplan */ const plan = $("plan"), cells = [], grps = []; BOARDS.forEach(b => { const k = b.key, probs = DATA.filter(p => p.board === k); const box = document.createElement("div"); box.className = "bbox"; box.style.setProperty("--c", "var(" + b.v + ")"); box.innerHTML = "<h3>" + b.label + "<span>" + probs.length + " problems</span></h3>"; const wrap = document.createElement("div"); wrap.className = "groups"; box.appendChild(wrap); GROUPS.forEach(g => { const list = probs.filter(p => p.group === g); if (!list.length) return; const cols = Math.min(list.length, Math.max(3, Math.ceil(Math.sqrt(list.length) * 1.25))); const btn = document.createElement("button"); btn.type = "button"; btn.className = "grp"; btn.setAttribute("aria-pressed", "false"); btn.setAttribute("aria-label", b.label + ", " + g + ": " + list.length + " problems. Filter the list."); btn.innerHTML = '<span class="gl">' + esc(g) + "<b>" + list.length + "</b></span>"; const grid = document.createElement("span"); grid.className = "cells"; grid.style.setProperty("--cols", cols); list.forEach(p => { const c = document.createElement("span"); c.className = "cell" + (p.kernel ? " has" : ""); c.dataset.tip = "<b>" + esc(p.name) + "</b>" + esc(b.label + ", " + g) + "<br>" + (p.kernel ? esc(p.kernel.language) + " kernel" : "Kernel on the way"); grid.appendChild(c); cells.push({ c, p }); }); btn.appendChild(grid); btn.addEventListener("click", () => { const same = state.board === k && state.group === g; state.board = same ? null : k; state.group = same ? null : g; update(); }); wrap.appendChild(btn); grps.push({ btn, board: k, group: g }); }); plan.appendChild(box); }); /* tooltip for single squares */ const tip = $("tip"); plan.addEventListener("mousemove", e => { const t = e.target.closest(".cell"); if (!t) { tip.style.visibility = "hidden"; return; } tip.innerHTML = t.dataset.tip; tip.style.visibility = "visible"; const r = tip.getBoundingClientRect(); let x = e.clientX + 14, y = e.clientY + 14; if (x + r.width > innerWidth - 8) x = e.clientX - r.width - 14; if (y + r.height > innerHeight - 8) y = e.clientY - r.height - 14; tip.style.transform = "translate(" + Math.max(8, x) + "px," + Math.max(8, y) + "px)"; }); plan.addEventListener("mouseleave", () => { tip.style.visibility = "hidden"; }); /* operation chips */ const chipsEl = $("chips"); [null, ...GROUPS].forEach(g => { const c = document.createElement("button"); c.type = "button"; c.className = "chip"; c.dataset.group = g || ""; c.textContent = g ? g + " (" + nOf(p => p.group === g) + ")" : "All operations"; c.addEventListener("click", () => { state.group = g; update(); }); chipsEl.appendChild(c); }); $("q").addEventListener("input", e => { state.q = e.target.value.trim().toLowerCase(); update(); }); $("reset").addEventListener("click", () => { state.board = state.group = null; state.q = ""; $("q").value = ""; update(); }); $("random").addEventListener("click", () => { state.board = state.group = null; state.q = ""; $("q").value = ""; const p = DATA[Math.floor(Math.random() * DATA.length)]; update(); const el = document.querySelector('[data-id="' + CSS.escape(KEY(p)) + '"]'); if (el) { el.scrollIntoView({ behavior: reduced() ? "auto" : "smooth", block: "center" }); el.classList.remove("flash"); void el.offsetWidth; el.classList.add("flash"); (el.querySelector("h3 a") || el).focus({ preventScroll: true }); } }); function match(p) { if (state.board && p.board !== state.board) return false; if (state.group && p.group !== state.group) return false; if (state.q) { const k = p.kernel; const hay = (p.name + " " + p.id + " " + p.op + " " + p.model + " " + p.group + " " + p.board + (k ? " " + k.language + " " + k.idea : "")).toLowerCase(); if (!state.q.split(/\s+/).every(w => hay.includes(w))) return false; } return true; } function renderList() { const rows = DATA.filter(match); $("count").textContent = rows.length === DATA.length ? "Showing all " + rows.length + " problems" : "Showing " + rows.length + " of " + DATA.length + " problems"; $("list").innerHTML = rows.length ? rows.map(p => { const k = p.kernel; return '<article class="prob' + (k ? " has-k" : "") + '" tabindex="-1" data-id="' + esc(KEY(p)) + '" style="--c:var(' + BY[p.board].v + ')">' + "<h3>" + (k ? '<a href="' + esc(kHash(p)) + '">' + esc(p.name) + "</a>" : esc(p.name)) + "</h3>" + '<p class="op">' + esc(p.op) + "</p>" + '<div class="meta"><span class="b">' + esc(boardNum(p)) + "</span><span>" + esc(p.group) + "</span>" + (p.workloads ? "<span>" + p.workloads + " shapes</span>" : "") + (k ? "<span>" + esc(k.language) + "</span>" : "") + "</div>" + '<div class="foot"><span class="model" title="' + esc("Source model: " + p.model) + '">' + esc(p.model) + "</span>" + (k ? '<span class="go" aria-hidden="true">View kernel →</span>' : '<span class="wait">Kernel on the way</span>') + "</div>" + "</article>"; }).join("") : '<div class="empty">No problems match. Try a shorter search or clear the filters.</div>'; } function update() { const f = state.board || state.group || state.q; [...boardsEl.children].forEach(b => b.setAttribute("aria-pressed", String((b.dataset.board || null) === state.board))); [...chipsEl.children].forEach(c => c.setAttribute("aria-pressed", String((c.dataset.group || null) === state.group))); grps.forEach(g => g.btn.setAttribute("aria-pressed", String(state.group === g.group && (!state.board || state.board === g.board)))); cells.forEach(({ c, p }) => c.classList.toggle("dim", !!f && !match(p))); renderList(); } update(); /* ================================================================ views and routes #/ the problems #/k/<board>/<id>[/<file>] one kernel #/method the method: Figures 2 and 3, each with a redrawn copy that plays step by step #/code[/<file>] the method files (old #/method/<file> links redirect here) */ const views = { problems: $("view-problems"), kernel: $("view-kernel"), method: $("view-method"), code: $("view-code") }; const NAV_OF = { problems: "problems", kernel: "problems", method: "method", code: "code" }; let current = "problems", listY = 0, lastKey = null, rounds = []; const dropRounds = () => { rounds.forEach(r => r.destroy()); rounds = []; }; function show(name) { if (current === "problems" && name !== "problems") listY = window.scrollY; if (name !== "problems") film.pause(); if (name !== "method") dropRounds(); Object.keys(views).forEach(k => { views[k].hidden = k !== name; }); document.querySelectorAll("nav.main a[data-view]").forEach(a => { if (a.dataset.view === NAV_OF[name]) a.setAttribute("aria-current", "page"); else a.removeAttribute("aria-current"); }); const was = current; current = name; return was; } function focusTitle(el) { const h = el.querySelector("h1"); if (h) h.focus({ preventScroll: true }); } function route() { const parts = location.hash.replace(/^#\/?/, "").split("/").filter(Boolean) .map(s => { try { return decodeURIComponent(s); } catch (e) { return s; } }); if (parts[0] === "k" && parts.length >= 3) openKernel(parts[1], parts[2], parts.slice(3).join("/")); else if (parts[0] === "code") openCode(parts.slice(1).join("/")); else if (parts[0] === "method" && parts.length > 1) { /* the method files used to live at #/method/<file>: keep those links working */ const file = parts.slice(1).join("/"); history.replaceState(null, "", "#/code/" + enc(file)); openCode(file); } else if (parts[0] === "method") openMethod(); else openProblems(); } window.addEventListener("hashchange", route); function openProblems() { const was = show("problems"); document.title = TITLE; if (was !== "problems") { window.scrollTo(0, listY); const a = lastKey && document.querySelector('.prob[data-id="' + CSS.escape(lastKey) + '"] h3 a'); if (a) a.focus({ preventScroll: true }); } } function openKernel(board, id, file) { show("kernel"); const v = views.kernel, p = BYKEY.get(board + "/" + id); if (!p) { v.style.setProperty("--c", "var(--clay)"); v.innerHTML = backLink() + '<div class="k-head"><h1 tabindex="-1">Problem not found</h1>' + '<p class="lede">There is no problem “' + esc(board + "/" + id) + '” on this page.</p></div>'; document.title = "Problem not found · " + TITLE; } else { lastKey = KEY(p); v.style.setProperty("--c", "var(" + BY[p.board].v + ")"); v.innerHTML = kernelHTML(p); document.title = p.name + " (" + boardNum(p) + ") · " + TITLE; if (p.kernel) { mountCode(v.querySelector(".codebox"), p.kernel.files, { url: f => enc(p.kernel.dir + "/src/" + f.path), hash: f => kHash(p, f.path), initial: file, }); } } window.scrollTo(0, 0); focusTitle(v); } function openMethod() { show("method"); const v = views.method; dropRounds(); v.innerHTML = methodHTML(); document.title = "Method · " + TITLE; rounds = [...v.querySelectorAll(".rd")].map(el => mountRound(el, FIGS[el.dataset.fig])); window.scrollTo(0, 0); focusTitle(v); } function openCode(file) { show("code"); const v = views.code; v.style.setProperty("--c", "var(--clay)"); v.innerHTML = codeHTML(); document.title = "Code · " + TITLE; if (METHOD.length) { mountCode(v.querySelector(".codebox"), METHOD, { url: f => "code/" + enc(f.path), hash: f => "#/code/" + enc(f.path), initial: file, }); } window.scrollTo(0, 0); focusTitle(v); } const backLink = () => '<a class="back" href="#/"><span aria-hidden="true">←</span> All problems</a>'; function kernelHTML(p) { const k = p.kernel; let h = backLink() + '<header class="k-head">' + '<p class="eyebrow"><span class="b">' + esc(boardNum(p)) + "</span><span>" + esc(p.group) + "</span>" + (p.workloads ? "<span>" + p.workloads + " shapes</span>" : "") + (k ? "<span>" + esc(k.language) + "</span>" : "") + "</p>" + '<h1 tabindex="-1">' + esc(p.name) + "</h1>" + '<p class="lede">' + esc(p.op) + "</p>" + '<p class="srcm">Source model: <b>' + esc(p.model) + "</b></p></header>"; if (!k) return h + '<p class="card none">The kernel for this problem is on the way.</p>'; const lines = k.files.reduce((a, f) => a + f.lines, 0); h += '<div class="k-grid">' + resultCard(p) + '<section class="card about" aria-labelledby="about-h"><h2 id="about-h">About this kernel</h2><dl>' + "<dt>Idea</dt><dd>" + esc(k.idea) + "</dd>" + "<dt>Origin</dt><dd>" + esc(k.origin) + "</dd>" + "<dt>Code</dt><dd>" + esc(k.language) + ", " + plural(k.files.length, "file") + ", " + plural(lines, "line") + "</dd>" + '</dl>' + (REPO_URL ? '<p class="gh">' + ext(REPO_URL + "/tree/" + REPO_REF + "/" + enc(k.dir), "Open this kernel’s folder on GitHub") + "</p>" : "") + "</section></div>"; return h + codeSection("Code", '<p class="fine made">The kernels were generated by Claude via Amazon Bedrock. They are verified on the SOL-ExecBench site and are not production-ready.</p>'); } function resultCard(p) { const r = p.kernel.result, b = BY[p.board]; let h = '<section class="card res" aria-labelledby="res-h"><h2 id="res-h">Result</h2>'; if (!r.public) return h + '<p class="private">Verified on the SOL-ExecBench site; results not published.</p></section>'; const sol = typeof r.sol === "number", sp = typeof r.speedup === "number", notes = []; if (sol) { const pct = Math.max(0, Math.min(1, r.sol)) * 100; h += '<p class="big"><span class="num">' + r.sol.toFixed(3) + '</span><span class="unit">SOL score</span></p>' + '<div class="solbar" role="img" aria-label="SOL score ' + r.sol.toFixed(3) + ' on a scale from 0 to 1">' + '<span class="track"><span class="fill" style="width:' + pct.toFixed(1) + '%"></span><span class="tick"></span></span></div>' + '<div class="scale" aria-hidden="true"><span>0</span><span>0.5: baseline</span><span>1: hardware limit</span></div>'; notes.push("The SOL score goes from 0 to 1. 0.5 means as fast as the baseline. 1 means the hardware limit."); } if (sp) { h += '<p class="big sp"><span class="num">' + fmtX(r.speedup) + '</span><span class="unit">faster than the baseline</span></p>'; notes.push("The speedup is the geometric mean over all shapes."); } if (sol || sp) notes.push("The baseline is NVIDIA’s optimized PyTorch version of the problem."); notes.push(b.url ? "The numbers are from the public SOL-ExecBench " + ext(b.url, esc(b.label) + " board") + "." : "The numbers are from the public SOL-ExecBench board."); return h + '<ul class="notes">' + notes.map(t => "<li>" + t + "</li>").join("") + "</ul></section>"; } function codeHTML() { const doc = METHOD.some(f => /(^|\/)METHOD\.md$/.test(f.path)); return '<header class="m-head"><h1 tabindex="-1">The code</h1>' + '<p class="lede">The code of the CompoundingKernel search. These are the same files as in the CompoundingKernels package.</p>' + '<p class="fine">' + (doc ? "Start with <code>docs/METHOD.md</code>. It explains how the parts fit together. " : "") + 'The agent prompts are not included. For a picture of how the search works, see the <a href="#/method">Method</a> tab.</p>' + (REPO_URL ? '<p class="gh">' + ext(REPO_URL, "Open the package on GitHub") + "</p>" : "") + "</header>" + (METHOD.length ? codeSection("Files", "") : '<p class="card none">The method code is on the way.</p>'); } /* ================================================================ method page Figures 2 and 3 of the paper, redrawn so that they play step by step, each with the paper's caption. The copies are drawn from the figures' own coordinates (PDF points; the figure titles are left out, the section headings carry them), in the page's own fonts, with tall layouts for phones. Each SVG carries the figure's full description. The archive trees are schematic, as in the paper. */ const PAPER_HF = "https://huggingface.co/papers/2611.19230", PAPER_PDF = "https://arxiv.org/pdf/2611.19230"; const lp = n => '<span class="lp">' + n + "</span>"; /* the figure's numbered loop badge */ const FIG2 = { n: 2, title: "Four loops, one search per problem", sub: "Fast loops sit inside slow ones. The archive and the checks are outside the model.", desc: "Figure 2 of the paper: four loops, one search per problem. Fast loops sit inside slow ones; the archive and the checks are " + "outside the model. In the middle is a disc for one search, times 235 problems. " + "Inside it, a black loop joins three points: the LLM controller at the top, which picks a parent or a new design; the child agents " + "on the right, which write one change and time it on a B200; and the checks at the bottom, for correctness and robustness, outside " + "the model. In the center is the archive, a tree of every correct kernel. The controller reads it with a read-only query, and a new " + "kernel is kept if correct. Marks show new nodes, the current best kernel, other nodes and roots. A small loop by the child agents " + "is the child loop, the fastest. A dashed circle around the disc is the team loop: lead and helper agents fix the harness at warm " + "restarts, and the archive is kept. On the right is the outside loop: best kernels go to people, who decide what to send to the " + "official site with its public leaderboards, and scores come back to people. A dotted line, official scores never enter the search, " + "stops at a bar before the search.", cap: "Four loops, one search per problem: ① a child writes one change, ② the LLM controller picks what next, " + "③ agents fix the harness at warm restarts, ④ people decide sends. Official scores never enter the search; people use the " + "standings outside it, to choose sends and to place compute.", }; const FIG3 = { n: 3, title: "Agents share memory only through each problem’s archive", sub: "A read-only database, rebuilt from an append-only ledger. Only evaluation writes, and only for a correct kernel.", desc: "Figure 3 of the paper: agents share memory only through each problem's archive. A read-only database, rebuilt from an " + "append-only ledger; only evaluation writes, and only for a correct kernel. Panel a, who reads and who writes. " + "In the middle is a disc: one archive per problem, an SQLite database on shared storage, outside the model. Inside it is a tree of " + "correct kernels, with new nodes, the current best kernel and a new root marked. A node is a correct kernel with its timings, profile, " + "robustness verdict and note; an edge is its parent link. On the left, the LLM controller, which keeps no state and re-reads the " + "archive after a warm restart, and the child agents, several in parallel, both read the archive with read-only SQL. The child agents " + "send a kernel to Evaluate, which checks correctness and timing and appends a node only if it is correct; failed tries are logged, " + "not nodes. On the right, for people only: the archive is copied to a central database of all runs, which feeds a dashboard and " + "monitor; it is never read by agents in the final run. Panel b, inside one problem's archive: the tables and how they link. The write " + "path: an append-only ledger, where a row is written last, and one folder per candidate with solution.json, eval.json and meta.json; " + "one builder rebuilds the database and swaps it in atomically; agents open it read-only, and an SQL authorizer refuses writes. " + "The tables: candidates, a tree node, is one scored kernel that points to its parent, with its correctness and scores; its parent " + "link is the tree edge. evaluation, one kernel times one workload, is joined by problem and workload to official_anchors, one " + "published workload with its baseline and SOL times; each anchor links to problem_meta, one problem. profiles, robustness and trace hang off " + "each candidate, and views such as runs, incumbents and problem_best are derived. Code and profiles stay in the folders; the " + "database holds a path to each.", cap: "The archive is the agents’ only shared memory: they read it with read-only SQL, and only evaluation appends a correct kernel. " + "Most tables hang off one scored kernel, whose parent link is the tree edge.", }; const POINTS_LOOPS = [ [lp(1) + "Child loop, the fastest.", "A child agent gets a parent kernel and one direction to try. It edits, compiles and times the code on a B200. Checks outside the model decide if the result is correct."], [lp(2) + "Controller loop.", "When a child slot frees up, the LLM controller reads the archive. It picks one kernel to refine, or opens a new design, and writes one direction for each free child slot. The archive keeps every correct kernel, so a slow kernel can later become the parent of the fastest one."], [lp(3) + "Team loop.", "Lead and helper agents watch the system and fix faults in the harness: the agents’ prompts, tools and evaluation. Each fix goes live at the next warm restart, and the archives are kept."], [lp(4) + "Outside loop.", "People decide which kernels to send to the public board, and when. Loops " + lp(1) + "and " + lp(2) + "never see official scores: they learn only from our own tests and timings."], ]; const POINTS_MEM = [ ["The archive is the only shared memory.", "Agents read it with read-only SQL. Only evaluation adds a node, and only for a correct kernel. A failed try is logged, but it is not a node."], ["Agents keep no state of their own.", "After a warm restart, they re-read the archive and go on. People’s dashboard reads a separate copy that agents cannot see."], ]; function partHTML(F, fig) { /* a heading, a short note, then the copy with its controls, and under it the paper's caption */ const R = FIGS[fig], out = (href, text) => '<a href="' + href + '" target="_blank" rel="noopener noreferrer">' + text + "</a>"; const btn = (act, label) => '<button type="button" class="btn" data-act="' + act + '">' + RD_ICON[act] + '<span class="lb"><span>' + label + "</span></span></button>"; return '<section class="mt-part" aria-labelledby="' + fig + '-h"><h2 id="' + fig + '-h">' + F.title + "</h2>" + '<p class="mt-sub">' + F.sub + '</p><p class="fine">' + R.note + "</p>" + '<figure class="mt-fig" data-fig="' + fig + '"><div class="rd" data-fig="' + fig + '" tabindex="-1" role="group" aria-label="' + R.h + '">' + '<div class="plate"><div class="stage">' + R.svgs.map(R.svg).join("") + "</div></div>" + '<div class="rd-bar"><div class="rd-top"><span class="rd-where"><span class="rd-pos"></span><span class="rd-count" aria-hidden="true"></span></span>' + '<button type="button" class="btn rd-whole" data-act="whole" aria-pressed="false">' + RD_ICON.whole + "<span>Whole graph</span></button></div>" + '<p class="rd-cap"></p><div class="rd-ctl" role="group" aria-label="Animation controls">' + btn("play", "Play") + btn("back", "Back") + btn("step", "Step") + btn("restart", "Restart") + "</div></div></div>" + '<figcaption><span class="mt-credit">Figure ' + F.n + " of the paper, " + out(PAPER_HF, "<cite>CompoundingKernel: Self-Improving from Zero to First</cite>") + " (" + out(PAPER_PDF, "PDF on arXiv") + ")</span>" + F.cap + "</figcaption></figure></section>"; } function methodHTML() { return '<header class="m-head"><h1 tabindex="-1">The method</h1>' + '<p class="lede">Each problem gets its own search. The system is four loops, one inside the other, and each loop is slower than the one inside it. ' + "The agents share memory only through each problem’s archive.</p>" + '<p class="fine">Below are Figures 2 and 3 of the paper, redrawn so that they play step by step. The code of the method is in the <a href="#/code">Code</a> tab.</p></header>' + partHTML(FIG2, "f2") + partHTML(FIG3, "f3") + '<section class="mt-sec mt-pts" aria-labelledby="pts-h"><h2 id="pts-h">In short</h2>' + '<h3>The four loops (Figure 2)</h3><ul class="loops">' + POINTS_LOOPS.map(p => "<li><b>" + p[0] + "</b> " + p[1] + "</li>").join("") + "</ul>" + '<h3>Shared memory (Figure 3)</h3><ul>' + POINTS_MEM.map(p => "<li><b>" + p[0] + "</b> " + p[1] + "</li>").join("") + "</ul></section>"; } /* ---------------------------------------------------------------- Figure 2, redrawn: geometry The paper's marks: ink #1f1e1d, ink-2 #3c3c3a, muted #6a6a64, warm disc #f6f4ee with rim #cfcbc0, orange #c96442. A failed try is grey #858279 (3.5:1 on the disc). */ const F2C = { ink: "#1f1e1d", ink2: "#3c3c3a", muted: "#6a6a64", line: "#3d3d3a", disc: "#f6f4ee", rim: "#cfcbc0", best: "#c96442", dotted: "#6b6a64", fail: "#858279" }; /* the archive tree, as offsets from the disc center (from the paper's PDF; schematic). W2, W3: kernels added in step 5 */ const F2_N = { R1: [-10.5, 43.14], R2: [-62.58, 43.14], N1: [-30.66, 22.98], N2: [6.3, 21.3], N3: [-44.1, 2.82], N4: [-20.58, 1.14], N5: [-3.78, -0.54], N6: [19.74, 4.5], N7: [-28.98, -20.7], N8: [-8.82, -24.06], N9: [9.66, -19.02], N10: [-65.94, 22.98], B: [-2.1, -45.9], W2: [-50.82, -19.02], W3: [22.5, -36], }; const F2_E = [["R1", "N1"], ["R1", "N2"], ["N1", "N3"], ["N1", "N4"], ["N2", "N5"], ["N2", "N6"], ["N4", "N7"], ["N5", "N8"], ["N6", "N9"], ["N8", "B"], ["R2", "N10"]]; const F2_FRESH = { W2: "N3", W3: "N9" }; /* a new kernel and its parent */ const F2_LOOP = { r: 91.5, llm: -90, child: -18, checks: 72 }; /* the controller loop: radius and the three points (degrees) */ /* labels: [x, y, text, kind, anchor, group]; kinds: t title, s small, l loop name (serif italic), n note (italic) */ const F2G = { w: { cls: "wide", vb: [0, 56, 615, 426], c: [247.5, 252], teamR: 188, arcR: 144, size: { t: 10.12, s: 8.62, l: 10.5, n: 8.62, a: 7.87, ab: 9.75, b: 8.25 }, badgeR: 6.76, dotR: 4.9, tokR: 3.3, arcLS: 0.62, labels: [ [247.5, 135, "LLM controller", "t", "middle", "ctrl"], [247.5, 147.75, "picks a parent or a new design", "s", "middle", "ctrl"], [212.5, 200.39, "read-only", "s", "end", "query"], [212.5, 210.89, "query", "s", "end", "query"], [313.57, 172.04, "one direction", "s", "start", "ctrl"], [313.57, 182.54, "per child", "s", "start", "ctrl"], [345, 201.22, "Child agents", "t", "start", "child"], [345, 213.22, "write one change,", "s", "start", "child"], [345, 223.72, "time it on a B200", "s", "start", "child"], [279.22, 253.5, "Archive", "t", "start", "tree"], [279.22, 266.25, "every correct", "s", "start", "tree"], [279.22, 276.75, "kernel", "s", "start", "tree"], [272.5, 313.5, "kept if", "s", "start", "checks"], [272.5, 324, "correct", "s", "start", "checks"], [286.27, 354, "Checks", "t", "start", "checks"], [286.27, 366, "correctness, robustness;", "s", "start", "checks"], [286.27, 376.5, "outside the model", "s", "start", "checks"], [366, 292.57, "child loop", "l", "start", "child"], [366.89, 303.82, "fastest", "s", "start", "child"], [121.5, 253.5, "controller", "l", "middle", "lp2"], [121.5, 265.5, "loop", "l", "middle", "lp2"], [201.5, 438, "team loop", "l", "start", "team"], [261, 438, "Lead + helper agents", "t", "start", "team"], [192, 454.5, "fix the harness at warm restarts; the archive is kept", "s", "start", "team"], [534, 148.5, "People", "t", "middle", "out"], [534, 161.25, "decide what to send", "s", "middle", "out"], [534, 373.5, "Official site", "t", "middle", "out"], [534, 385.5, "public leaderboards", "s", "middle", "out"], [531, 273.75, "outside", "l", "middle", "out"], [531, 285.75, "loop", "l", "middle", "out"], [508.5, 322.5, "send", "s", "end", "out"], [559.5, 322.5, "scores", "s", "start", "out"], [436.96, 183.22, "best kernels", "s", "start", "out"], [438.14, 356.92, "official scores", "n", "start", "out"], [438.14, 367.42, "never enter", "n", "start", "out"], [438.14, 377.92, "the search", "n", "start", "out"], ], badges: [[1, 356.36, 289.58, "child"], [2, 121.5, 235.5, "lp2"], [3, 192, 435, "team"], [4, 531, 255.75, "out"]], spin: [114.85, 12.05], query: [[-29.37, -25.35], [-7.07, -82.69]], kept: [[24.85, 79.58], [10.15, 30.17]], people: [534, 174], site: [534, 352.5], send: [[514.5, 190.5], [514.5, 337.5]], scores: [[553.5, 336], [553.5, 189]], bestk: [[417.24, 165.52], [525.01, 175.37]], nope: [[525.4, 354.1], [439.6, 328.6]], bar: [[438.7, 321.21], [434.6, 335.63]], legend: { x: 21.3, tx: 28.35, y: [420, 433.5, 447, 460.5], dy: 3, note: [17.7, 477] }, }, t: { cls: "tall", vb: [0, 0, 360, 666], c: [180, 200], teamR: 176, arcR: 150, size: { t: 14, s: 11, l: 13.5, n: 11, a: 10, ab: 11, b: 12 }, badgeR: 8, dotR: 5.4, tokR: 4, arcLS: 0.7, labels: [ [180, 82, "LLM controller", "t", "middle", "ctrl"], [180, 96.5, "picks a parent or a new design", "s", "middle", "ctrl"], [154, 156, "read-only", "s", "end", "query"], [150, 167.5, "query", "s", "end", "query"], [246, 120, "one direction", "s", "start", "ctrl"], [246, 131, "per child", "s", "start", "ctrl"], [278, 148, "Child", "t", "start", "child"], [278, 162, "agents", "t", "start", "child"], [211.7, 201.5, "Archive", "t", "start", "tree"], [211.7, 214, "every", "s", "start", "tree"], [211.7, 225, "correct", "s", "start", "tree"], [211.7, 236, "kernel", "s", "start", "tree"], [194, 261.5, "kept if", "s", "end", "checks"], [194, 272, "correct", "s", "end", "checks"], [218.8, 304, "Checks", "t", "start", "checks"], [218.8, 317, "correctness,", "s", "start", "checks"], [218.8, 328, "robustness", "s", "start", "checks"], [218.8, 339, "outside the model", "s", "start", "checks"], [300, 241, "child", "l", "start", "child"], [300, 254, "loop", "l", "start", "child"], [289, 267, "fastest", "s", "start", "child"], [54, 202, "controller", "l", "middle", "lp2"], [54, 215, "loop", "l", "middle", "lp2"], [118, 397, "team loop", "l", "start", "team"], [188, 397, "Lead + helper agents", "t", "start", "team"], [46, 415, "fix the harness at warm restarts; the archive is kept", "s", "start", "team"], [8, 532, "People", "t", "start", "out"], [8, 547, "decide what to send", "s", "start", "out", 13], [352, 532, "Official site", "t", "end", "out"], [352, 547, "public leaderboards", "s", "end", "out", 13], [152, 567, "outside loop", "l", "start", "out"], [180, 485, "send", "s", "middle", "out", 13], [180, 525, "scores", "s", "middle", "out", 13], [42, 446, "best kernels", "s", "start", "out", 13], [316, 463, "official scores never enter the search", "n", "end", "out", 13], ], badges: [[1, 288.86, 237.58, "child"], [2, 54, 183.5, "lp2"], [3, 107, 392.5, "team"], [4, 140, 562.5, "out"]], spin: [114.85, 12.05], query: [[-29.37, -25.35], [-7.07, -82.69]], kept: [[24.85, 79.58], [10.15, 30.17]], people: [30, 500], site: [330, 500], send: [[42, 492], [318, 492]], scores: [[318, 508], [42, 508]], bestk: [[40, 336], [30.7, 491.5]], nope: [[330, 488], [330, 438]], bar: [[322, 436.5], [338, 431.5]], legend: { x: 14, tx: 26, y: [586, 603, 620, 637], dy: 4, note: [8, 661] }, }, }; const r2 = v => Math.round(v * 100) / 100; const rad = d => d * Math.PI / 180, add = (c, o) => [c[0] + o[0], c[1] + o[1]], lerp = (a, b, u) => [a[0] + (b[0] - a[0]) * u, a[1] + (b[1] - a[1]) * u]; const onC = (c, r, d) => [c[0] + r * Math.cos(rad(d)), c[1] + r * Math.sin(rad(d))]; const pt = p => r2(p[0]) + " " + r2(p[1]); function arcD(c, r, a0, a1, ccw) { /* an arc from angle a0 to a1 (degrees, y down), clockwise unless ccw */ let span = ccw ? a0 - a1 : a1 - a0; while (span <= 0) span += 360; return "M " + pt(onC(c, r, a0)) + " A " + r + " " + r + " 0 " + (span > 180 ? 1 : 0) + " " + (ccw ? 0 : 1) + " " + pt(onC(c, r, ccw ? a0 - span : a0 + span)); } function headD(tip, dir) { /* the figure's notched arrowhead at tip, pointing along dir */ const l = Math.hypot(dir[0], dir[1]) || 1, ux = dir[0] / l, uy = dir[1] / l, nx = -uy, ny = ux; const b = [tip[0] - ux * 5.5, tip[1] - uy * 5.5], n = [tip[0] - ux * 3.3, tip[1] - uy * 3.3]; return "M " + pt(tip) + " L " + pt([b[0] + nx * 2.45, b[1] + ny * 2.45]) + " L " + pt(n) + " L " + pt([b[0] - nx * 2.45, b[1] - ny * 2.45]) + " Z"; } const tangentCW = d => [-Math.sin(rad(d)), Math.cos(rad(d))]; function f2Text(x, y, s, kind, anchor, g) { const sz = g.size[kind]; return '<text class="f' + kind + '" x="' + r2(x) + '" y="' + r2(y) + '" font-size="' + sz + '"' + (anchor && anchor !== "start" ? ' text-anchor="' + anchor + '"' : "") + ">" + s + "</text>"; } const circ = (p, r, fill, stroke, w, cls, extra) => '<circle' + (cls ? ' class="' + cls + '"' : "") + ' cx="' + r2(p[0]) + '" cy="' + r2(p[1]) + '" r="' + r + '" fill="' + fill + '"' + (stroke ? ' stroke="' + stroke + '" stroke-width="' + w + '"' : "") + (extra || "") + "/>"; const lineEl = (a, b, stroke, w, extra) => '<path d="M ' + pt(a) + " L " + pt(b) + '" fill="none" stroke="' + stroke + '" stroke-width="' + w + '"' + (extra || "") + "/>"; const F2_TITLE = "Figure 2, step by step: four loops, one search per problem"; const F2_DESC = FIG2.desc + " This redrawn copy plays it step by step. The tree is schematic, not data."; function f2SVG(key) { const g = F2G[key], c = g.c, N = id => add(c, F2_N[id]), L = F2_LOOP, vb = g.vb, id = "f2" + key; /* a group of the figure; "keep" groups are never dimmed (the disc, the legend); the orange marks dim with their step, drawn darker first */ const grp = (name, inner, keep) => '<g class="g' + (keep ? " keep" : "") + '" data-grp="' + name + '">' + inner + "</g>"; let s = '<svg class="fx f2 ' + g.cls + '" data-g="' + key + '" data-small="' + g.size.s + '" viewBox="' + vb.join(" ") + '" role="img" aria-labelledby="' + id + 't" aria-describedby="' + id + 'd">' + '<title id="' + id + 't">' + F2_TITLE + '</title><desc id="' + id + 'd">' + esc(F2_DESC) + "</desc>" + '<rect x="' + vb[0] + '" y="' + vb[1] + '" width="' + vb[2] + '" height="' + vb[3] + '" fill="#ffffff"/>'; /* the team loop (dashed, around the search) */ const tEnd = onC(c, g.teamR, 58); s += grp("team", '<path d="' + arcD(c, g.teamR, 122, 58) + '" fill="none" stroke="' + F2C.line + '" stroke-width="1" stroke-dasharray="4.4 5.4" stroke-linecap="round"/>' + '<path d="' + headD(tEnd, tangentCW(58)) + '" fill="' + F2C.line + '"/>'); /* the search: echo discs (×235), the warm disc, its curved labels */ let disc = ""; [9, 6, 3].forEach(o => { disc += circ(add(c, [o, o]), 159, "none", F2C.rim, 0.6); }); disc += circ(c, 159, F2C.disc, F2C.rim, 0.75); disc += '<path id="' + id + '-top" d="' + arcD(c, g.arcR, -119.4, 0.6) + '" fill="none"/>' + '<path id="' + id + '-bot" d="' + arcD(c, 151.5, 127.8, 7.8, true) + '" fill="none"/>'; disc += '<text class="fa" font-size="' + g.size.a + '" letter-spacing="' + g.arcLS + '"><textPath href="#' + id + '-top" xlink:href="#' + id + '-top">ONE SEARCH PER PROBLEM · ×235</textPath></text>'; disc += '<text class="fab" font-size="' + g.size.ab + '"><textPath href="#' + id + '-bot" xlink:href="#' + id + '-bot">no official scores inside</textPath></text>'; s += grp("disc", disc, true); /* the archive tree (schematic): edges, nodes, the picked parent's ring; then its orange marks (their own group) */ let tree = "", marks = ""; F2_E.forEach(e => { tree += lineEl(N(e[0]), N(e[1]), F2C.line, 0.825); }); Object.keys(F2_FRESH).forEach(w => { const a = N(F2_FRESH[w]), b = N(w), d = [b[0] - a[0], b[1] - a[1]], l = Math.hypot(d[0], d[1]); tree += '<path class="fresh" data-f="' + w + '" d="M ' + pt([a[0] + d[0] / l * 3.8, a[1] + d[1] / l * 3.8]) + " L " + pt([b[0] - d[0] / l * 3.6, b[1] - d[1] / l * 3.6]) + '" fill="none" stroke="' + F2C.line + '" stroke-width="0.825" stroke-dasharray="1.5 1.5"/>'; }); tree += circ(N("N3"), 6.6, "none", F2C.ink, 1.1, "halo"); /* the parent the controller picks (one per step, as in the paper) */ Object.keys(F2_N).forEach(n => { const p = N(n); if (n[0] === "R") tree += circ(p, 3.3, F2C.line, F2C.disc, 1.05, "", ' data-n="' + n + '"'); else if (n[0] === "N") tree += circ(p, 3.3, F2C.disc, F2C.line, 0.975, "", ' data-n="' + n + '"'); else if (n[0] === "W") marks += circ(p, 3.6, F2C.disc, F2C.best, 1.5, "fresh", ' data-f="' + n + '"'); }); tree += circ(N("B"), 3.3, F2C.disc, F2C.line, 0.975, "oldbest"); marks += circ(N("B"), 4.65, F2C.best, F2C.disc, 1.2, "bestdot"); s += grp("tree", tree) + grp("marks", marks); /* the controller loop: three arcs with arrowheads, and its three points */ const arc = (a0, a1, name) => grp(name, '<path d="' + arcD(c, L.r, a0, a1) + '" fill="none" stroke="' + F2C.ink + '" stroke-width="1.35"/>' + '<path d="' + headD(onC(c, L.r, a1), tangentCW(a1)) + '" fill="' + F2C.ink + '"/>'); s += arc(L.llm + 5, L.child - 5, "a1") + arc(L.child + 5, L.checks - 5, "a2") + arc(L.checks + 5, 360 + L.llm - 5, "a3"); /* the read-only query (dashed) and "kept if correct" */ const q0 = add(c, g.query[0]), q1 = add(c, g.query[1]), k0 = add(c, g.kept[0]), k1 = add(c, g.kept[1]); s += grp("query", lineEl(q0, lerp(q0, q1, 0.94), F2C.line, 0.85, ' stroke-dasharray="1.4 3.17" stroke-linecap="round"') + '<path d="' + headD(q1, [q1[0] - q0[0], q1[1] - q0[1]]) + '" fill="' + F2C.line + '"/>'); s += grp("checks", lineEl(k0, lerp(k0, k1, 0.94), F2C.line, 0.825) + '<path d="' + headD(k1, [k1[0] - k0[0], k1[1] - k0[1]]) + '" fill="' + F2C.line + '"/>'); /* the child loop: a small circular arrow */ const sc = add(c, g.spin), sEnd = onC(sc, 11.25, 109.9); s += grp("child", '<g class="spin"><path d="' + arcD(sc, 11.25, 149.8, 109.9) + '" fill="none" stroke="' + F2C.ink + '" stroke-width="1.2"/>' + '<path d="' + headD(sEnd, tangentCW(109.9)) + '" fill="' + F2C.ink + '"/></g>'); /* the outside loop: people, the official site, send and scores; best kernels in; the dotted line stopped at the bar */ const head2 = (a, b) => '<path d="' + headD(b, [b[0] - a[0], b[1] - a[1]]) + '" fill="' + F2C.ink + '"/>'; s += grp("out", lineEl(g.send[0], lerp(g.send[0], g.send[1], 0.97), F2C.ink, 1.2) + head2(g.send[0], g.send[1]) + lineEl(g.scores[0], lerp(g.scores[0], g.scores[1], 0.97), F2C.ink, 1.2) + head2(g.scores[0], g.scores[1]) + lineEl(g.bestk[0], lerp(g.bestk[0], g.bestk[1], 0.96), F2C.ink, 1.05) + head2(g.bestk[0], g.bestk[1]) + lineEl(g.nope[0], g.nope[1], F2C.dotted, 0.82, ' stroke-dasharray="1.5 3.08"') + '<path class="bar" d="M ' + pt(g.bar[0]) + " L " + pt(g.bar[1]) + '" fill="none" stroke="' + F2C.ink + '" stroke-width="1.8"/>' + circ(g.people, 5.2, F2C.ink, "#ffffff", 1.65) + circ(g.site, 5.2, F2C.ink, "#ffffff", 1.65)); /* the three points of the controller loop (drawn over the arcs); a failed try leaves an × by the checks */ s += grp("ctrl", circ(onC(c, L.r, L.llm), g.dotR, F2C.ink, "#ffffff", 1.65, "llm")); s += grp("child", circ(onC(c, L.r, L.child), g.dotR, F2C.ink, "#ffffff", 1.65)); s += grp("checks", circ(onC(c, L.r, L.checks), g.dotR, F2C.ink, "#ffffff", 1.65) + xMark(onC(c, L.r + 9, L.checks), "fail") + xMark(onC(c, L.r + 9, L.checks + 7), "fail2")); /* labels and the numbered badges */ const byG = {}; g.labels.forEach(l => { (byG[l[5]] = byG[l[5]] || []).push(f2Text(l[0], l[1], l[2], l[3], l[4], l[6] ? Object.assign({}, g, { size: Object.assign({}, g.size, { [l[3]]: l[6] }) }) : g)); }); g.badges.forEach(b => { (byG[b[3]] = byG[b[3]] || []).push(circ([b[1], b[2]], g.badgeR, F2C.ink, "", 0) + f2Text(b[1], b[2] + g.size.b * 0.36, String(b[0]), "b", "middle", g)); }); Object.keys(byG).forEach(k => { s += grp(k, byG[k].join("")); }); /* the legend, and the note that the tree is schematic */ const lg = g.legend, rows = [["fresh", "new node: a correct kernel just added"], ["best", "current best kernel (one per problem)"], ["node", "a node: a correct kernel"], ["root", "a root: a fresh design"]]; let leg = ""; rows.forEach((r, i) => { const p = [lg.x, lg.y[i]]; leg += '<g class="lg" data-lg="' + r[0] + '">' + (r[0] === "fresh" ? circ(p, 3.6, F2C.disc, F2C.best, 1.5) : r[0] === "best" ? circ(p, 4.65, F2C.best, F2C.disc, 1.2) : r[0] === "node" ? circ(p, 3.3, F2C.disc, F2C.line, 0.97) : circ(p, 3.3, F2C.line, F2C.disc, 1.05)) + f2Text(lg.tx, lg.y[i] + lg.dy, r[1], "s", "start", g) + "</g>"; }); leg += f2Text(lg.note[0], lg.note[1], "The tree is schematic, not data.", "n", "start", g); s += grp("legend", leg, true); /* movers: three children, one more token, all drawn on top */ s += '<g class="tks">' + ["t0", "t1", "t2", "tx"].map(t => tokEl(g, t)).join("") + "</g>"; return s + "</svg>"; } /* the moving mark: a dot with a soft glow, unlike any mark of the figure (no ring) */ const tokEl = (g, name) => '<g class="tk" data-t="' + name + '"><circle r="' + r2(g.tokR + 2.6) + '" fill="' + F2C.ink + '" fill-opacity="0.16"/><circle r="' + r2(g.tokR - 0.6) + '" fill="' + F2C.ink + '" stroke="#ffffff" stroke-width="0.8"/></g>'; /* an ×, left where a try was refused or failed (hidden until its step shows it); a refused write also gets its own short stub */ const xD = p => "M " + pt([p[0] - 2.6, p[1] - 2.6]) + " L " + pt([p[0] + 2.6, p[1] + 2.6]) + " M " + pt([p[0] + 2.6, p[1] - 2.6]) + " L " + pt([p[0] - 2.6, p[1] + 2.6]); const xMark = (p, name) => '<path class="xmark" data-x="' + name + '" d="' + xD(p) + '" fill="none" stroke="' + F2C.muted + '" stroke-width="1.3" stroke-linecap="round"/>'; const xStub = (p, len, name) => '<g class="xmark" data-x="' + name + '"><path d="M ' + pt([p[0], p[1] + 4.5]) + " V " + r2(p[1] + 4.5 + len) + '" fill="none" stroke="' + F2C.muted + '" stroke-width="1" stroke-dasharray="1.5 2"/><path d="' + xD(p) + '" fill="none" stroke="' + F2C.muted + '" stroke-width="1.3" stroke-linecap="round"/></g>'; /* ---------------------------------------------------------------- Figure 2, redrawn: the steps on = the groups in focus (the rest stays readable, quieter); m = movement time in ms (0 with reduced motion). One thing moves at a time, and each loop moves slower than the one inside it. */ const F2_STEPS = [ { on: ["disc", "tree", "marks", "legend"], cam: "all", m: 2400, cap: ["One search per problem.", "There is one for each of the 235 problems. Its archive is a tree of every correct kernel. Roots are fresh designs. The orange dot is the current best."] }, { on: ["ctrl", "lp2", "query", "tree", "marks", "a1", "a2", "a3"], m: 3000, cap: [lp(2) + "Controller loop.", "When child slots free up, the LLM controller reads the archive with a read-only query. It picks one kernel to refine (circled), or opens a new design."] }, { on: ["ctrl", "a1", "child"], m: 1900, cap: ["One direction per child.", "The LLM controller writes a different direction for each free slot. Several children start in parallel from that one kernel."] }, { on: ["child"], m: 1600, cap: [lp(1) + "Child loop, the fastest.", "Each child edits, compiles and times its change on a B200."] }, { on: ["a2", "checks", "tree", "marks"], m: 5600, cap: ["Checks.", "Outside the model, checks decide if a kernel is correct. A correct kernel joins the archive under its parent (orange ring). A failed try does not join the tree (grey ×)."] }, { on: ["tree", "marks"], m: 1800, cap: ["A new best.", "The orange dot is now on the fastest kernel: there is one best per problem. Every correct kernel is kept, so a slow one can be the parent of the fastest."] }, { on: ["team", "tree", "marks", "disc"], cam: "all", m: 4400, cap: [lp(3) + "Team loop.", "Lead and helper agents fix the harness: the agents’ prompts, tools and evaluation. A fix goes live at a warm restart: the agents stop and start again, and the archive is kept."] }, { on: ["out"], m: 5000, cap: [lp(4) + "Outside loop.", "Best kernels go to people, who decide what to send. The official site sends scores back to people. Official scores never enter the search."] }, ]; const RD_ICON = { play: '<svg viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round"><path d="M5 3.4v9.2L12.2 8z"/></svg>', pause: '<svg viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"><path d="M5.5 3.5v9M10.5 3.5v9"/></svg>', step: '<svg viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"><path d="M3.8 3.4v9.2L10 8zM12.6 3.4v9.2"/></svg>', back: '<svg viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"><path d="M12.2 3.4v9.2L6 8zM3.4 3.4v9.2"/></svg>', restart: '<svg viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"><path d="M3.2 8a4.8 4.8 0 1 0 1.5-3.5"/><path d="M4.4 1.9v2.8h2.8"/></svg>', whole: '<svg viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"><path d="M2.5 6V2.5H6M10 2.5h3.5V6M13.5 10v3.5H10M6 13.5H2.5V10"/></svg>', }; const ease = x => x <= 0 ? 0 : x >= 1 ? 1 : x < .5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2; const win = (p, a, b) => Math.max(0, Math.min(1, (p - a) / (b - a))); function placeTok(e, at, opts) { /* place a mover, or hide it (at = null); a failed or refused try is grey */ e.classList.toggle("show", !!at); if (!at) return; e.setAttribute("transform", "translate(" + r2(at[0]) + " " + r2(at[1]) + ")"); const fail = opts && opts.fail ? "true" : "false"; if (e.dataset.fail !== fail) { e.dataset.fail = fail; e.firstChild.setAttribute("fill", fail === "true" ? F2C.fail : F2C.ink); e.lastChild.setAttribute("fill", fail === "true" ? F2C.fail : F2C.ink); } e.style.opacity = opts && opts.fade !== undefined ? String(1 - opts.fade) : ""; } function f2Bind(svg) { const qa = sel => [...svg.querySelectorAll(sel)]; const by = (sel, attr) => Object.fromEntries(qa(sel).map(e => [e.dataset[attr], e])); return { svg, g: F2G[svg.dataset.g], groups: qa(".g"), toks: by(".tk", "t"), nodes: by("[data-n]", "n"), fresh: qa(".fresh"), halos: qa(".halo"), best: svg.querySelector(".bestdot"), old: svg.querySelector(".oldbest"), xs: qa(".xmark"), legend: by("[data-lg]", "lg"), bar: svg.querySelector(".bar"), llm: svg.querySelector(".llm") }; } function f2Render(S, k, p) { const g = S.g, c = g.c, st = F2_STEPS[k], L = F2_LOOP, N = id => add(c, F2_N[id]); const tok = (t, at, opts) => placeTok(S.toks[t], at, opts); S.svg.classList.add("focus"); S.svg.classList.toggle("restart", k === 6 && p > .74 && p < .96); S.groups.forEach(e => e.classList.toggle("on", st.on.indexOf(e.dataset.grp) >= 0)); /* the archive: the picked parent, the new kernel (W3 came in an earlier round), the failed tries' ×, and the best */ S.halos.forEach(h => h.classList.toggle("show", (k === 1 && p >= .74) || k === 2 || k === 3 || (k === 4 && p < .95))); const w2 = k > 4 || (k === 4 && p >= .27), atW2 = k > 5 || (k === 5 && p >= .42); S.fresh.forEach(e => { /* the new W2 ring hides under the best dot once it is there; its edge stays */ const ring = e.tagName.toLowerCase() === "circle"; e.classList.toggle("show", e.dataset.f === "W3" || (w2 && !(ring && atW2))); }); S.xs.forEach(e => e.classList.toggle("show", k === 4 && p >= (e.dataset.x === "fail" ? .52 : .8))); /* step 6: the best fades out at the old best and in at the new kernel (it does not slide through the tree) */ const bp = atW2 ? N("W2") : N("B"); S.best.setAttribute("cx", r2(bp[0])); S.best.setAttribute("cy", r2(bp[1])); S.best.style.opacity = k === 5 ? String(p < .42 ? 1 - win(p, .1, .4) : win(p, .45, .8)) : ""; S.old.classList.toggle("show", k > 5 || (k === 5 && p >= .25)); /* step 1: roots, then nodes, then the best, pulse in turn (with their legend rows) */ const pulse = (a, b) => k === 0 && p > a && p < b ? Math.sin(Math.PI * win(p, a, b)) : 0; const pr = pulse(0, .3), pn = pulse(.33, .63), pb = pulse(.66, .96); Object.keys(S.nodes).forEach(n => { S.nodes[n].setAttribute("r", r2(3.3 * (1 + .6 * (n[0] === "R" ? pr : pn)))); }); S.best.setAttribute("r", r2(4.65 * (1 + .5 * pb))); S.legend.root.classList.toggle("lit", pr > 0); S.legend.node.classList.toggle("lit", pn > 0); S.legend.best.classList.toggle("lit", pb > 0 || (k === 5 && p < 1)); S.legend.fresh.classList.toggle("lit", k === 4 && p < 1); /* the controller takes its turn: when the slot comes back, and when the query comes in */ const blip = k === 1 ? Math.sin(Math.PI * win(p, .28, .4)) + Math.sin(Math.PI * win(p, .7, .8)) : 0; S.llm.setAttribute("r", r2(g.dotR * (1 + .45 * blip))); S.bar.setAttribute("stroke-width", k === 7 && p > .9 ? "3" : "1.8"); /* the movers */ const loopAt = d => onC(c, L.r, d), parked = i => L.child - 12 - i * 7; /* children wait on the loop, before the child agents */ const q0 = add(c, g.query[0]), q1 = add(c, g.query[1]), k0 = add(c, g.kept[0]), k1 = add(c, g.kept[1]); ["t0", "t1", "t2", "tx"].forEach(t => tok(t, null)); if (k === 1) { if (p < .28) tok("tx", loopAt(L.checks + (360 + L.llm - L.checks) * ease(win(p, 0, .28)))); /* a slot frees up: back round the loop */ else if (p >= .4 && p < .7) tok("tx", lerp(q0, q1, ease(win(p, .4, .7)))); /* the read-only query */ } if (k === 2) [0, 1, 2].forEach(i => tok("t" + i, loopAt(L.llm + (parked(i) - L.llm) * ease(p)))); if (k === 3) { /* the fastest loop: three quick laps of the child-loop arrow */ [0, 1, 2].forEach(i => tok("t" + i, loopAt(parked(i)))); if (p > .04 && p < .94) tok("tx", onC(add(c, g.spin), 11.25, 149.8 + 1080 * ease(win(p, .04, .94)))); } if (k === 4) { /* all three children start from the one parent (N3): child 1 is kept (W2); children 2 and 3 fail, and each leaves an × */ const run = (i, a, b, kept, ts, off) => { if (p < a) return tok("t" + i, loopAt(parked(i))); if (p < b) return tok("t" + i, loopAt(parked(i) + (L.checks - parked(i)) * ease(win(p, a, b)))); if (kept) { /* in along "kept if correct"; then it joins under its parent, down the new edge (it does not fly across the tree) */ const par = N(kept[0]), w = N(kept[1]); if (p < ts[0]) return tok("t" + i, lerp(k0, k1, ease(win(p, b, ts[0])))); if (p < ts[1]) return tok("t" + i, k1, { fade: win(p, ts[0], ts[1]) }); if (p < ts[2]) return tok("t" + i, lerp(par, w, ease(win(p, ts[1], ts[2])))); return; } if (p < ts[0]) { /* a failed try: it steps out of the checks to its ×, turns grey, shakes "no" and is gone */ const u = win(p, b, ts[0]), at = lerp(onC(c, L.r, L.checks), onC(c, L.r + 9, L.checks + off), ease(Math.min(1, u * 3))); return tok("t" + i, [at[0] + 2.4 * Math.sin(6 * Math.PI * u) * (1 - u), at[1]], { fail: true, fade: Math.max(0, (u - .35) / .65) }); } }; run(0, 0, .1, ["N3", "W2"], [.17, .21, .27]); run(1, .3, .4, null, [.56], 0); run(2, .58, .68, null, [.84], 7); } if (k === 6 && p < .7) tok("tx", onC(c, g.teamR, 122 + 296 * ease(win(p, 0, .7)))); if (k === 7) { if (p < .2) tok("tx", lerp(g.bestk[0], g.bestk[1], ease(win(p, 0, .2)))); else if (p >= .24 && p < .44) tok("tx", lerp(g.send[0], g.send[1], ease(win(p, .24, .44)))); else if (p >= .48 && p < .68) tok("tx", lerp(g.scores[0], g.scores[1], ease(win(p, .48, .68)))); else if (p >= .72 && p < 1) { const stop = lerp(g.nope[0], g.nope[1], .97); tok("tx", lerp(g.nope[0], stop, ease(win(p, .72, .92))), { fade: win(p, .94, 1) }); } } } /* ---------------------------------------------------------------- Figure 3, redrawn: geometry Figure 3 of the paper, drawn from its own coordinates (PDF points) for wide screens, and laid out again for phones. The copy is one graph, panel a above panel b; steps 1-5 are in panel a, steps 6-8 in panel b, and the camera frames each step's part. The tree is schematic. */ /* the archive tree of panel a, as offsets from the disc center (PDF points); W1 is the node added in step 4 */ const F3_N = { R: [3, 54.08], NR: [-59.78, 54.08], N19: [-21.3, 29.78], N20: [23.25, 27.75], N21: [-37.5, 5.47], N22: [-9.15, 3.45], N23: [11.1, 1.43], N24: [39.45, 7.5], N25: [-19.28, -22.88], N26: [5.03, -26.92], N27: [27.3, -20.85], N30: [-63.83, 29.78], B: [13.12, -53.25], W1: [-60, -14.03], W2: [-27.8, -43.5], W3: [54.3, -16.12], }; const F3_E = [["R", "N19"], ["R", "N20"], ["N19", "N21"], ["N19", "N22"], ["N20", "N23"], ["N20", "N24"], ["N22", "N25"], ["N23", "N26"], ["N24", "N27"], ["N26", "B"], ["NR", "N30"]]; const F3_FRESH = { W1: "N21", W2: "N25", W3: "N24" }; /* primitives: ["t", x, y, text, kind, anchor, group, size?] text; ["c", x, y, r, style, group] mark; ["l", x1, y1, x2, y2, style, group, head?] line; ["q", d, style, group] path; ["box", x, y, w, h, title, lines, variant, group]; ["ft", x, y, ux, uy, many, group] crow's foot (u points into the box); ["led", x, y, group] ledger; ["fold", x, y, group] folder */ const F3G = { wa: { cls: "wide", panel: "a", vb: [0, 52, 615, 343], c: [315, 238.5], r: 118.5, k: 1, arc: { r: 106.5, a0: -159.1, span: 170, size: 7.87, ls: 0.62 }, size: { t: 10.12, s: 8.62, m: 10.12, d: 9.75, td: 10.12, sf: 10.12, sr: 10.12, n: 8.62, mono: 7.88, monob: 9, acc: 8.62, acci: 8.62 }, dotR: 4.9, tokR: 3.3, items: [ ["t", 18, 69, "a", "t", "start", "pa"], ["t", 33, 68.25, "Who reads and who writes", "m", "start", "pa"], ["t", 315, 154.5, "outside the model", "sf", "middle", "arch", 9.75], ["t", 208.25, 218.47, "new node", "s", "start", "newn"], ["t", 212.95, 295.57, "new root", "s", "start", "tree"], ["t", 315, 304.5, "node = a correct kernel:", "s", "middle", "lga"], ["t", 315, 315, "timings, profile, robustness verdict, note", "s", "middle", "lga"], ["t", 315, 325.5, "edge = its parent link", "s", "middle", "lga"], ["t", 315, 387, "The tree is schematic, not data.", "n", "middle", "lga"], ["c", 236, 93, 3.9, "fresh", "lga"], ["t", 244.7, 96, "new node: a correct kernel just added", "s", "start", "lga"], ["c", 236, 106.5, 4.95, "best", "lga"], ["t", 244.7, 109.5, "current best kernel (one per problem)", "s", "start", "lga"], ["t", 39, 96, "LLM controller", "t", "start", "ctrl"], ["t", 39, 108, "keeps no state; a warm restart", "s", "start", "ctrl"], ["t", 39, 118.5, "re-reads the archive and continues", "s", "start", "ctrl"], ["l", 207.37, 182.39, 58.29, 134.86, "sql", "ctrl", true], ["c", 45, 133.5, 4.9, "dot", "ctrl", "llm"], ["t", 112.5, 196.5, "read-only SQL", "sf", "start", "sql"], ["t", 39, 220.5, "Child agents", "t", "start", "kids"], ["t", 39, 232.5, "several in parallel", "s", "start", "kids"], ["l", 193.54, 239.16, 71.99, 247.18, "sql", "kids", true], ["c", 45, 247.5, 3.15, "dot3", "kids"], ["c", 51.75, 247.5, 3.15, "dot3", "kids"], ["c", 58.5, 247.5, 3.15, "dot3", "kids"], ["l", 45, 256.5, 45, 292.5, "ink", "kids", true], ["t", 52.5, 277.5, "kernel", "s", "start", "kids"], ["t", 39, 312, "Evaluate", "t", "start", "eval"], ["t", 39, 324, "correctness, timing", "s", "start", "eval"], ["q", "M 54 339 C 195 343.5 210 291.97 252 228.97", "app", "eval"], ["c", 45, 339, 4.9, "dot", "eval"], ["t", 67.5, 357, "appends a node, only if correct", "sr", "start", "eval"], ["q", "M 45 346.5 V 378 H 56", "dots", "eval"], ["t", 60, 381, "failed tries are logged, not nodes", "s", "start", "eval"], ["x", 51, 378, "eval", "fail"], ["l", 462, 72, 462, 390, "rule", "people"], ["t", 475.5, 84, "people only", "sf", "start", "people", 10.5], ["t", 499.5, 156, "Central database", "td", "start", "people"], ["c", 510, 172.5, 4.9, "ring", "people"], ["t", 499.5, 192, "all runs, copied", "s", "start", "people"], ["l", 420.58, 178.8, 499.51, 172.63, "copy", "people", true], ["t", 445.48, 169.88, "copied", "s", "start", "people"], ["l", 510, 199.5, 510, 271.5, "thin", "people", true], ["t", 499.5, 283.5, "Dashboard, monitor", "td", "start", "people"], ["c", 510, 300, 4.9, "ring", "people"], ["t", 499.5, 319.5, "for people", "s", "start", "people"], ["t", 475.5, 366, "never read by agents", "sf", "start", "people"], ["t", 475.5, 378, "in the final run", "s", "start", "people"], ], tracks: { q1: [[207.37, 182.39], [58.29, 134.86]], q2: [[193.54, 239.16], [71.99, 247.18]], kern: [[45, 256.5], [45, 292.5]], app: { bez: [[54, 339], [195, 343.5], [210, 291.97], [252, 228.97]] }, fail: [[45, 346.5], [45, 378], [52, 378]], copy: [[420.58, 178.8], [499.51, 172.63]], dash: [[510, 199.5], [510, 271.5]] }, dots: { ctrl: [45, 133.5], eval: [45, 339], central: [510, 172.5], dash: [510, 300] }, }, wb: { cls: "wide", panel: "b", vb: [0, 410, 615, 280], size: { t: 10.12, s: 8.62, m: 10.12, d: 9.75, mono: 7.88, monob: 9, acc: 8.62, acci: 8.62, j: 7.88 }, dotR: 4.9, tokR: 3.3, boxS: { head: 16.5, title: 12, line0: 29.25, step: 11.25 }, items: [ ["t", 18, 427.5, "b", "t", "start", "pb"], ["t", 33, 426.75, "Inside one problem’s archive: the tables and how they link", "m", "start", "pb"], ["l", 183, 450, 183, 675, "hair", "pb"], ["t", 18, 456, "Write path", "t", "start", "write"], ["led", 18, 468, "write"], ["t", 48, 478.5, "append-only ledger", "d", "start", "write"], ["t", 48, 489.75, "a row is written last", "s", "start", "write"], ["fold", 18, 510, "write"], ["t", 48, 517.5, "one folder per candidate", "d", "start", "write"], ["t", 48, 528.75, "solution.json", "mono", "start", "write"], ["t", 48, 538.5, "eval.json", "mono", "start", "write"], ["t", 48, 548.25, "meta.json", "mono", "start", "write"], ["l", 29.25, 535.5, 29.25, 571.5, "ink", "write", true], ["c", 29.25, 577.5, 4.9, "dot", "write", "builder"], ["t", 40.5, 580.5, "one builder rebuilds the", "d", "start", "write"], ["t", 40.5, 591.75, "database, swaps it in atomically", "s", "start", "write"], ["l", 29.25, 583.5, 29.25, 616.5, "ink", "write", true], ["t", 40.5, 615, "agents open it read-only;", "d", "start", "write"], ["t", 40.5, 626.25, "an SQL authorizer refuses writes", "s", "start", "write"], ["xs", 22, 601, 20, "write", "refused"], ["box", 192, 450, 124.5, 33.75, "evaluation", ["one kernel × one workload"], "", "tjoin"], ["box", 192, 532.5, 124.5, 45, "official_anchors", ["one published workload:", "its baseline and SOL times"], "", "tjoin"], ["box", 192, 604.5, 124.5, 33.75, "problem_meta", ["one problem"], "", "tjoin"], ["l", 237, 483.75, 237, 532.5, "link", "tjoin"], ["ft", 237, 483.75, 0, -1, true, "tjoin"], ["ft", 237, 532.5, 0, 1, false, "tjoin"], ["t", 243, 500.25, "joined by problem", "j", "start", "tjoin"], ["t", 243, 509.25, "and workload", "j", "start", "tjoin"], ["l", 237, 577.5, 237, 604.5, "link", "tjoin"], ["ft", 237, 577.5, 0, -1, true, "tjoin"], ["ft", 237, 604.5, 0, 1, false, "tjoin"], ["l", 316.5, 480, 334.5, 513, "link", "tjoin"], ["ft", 316.5, 480, -0.479, -0.878, true, "tjoin"], ["ft", 334.5, 513, 0.479, 0.878, false, "tjoin"], ["box", 334.5, 483, 132, 67.5, "candidates", ["one scored kernel", ["(run, candidate)"], "points to its parent", "its correctness and scores"], "cand", "tcand"], ["t", 460.5, 495, "a tree node", "acci", "end", "tcand"], ["q", "M 416.34 483 C 411.84 456 461.34 456 453.84 483", "loop", "tcand"], ["t", 385.21, 457.5, "parent link: the tree edge", "acc", "start", "tcand"], ["box", 487.5, 450, 109.5, 33.75, "profiles", ["one kernel profile"], "", "thang"], ["box", 487.5, 513, 109.5, 33.75, "robustness", ["one robustness check"], "", "thang"], ["box", 487.5, 586.5, 109.5, 33.75, "trace", ["one agent step"], "", "thang"], ["l", 466.5, 502.5, 487.5, 472.5, "link", "thang"], ["ft", 466.5, 502.5, -0.573, 0.819, false, "thang"], ["ft", 487.5, 472.5, 0.573, -0.819, false, "thang"], ["l", 466.5, 525, 487.5, 535.5, "link", "thang"], ["ft", 466.5, 525, -0.894, -0.447, false, "thang"], ["ft", 487.5, 535.5, 0.894, 0.447, true, "thang"], ["l", 466.5, 540, 487.5, 609, "link", "thang"], ["ft", 466.5, 540, -0.291, -0.957, false, "thang"], ["ft", 487.5, 609, 0.291, 0.957, true, "thang"], ["box", 334.5, 616.5, 132, 45, "views (derived)", ["runs · incumbents", "problem_best"], "view", "tview"], ["l", 400.5, 550.5, 400.5, 615, "derived", "tview", true], ["t", 406.5, 586.5, "derived", "s", "start", "tview"], ["q", "M 199.5 672 L 192 667.5 M 199.5 672 L 192 672 M 199.5 672 L 192 676.5 M 192 672 L 211.5 672", "link", "lgb"], ["t", 216, 675, "many", "s", "start", "lgb"], ["q", "M 253.5 668.25 L 253.5 675.75 M 249 672 L 261 672", "link", "lgb"], ["t", 265.5, 675, "one", "s", "start", "lgb"], ["t", 294, 675, "Code and profiles stay in the folders; the database holds a path to each.", "j", "start", "lgb"], ], tracks: { wx: [[22, 622], [22, 603.5]], w2: [[29.25, 535.5], [29.25, 571.5]], w3: [[29.25, 583.5], [29.25, 616.5]], loop: { bez: [[416.34, 483], [411.84, 456], [461.34, 456], [453.84, 483]] }, lp: [[466.5, 502.5], [487.5, 472.5]], lr: [[466.5, 525], [487.5, 535.5]], lt: [[466.5, 540], [487.5, 609]], le: [[316.5, 480], [334.5, 513]], lo: [[237, 483.75], [237, 532.5]], lm: [[237, 577.5], [237, 604.5]], dv: [[400.5, 550.5], [400.5, 615]] }, dots: { builder: [29.25, 577.5], open: [29.25, 616.5] }, }, ta: { cls: "tall", panel: "a", vb: [0, 0, 360, 560], c: [221, 232], r: 94.8, k: 0.8, arc: { r: 85, a0: -190, span: 198, size: 9, ls: 0.25 }, size: { t: 14, s: 11, m: 13, d: 12.5, td: 13, sf: 12, sr: 12, n: 10.5, mono: 10, monob: 11.5, acc: 11, acci: 11 }, dotR: 5.4, tokR: 4, items: [ ["t", 8, 24, "a", "t", "start", "pa"], ["t", 24, 24, "Who reads and who writes", "m", "start", "pa"], ["c", 150, 46, 3.9, "fresh", "lga"], ["t", 158, 50, "new node: a correct kernel just added", "s", "start", "lga", 10.5], ["c", 150, 62, 4.95, "best", "lga"], ["t", 158, 66, "current best kernel (one per problem)", "s", "start", "lga", 10.5], ["t", 150, 84, "node = a correct kernel: timings, profile,", "s", "start", "lga", 10.5], ["t", 150, 97, "robustness verdict, note", "s", "start", "lga", 10.5], ["t", 150, 110, "edge = its parent link", "s", "start", "lga", 10.5], ["t", 150, 124, "The tree is schematic, not data.", "n", "start", "lga"], ["t", 221, 170, "outside the model", "sf", "middle", "arch", 11], ["t", 173, 211, "new node", "s", "middle", "newn", 10.5], ["t", 173.2, 291, "new root", "s", "middle", "tree", 10.5], ["t", 8, 60, "LLM controller", "t", "start", "ctrl"], ["t", 8, 74, "keeps no state;", "s", "start", "ctrl"], ["t", 8, 87, "a warm restart", "s", "start", "ctrl"], ["t", 8, 100, "re-reads the archive", "s", "start", "ctrl"], ["t", 8, 113, "and continues", "s", "start", "ctrl"], ["l", 131.9, 199.6, 20.5, 132.4, "sql", "ctrl", true], ["c", 14, 128, 5.4, "dot", "ctrl", "llm"], ["t", 30, 200, "read-only SQL", "sf", "start", "sql"], ["t", 8, 220, "Child agents", "t", "start", "kids"], ["t", 8, 234, "several in parallel", "s", "start", "kids"], ["l", 127.1, 245.2, 34, 251, "sql", "kids", true], ["c", 14, 251, 3.4, "dot3", "kids"], ["c", 21, 251, 3.4, "dot3", "kids"], ["c", 28, 251, 3.4, "dot3", "kids"], ["l", 14, 259, 14, 293, "ink", "kids", true], ["t", 22, 280, "kernel", "s", "start", "kids"], ["t", 8, 314, "Evaluate", "t", "start", "eval"], ["t", 8, 328, "correctness, timing", "s", "start", "eval"], ["q", "M 23 343 C 125 345 150 300 168.5 226", "app", "eval"], ["c", 14, 343, 5.4, "dot", "eval"], ["t", 30, 364, "appends a node, only if correct", "sr", "start", "eval"], ["q", "M 14 351 V 384 H 24", "dots", "eval"], ["t", 28, 388, "failed tries are logged, not nodes", "s", "start", "eval"], ["x", 20, 384, "eval", "fail"], ["l", 8, 410, 352, 410, "rule", "pa"], ["t", 126, 432, "people only", "sf", "start", "people"], ["l", 221, 336, 221, 441, "copy", "people", true], ["t", 229, 398, "copied", "s", "start", "people"], ["t", 233, 444, "Central database", "td", "start", "people"], ["c", 221, 448, 5.4, "ring", "people"], ["t", 233, 458, "all runs, copied", "s", "start", "people"], ["l", 221, 456, 221, 503, "thin", "people", true], ["t", 233, 507, "Dashboard, monitor", "td", "start", "people"], ["c", 221, 511, 5.4, "ring", "people"], ["t", 233, 521, "for people", "s", "start", "people"], ["t", 126, 536, "never read by agents", "sf", "start", "people"], ["t", 126, 550, "in the final run", "s", "start", "people"], ], tracks: { q1: [[131.9, 199.6], [20.5, 132.4]], q2: [[127.1, 245.2], [34, 251]], kern: [[14, 259], [14, 293]], app: { bez: [[23, 343], [125, 345], [150, 300], [168.5, 226]] }, fail: [[14, 351], [14, 384], [21, 384]], copy: [[221, 336], [221, 441]], dash: [[221, 456], [221, 503]] }, dots: { ctrl: [14, 128], eval: [14, 343], central: [221, 448], dash: [221, 511] }, }, tb: { cls: "tall", panel: "b", vb: [0, 0, 360, 645], size: { t: 14, s: 11, m: 13, d: 12.5, mono: 10.5, monob: 11.5, acc: 11, acci: 11, j: 10 }, dotR: 5.4, tokR: 4, boxS: { head: 18, title: 13.5, line0: 33, step: 13 }, items: [ ["t", 8, 24, "b", "t", "start", "pb"], ["t", 24, 24, "Inside one problem’s archive:", "m", "start", "pb"], ["t", 24, 40, "the tables and how they link", "m", "start", "pb"], ["t", 8, 70, "Write path", "t", "start", "write"], ["led", 8, 82, "write"], ["t", 38, 93, "append-only ledger", "d", "start", "write"], ["t", 38, 107, "a row is written last", "s", "start", "write"], ["fold", 8, 124, "write"], ["t", 38, 134, "one folder per candidate", "d", "start", "write"], ["t", 38, 148, "solution.json", "mono", "start", "write"], ["t", 38, 161, "eval.json", "mono", "start", "write"], ["t", 38, 174, "meta.json", "mono", "start", "write"], ["l", 19.25, 150, 19.25, 189, "ink", "write", true], ["c", 19.25, 195, 5.4, "dot", "write", "builder"], ["t", 30.5, 199, "one builder rebuilds the", "d", "start", "write"], ["t", 30.5, 213, "database, swaps it in atomically", "s", "start", "write"], ["l", 19.25, 201, 19.25, 236, "ink", "write", true], ["t", 30.5, 240, "agents open it read-only;", "d", "start", "write"], ["t", 30.5, 254, "an SQL authorizer refuses writes", "s", "start", "write"], ["xs", 12.5, 223, 18, "write", "refused"], ["box", 8, 292, 162, 40, "evaluation", ["one kernel × one workload"], "", "tjoin"], ["box", 8, 372, 162, 52, "official_anchors", ["one published workload:", "its baseline and SOL times"], "", "tjoin"], ["box", 8, 452, 162, 40, "problem_meta", ["one problem"], "", "tjoin"], ["l", 89, 332, 89, 372, "link", "tjoin"], ["ft", 89, 332, 0, -1, true, "tjoin"], ["ft", 89, 372, 0, 1, false, "tjoin"], ["t", 97, 351, "joined by problem", "j", "start", "tjoin"], ["t", 97, 363, "and workload", "j", "start", "tjoin"], ["l", 89, 424, 89, 452, "link", "tjoin"], ["ft", 89, 424, 0, -1, true, "tjoin"], ["ft", 89, 452, 0, 1, false, "tjoin"], ["l", 170, 318, 188, 346, "link", "tjoin"], ["ft", 170, 318, -0.541, -0.841, true, "tjoin"], ["ft", 188, 346, 0.541, 0.841, false, "tjoin"], ["box", 188, 312, 162, 74, "candidates", ["one scored kernel", ["(run, candidate)"], "points to its parent", "its correctness and scores"], "cand", "tcand"], ["t", 344, 325.5, "a tree node", "acci", "end", "tcand"], ["q", "M 284 312 C 279 290 333 290 326 312", "loop", "tcand"], ["t", 350, 286, "parent link: the tree edge", "acc", "end", "tcand"], ["box", 8, 520, 162, 52, "views (derived)", ["runs · incumbents", "problem_best"], "view", "tview"], ["q", "M 188 376 H 179 V 546", "derived", "tview"], ["l", 179, 546, 170, 546, "derived", "tview", true], ["t", 128, 511, "derived", "s", "start", "tview"], ["box", 188, 412, 162, 40, "profiles", ["one kernel profile"], "", "thang"], ["box", 188, 464, 162, 40, "robustness", ["one robustness check"], "", "thang"], ["box", 188, 516, 162, 40, "trace", ["one agent step"], "", "thang"], ["q", "M 350 349 H 356 V 536 M 356 432 H 350 M 356 484 H 350 M 356 536 H 350", "link", "thang"], ["ft", 350, 349, -1, 0, false, "thang"], ["ft", 350, 432, -1, 0, false, "thang"], ["ft", 350, 484, -1, 0, true, "thang"], ["ft", 350, 536, -1, 0, true, "thang"], ["q", "M 15.5 600 L 8 595.5 M 15.5 600 L 8 600 M 15.5 600 L 8 604.5 M 8 600 L 27.5 600", "link", "lgb"], ["t", 32, 604, "many", "s", "start", "lgb"], ["q", "M 72.5 596.25 L 72.5 603.75 M 68 600 L 80 600", "link", "lgb"], ["t", 85, 604, "one", "s", "start", "lgb"], ["t", 8, 622, "Code and profiles stay in the folders;", "j", "start", "lgb"], ["t", 8, 635, "the database holds a path to each.", "j", "start", "lgb"], ], tracks: { wx: [[12.5, 242], [12.5, 225.5]], w2: [[19.25, 150], [19.25, 189]], w3: [[19.25, 201], [19.25, 236]], loop: { bez: [[284, 312], [279, 290], [333, 290], [326, 312]] }, lp: [[350, 349], [356, 349], [356, 432], [350, 432]], lr: [[350, 349], [356, 349], [356, 484], [350, 484]], lt: [[350, 349], [356, 349], [356, 536], [350, 536]], le: [[170, 318], [188, 346]], lo: [[89, 332], [89, 372]], lm: [[89, 424], [89, 452]], dv: [[188, 376], [179, 376], [179, 546], [170, 546]] }, dots: { builder: [19.25, 195], open: [19.25, 236] }, }, }; const F3S = { /* stroke styles: [stroke, width, dash, cap] */ sql: [F2C.line, 0.9, "1.4 3.2", "round"], ink: [F2C.ink, 1.05], app: [F2C.ink, 1.125], dots: [F2C.dotted, 0.75, "1.5 2.32"], rule: [F2C.rim, 0.75], copy: [F2C.line, 0.9, "3.75 3.06"], thin: [F2C.line, 0.9], hair: ["#ebe8e0", 0.75], link: [F2C.line, 0.825], loop: [F2C.best, 1.05], derived: [F2C.dotted, 0.82, "2.25 2.32"], }; function f3Mark(p, r, style, name) { /* the figure's marks */ const d = name ? ' data-d="' + name + '"' : ""; if (style === "fresh") return circ(p, r, F2C.disc, F2C.best, 1.5, "", d); if (style === "best") return circ(p, r, F2C.best, F2C.disc, 1.2, "", d); if (style === "ring") return circ(p, r, "#ffffff", F2C.line, 1.35, "", d); if (style === "dot3") return circ(p, r, F2C.ink, "#ffffff", 1.05, "", d); return circ(p, r, F2C.ink, "#ffffff", 1.65, "", d); } const f3Stroke = st => ' fill="none" stroke="' + st[0] + '" stroke-width="' + st[1] + '"' + (st[2] ? ' stroke-dasharray="' + st[2] + '"' : "") + (st[3] ? ' stroke-linecap="' + st[3] + '"' : ""); function f3Box(x, y, w, h, title, lines, variant, g) { /* a table: a header band with its name, then what one row is */ const B = g.boxS, cand = variant === "cand", view = variant === "view", rr = 3.75; let s = '<rect x="' + x + '" y="' + y + '" width="' + w + '" height="' + h + '" rx="' + rr + '" fill="#ffffff" stroke="' + (cand ? F2C.best : F2C.rim) + '" stroke-width="' + (cand ? 1.2 : 0.75) + '"' + (view ? ' stroke-dasharray="2.25 2.31"' : "") + "/>"; if (!view) s += '<path d="M ' + r2(x + 0.75) + " " + r2(y + B.head + 0.75) + " V " + r2(y + rr) + " Q " + r2(x + 0.75) + " " + r2(y + 0.75) + " " + r2(x + rr) + " " + r2(y + 0.75) + " H " + r2(x + w - rr) + " Q " + r2(x + w - 0.75) + " " + r2(y + 0.75) + " " + r2(x + w - 0.75) + " " + r2(y + rr) + " V " + r2(y + B.head + 0.75) + ' Z" fill="' + (cand ? "#f3ddd3" : F2C.disc) + '"/>'; s += f2Text(x + 7.5, y + B.title, title, "monob", "start", g); lines.forEach((ln, i) => { s += f2Text(x + 7.5, y + B.line0 + B.step * i, Array.isArray(ln) ? ln[0] : ln, Array.isArray(ln) ? "mono" : "s", "start", g); }); return s; } function f3Foot(x, y, ux, uy, many) { /* crow's foot: "many" spreads at the box edge; "one" is a bar just outside it */ const nx = -uy, ny = ux, st = f3Stroke(F3S.link); if (many) { const p = [x - ux * 7.5, y - uy * 7.5]; return [[x, y], [x + nx * 4.5, y + ny * 4.5], [x - nx * 4.5, y - ny * 4.5]].map(q => '<path d="M ' + pt(p) + " L " + pt(q) + '"' + st + "/>").join(""); } const b = [x - ux * 4.5, y - uy * 4.5]; return '<path d="M ' + pt([b[0] + nx * 3.75, b[1] + ny * 3.75]) + " L " + pt([b[0] - nx * 3.75, b[1] - ny * 3.75]) + '"' + st + "/>"; } const F3_TITLE = "Figure 3, step by step: agents share memory only through each problem’s archive"; const F3_DESC = FIG3.desc + " This redrawn copy plays it step by step: panel a in steps 1 to 5, then panel b in steps 6 to 8. The tree is schematic, not data."; const F3_KEEP = ["pa", "pb"]; /* never dimmed: the panel titles */ /* The copy is one graph, panel a above panel b, as in the paper. The wide layout keeps the paper's own coordinates and its rule between the panels; the tall layout (narrow screens) puts its panel b below its panel a. */ const F3_COMBO = { w: { cls: "wide", vb: [0, 52, 615, 638], panels: [["wa", 0], ["wb", 0]], rule: [18, 406.5, 597] }, t: { cls: "tall", vb: [0, 0, 360, 1217], panels: [["ta", 0], ["tb", 572]], rule: [8, 566, 352] }, }; function f3Panel(key, dy, id) { /* one panel of the graph: its groups, and its own movers (in its own coordinates) */ const g = F3G[key], groups = {}; const put = (name, html) => { (groups[name] = groups[name] || []).push(html); }; if (g.panel === "a") { /* the archive disc, its curved label and the tree */ const c = g.c, N = n => add(c, [F3_N[n][0] * g.k, F3_N[n][1] * g.k]); let disc = ""; [9, 6, 3].forEach(o => { disc += circ(add(c, [o * g.k, o * g.k]), g.r, "none", F2C.rim, 0.6); }); disc += circ(c, g.r, F2C.disc, F2C.rim, 0.75) + '<path id="' + id + '-arc" d="' + arcD(c, g.arc.r, g.arc.a0, g.arc.a0 + g.arc.span) + '" fill="none"/>' + '<text class="fa" font-size="' + g.arc.size + '" letter-spacing="' + g.arc.ls + '"><textPath href="#' + id + '-arc" xlink:href="#' + id + '-arc">ONE ARCHIVE PER PROBLEM · SQLITE ON SHARED STORAGE</textPath></text>'; put("arch", disc); let tree = "", marks = ""; F3_E.forEach(e => { tree += lineEl(N(e[0]), N(e[1]), F2C.line, 0.825); }); Object.keys(F3_FRESH).forEach(w => { /* the edge of each new node (W1 is added in step 4) */ const a = N(F3_FRESH[w]), b = N(w), d = [b[0] - a[0], b[1] - a[1]], l = Math.hypot(d[0], d[1]); tree += '<path' + (w === "W1" ? ' class="fresh"' : "") + ' data-f="' + w + '" d="M ' + pt([a[0] + d[0] / l * 3.8, a[1] + d[1] / l * 3.8]) + " L " + pt([b[0] - d[0] / l * 3.9, b[1] - d[1] / l * 3.9]) + '" fill="none" stroke="' + F2C.line + '" stroke-width="0.825" stroke-dasharray="1.5 1.5"/>'; }); Object.keys(F3_N).forEach(n => { const p = N(n); if (n === "R" || n === "NR") tree += circ(p, 3.6, F2C.line, F2C.disc, 1.05, "", ' data-n="' + n + '"'); else if (n[0] === "N") tree += circ(p, 3.6, F2C.disc, F2C.line, 0.975, "", ' data-n="' + n + '"'); else if (n[0] === "W") marks += circ(p, 3.9, F2C.disc, F2C.best, 1.5, n === "W1" ? "fresh" : "", ' data-f="' + n + '"'); }); marks += circ(N("B"), 4.95, F2C.best, F2C.disc, 1.2, "bestdot"); put("tree", tree); put("marks", marks); } g.items.forEach(it => { const kind = it[0]; if (kind === "t") put(it[6], f2Text(it[1], it[2], it[3], it[4], it[5], it[7] ? Object.assign({}, g, { size: Object.assign({}, g.size, { [it[4]]: it[7] }) }) : g)); else if (kind === "c") put(it[5], f3Mark([it[1], it[2]], it[3], it[4], it[6])); else if (kind === "x") put(it[3], xMark([it[1], it[2]], it[4])); else if (kind === "xs") put(it[4], xStub([it[1], it[2]], it[3], it[5])); else if (kind === "l") { const st = F3S[it[5]], a = [it[1], it[2]], b = [it[3], it[4]]; put(it[6], '<path d="M ' + pt(a) + " L " + pt(it[7] ? lerp(a, b, 1 - 4 / Math.hypot(b[0] - a[0], b[1] - a[1])) : b) + '"' + f3Stroke(st) + "/>" + (it[7] ? '<path d="' + headD(b, [b[0] - a[0], b[1] - a[1]]) + '" fill="' + st[0] + '"/>' : "")); } else if (kind === "q") { const st = F3S[it[2]]; let h = ""; if (it[2] === "app" || it[2] === "loop") { /* curved arrows end with the figure's arrowhead */ const n = it[1].match(/-?[\d.]+/g).map(Number), e = [n[n.length - 2], n[n.length - 1]], cp = [n[n.length - 4], n[n.length - 3]]; h = '<path d="' + headD(e, [e[0] - cp[0], e[1] - cp[1]]) + '" fill="' + st[0] + '"/>'; } put(it[3], '<path d="' + it[1] + '"' + f3Stroke(st) + "/>" + h); } else if (kind === "box") put(it[8], f3Box(it[1], it[2], it[3], it[4], it[5], it[6], it[7], g)); else if (kind === "ft") put(it[6], f3Foot(it[1], it[2], it[3], it[4], it[5])); else if (kind === "led") { /* the ledger: a sheet of five lines */ const x = it[1], y = it[2]; put(it[3], '<path d="M ' + (x + 1.5) + " " + y + " H " + (x + 21) + " Q " + (x + 22.5) + " " + y + " " + (x + 22.5) + " " + (y + 1.5) + " V " + (y + 25.5) + " Q " + (x + 22.5) + " " + (y + 27) + " " + (x + 21) + " " + (y + 27) + " H " + (x + 1.5) + " Q " + x + " " + (y + 27) + " " + x + " " + (y + 25.5) + " V " + (y + 1.5) + " Q " + x + " " + y + " " + (x + 1.5) + " " + y + ' Z" fill="#ffffff" stroke="' + F2C.line + '" stroke-width="0.825" data-d="ledger"/>' + [5.25, 9.75, 14.25, 18.75, 23.25].map(dy => '<path d="M ' + (x + 3.75) + " " + (y + dy) + " H " + (x + 18.75) + '" stroke="' + F2C.dotted + '" stroke-width="0.75"/>').join("")); } else if (kind === "fold") { /* a folder */ const x = it[1], y = it[2]; put(it[3], '<path d="M ' + x + " " + (y + 3) + " H " + (x + 8.25) + " L " + (x + 10.5) + " " + y + " H " + (x + 22.5) + " V " + (y + 22.5) + " H " + x + ' Z" fill="#ffffff" stroke="' + F2C.line + '" stroke-width="0.825" data-d="folder"/>'); } }); let s = '<g class="panel" data-panel="' + g.panel + '" data-dy="' + dy + '"' + (dy ? ' transform="translate(0 ' + dy + ')"' : "") + ">"; ["pa", "arch", "lga", "tree", "marks", "newn", "sql", "ctrl", "kids", "eval", "people", "pb", "write", "tjoin", "tcand", "thang", "tview", "lgb"].forEach(n => { if (!groups[n]) return; const inner = groups[n].join(""); /* the "new node" label shows with the node it names (added in step 4) */ s += '<g class="g' + (F3_KEEP.indexOf(n) >= 0 ? " keep" : "") + '" data-grp="' + n + '">' + (n === "newn" ? '<g class="fresh">' + inner + "</g>" : inner) + "</g>"; }); return s + '<g class="tks">' + ["t0", "tx"].map(t => tokEl(g, t)).join("") + "</g></g>"; } function f3SVG(key) { const C = F3_COMBO[key], vb = C.vb, id = "f3" + key; return '<svg class="fx f3 ' + C.cls + '" data-g="' + key + '" data-small="' + F3G[C.panels[0][0]].size.s + '" viewBox="' + vb.join(" ") + '" role="img" aria-labelledby="' + id + 't" aria-describedby="' + id + 'd">' + '<title id="' + id + 't">' + F3_TITLE + '</title><desc id="' + id + 'd">' + esc(F3_DESC) + "</desc>" + '<rect x="' + vb[0] + '" y="' + vb[1] + '" width="' + vb[2] + '" height="' + vb[3] + '" fill="#ffffff"/>' + '<path d="M ' + C.rule[0] + " " + C.rule[1] + " H " + C.rule[2] + '" fill="none" stroke="#ebe8e0" stroke-width="0.75"/>' + C.panels.map(q => f3Panel(q[0], q[1], id)).join("") + "</svg>"; } /* ---------------------------------------------------------------- Figure 3, redrawn: the steps (1-5 in panel a, 6-8 in panel b; the rest stays dimmed) */ const F3_STEPS = [ { panel: "a", on: ["arch", "tree", "marks", "lga"], cam: "all", m: 2400, cap: ["One archive per problem.", "It is an SQLite database on shared storage, outside the model. Panel a, at the top, shows who reads and who writes. Panel b, below, shows its tables."] }, { panel: "a", on: ["ctrl", "sql"], m: 2800, cap: ["The LLM controller.", "It reads the archive with read-only SQL. It keeps no state. After a warm restart, it re-reads the archive and goes on."] }, { panel: "a", on: ["kids", "sql"], m: 2600, cap: ["Child agents.", "Several run in parallel. They also read the archive with read-only SQL, and each one writes a kernel."] }, { panel: "a", on: ["eval", "tree", "marks", "newn"], m: 3400, cap: ["Evaluate.", "It checks correctness and timing. Only evaluation adds a node, and only for a correct kernel (orange ring). A failed try is logged, but it is not a node (grey ×)."] }, { panel: "a", on: ["people"], m: 2600, cap: ["People only.", "The archive is copied to a central database of all runs. It feeds a dashboard for people. Agents never read it in the final run."] }, { panel: "b", on: ["write"], m: 5200, cap: ["The write path (panel b).", "A run writes a folder per candidate, then a ledger row last. One builder rebuilds the database and swaps it in atomically, so agents never see half of it. An SQL authorizer refuses their writes (grey ×)."] }, { panel: "b", on: ["tcand", "thang"], m: 4200, cap: ["The <code>candidates</code> table.", "Each row is one scored kernel: a tree node. Its parent link is the tree edge. Three tables hang off each candidate: <code>profiles</code>, <code>robustness</code> and <code>trace</code>."] }, { panel: "b", on: ["tjoin", "tview"], m: 4000, cap: ["The <code>evaluation</code> table.", "Each row is one kernel on one workload. It joins <code>official_anchors</code>, the published baseline and SOL times. That table links to <code>problem_meta</code>. The views are derived."] }, ]; function f3Along(tr, u) { /* a point at fraction u of a track: a polyline, or a cubic curve {bez} */ if (tr.bez) { const [a, b, c, d] = tr.bez, v = 1 - u; return [v * v * v * a[0] + 3 * v * v * u * b[0] + 3 * v * u * u * c[0] + u * u * u * d[0], v * v * v * a[1] + 3 * v * v * u * b[1] + 3 * v * u * u * c[1] + u * u * u * d[1]]; } const seg = []; let L = 0; for (let i = 1; i < tr.length; i++) { const d = Math.hypot(tr[i][0] - tr[i - 1][0], tr[i][1] - tr[i - 1][1]); seg.push(d); L += d; } let d = u * L; for (let i = 0; i < seg.length; i++) { if (d <= seg[i] || i === seg.length - 1) return lerp(tr[i], tr[i + 1], seg[i] ? Math.min(1, d / seg[i]) : 1); d -= seg[i]; } return tr[tr.length - 1]; } function f3Bind(svg) { const qa = sel => [...svg.querySelectorAll(sel)], C = F3_COMBO[svg.dataset.g], els = qa(".panel"); const panel = i => ({ g: F3G[C.panels[i][0]], toks: Object.fromEntries([...els[i].querySelectorAll(".tk")].map(e => [e.dataset.t, e])) }); return { svg, a: panel(0), b: panel(1), groups: qa(".g"), fresh: qa(".fresh"), nodes: qa("[data-n]"), best: svg.querySelector(".bestdot"), xs: qa(".xmark"), dots: Object.fromEntries(qa("[data-d]").map(e => [e.dataset.d, e])) }; } function f3Render(S, k, p) { const st = F3_STEPS[k], on = (u, a, b) => ease(win(u, a, b)); const tokA = (t, at, o) => placeTok(S.a.toks[t], at, o), tokB = (t, at, o) => placeTok(S.b.toks[t], at, o); S.svg.classList.add("focus"); S.svg.dataset.panel = st.panel; /* the panel of this step; the other one stays dimmed */ S.svg.classList.toggle("restart", k === 1 && p > .36 && p < .58); S.groups.forEach(e => e.classList.toggle("on", st.on.indexOf(e.dataset.grp) >= 0)); S.xs.forEach(e => e.classList.toggle("show", e.dataset.x === "fail" ? k === 3 && p >= .9 : k === 5 && p >= .93)); ["t0", "tx"].forEach(t => { tokA(t, null); tokB(t, null); }); /* panel a. The new node (and its label) joins in step 4 and stays */ const w1 = k > 3 || (k === 3 && p >= .45); S.fresh.forEach(e => e.classList.toggle("show", w1)); /* step 1: the nodes, then the best, pulse in turn */ const pulse = (a, b) => k === 0 && p > a && p < b ? Math.sin(Math.PI * win(p, a, b)) : 0; const pn = pulse(.05, .45), pb = pulse(.52, .92); S.nodes.forEach(n => n.setAttribute("r", r2(3.6 * (1 + .55 * pn)))); S.best.setAttribute("r", r2(4.95 * (1 + .5 * pb))); let T = S.a.g.tracks; if (k === 1) { /* it reads; a warm restart (it blinks out and back); it reads again */ if (p < .3) tokA("tx", f3Along(T.q1, on(p, 0, .3))); else if (p >= .64 && p < .98) tokA("tx", f3Along(T.q1, on(p, .64, .98))); } if (k === 2) { if (p < .42) tokA("tx", f3Along(T.q2, on(p, 0, .42))); else if (p >= .5 && p < .97) tokA("t0", f3Along(T.kern, on(p, .5, .95))); } if (k === 3) { if (p < .45) tokA("t0", f3Along(T.app, on(p, 0, .45))); else if (p >= .55 && p < .99) { const u = win(p, .55, .95); tokA("tx", f3Along(T.fail, ease(u)), { fail: true, fade: Math.max(0, (u - .6) / .4) }); } } if (k === 4) { if (p < .45) tokA("tx", f3Along(T.copy, on(p, 0, .45))); else if (p >= .5 && p < .97) tokA("tx", f3Along(T.dash, on(p, .5, .95))); } /* panel b. Step 6: the folder is written first, then the ledger row; the builder swaps the new database in; agents read it; a write is refused */ const gb = S.b.g, lit = (a, b) => k === 5 ? Math.sin(Math.PI * win(p, a, b)) : 0, dd = S.dots; T = gb.tracks; if (dd.folder) dd.folder.setAttribute("stroke-width", r2(0.825 + 1.1 * lit(0, .12))); if (dd.ledger) dd.ledger.setAttribute("stroke-width", r2(0.825 + 1.1 * lit(.14, .26))); if (dd.builder) dd.builder.setAttribute("r", r2(gb.dotR * (1 + .45 * lit(.46, .54)))); if (k === 5 && p < 1) { if (p >= .28 && p < .46) tokB("t0", f3Along(T.w2, on(p, .28, .46))); else if (p >= .56 && p < .72) tokB("t0", f3Along(T.w3, on(p, .56, .72))); else if (p >= .76) { /* an agent tries to write, beside the read-only arrow: it stops, shakes and is gone */ const u = win(p, .76, 1), at = f3Along(T.wx, ease(Math.min(1, u * 1.8))); tokB("tx", [at[0] + 2.4 * Math.sin(6 * Math.PI * u) * u, at[1]], { fail: true, fade: Math.max(0, (u - .55) / .45) }); } } /* step 7: the parent link, then the tables that hang off a candidate; step 8: the joins, then the derived views */ const legs = k === 6 ? [["loop", 0, .22, "t0"], ["lp", .28, .46], ["lr", .52, .7], ["lt", .76, .94]] : k === 7 ? [["le", 0, .2, "tx", true], ["lo", .26, .46], ["lm", .52, .72], ["dv", .78, .96, "t0"]] : []; if (p < 1) legs.forEach(l => { if (p >= l[1] && p < l[2] + .02) tokB(l[3] || "tx", f3Along(T[l[0]], l[4] ? 1 - on(p, l[1], l[2]) : on(p, l[1], l[2]))); }); } /* ---------------------------------------------------------------- the two redrawn figures, and their player */ const FIGS = { f2: { steps: F2_STEPS, sel: ".f2", svgs: ["w", "t"], svg: f2SVG, bind: f2Bind, render: f2Render, h: "Figure 2, step by step", note: "Each step zooms in on its part, and a moving dot shows what travels along each path. Use Back and Step, or the arrow keys once you click the figure." }, f3: { steps: F3_STEPS, sel: ".f3", svgs: ["w", "t"], svg: f3SVG, bind: f3Bind, render: f3Render, h: "Figure 3, step by step", note: "Panel a, at the top, comes first; panel b, below, comes in steps 6 to 8. Each step zooms in on its part, and a moving dot shows what travels along each path. Use Back and Step, or the arrow keys once you click the figure." }, }; /* Each copy plays once when it and its caption are on screen (never with reduced motion), and pauses when it leaves the view or the tab is hidden. Pause freezes the movement; Step and Back pause and move one step; Restart goes back to the start. Only one copy moves at a time: starting one pauses the other. The camera: each copy fits the screen under the site header. Step 1 (and Restart) show the whole graph; every later step zooms and pans smoothly (the SVG viewBox, eased) to the parts it lights, never closer than CAM_PX for the smallest words, and stays where it is when the next parts already fit and read at CAM_REST_PX or more; the step's movement starts once the camera is there. "Whole graph" shows all of it until the next step. With reduced motion the camera jumps. */ const CAM_MS = 800, CAM_PX = 16, CAM_REST_PX = 13, FRAME_MARGIN = 24, MIN_H = 240; function fitView(box, vw, vh, full, maxScale) { /* the view of box with the screen's shape, no closer than maxScale, kept inside the graph */ const ar = vw / vh; let w = Math.max(box[2], box[3] * ar), h; w = Math.max(w, vw / maxScale); const fw = Math.max(full[2], full[3] * ar); w = Math.min(w, fw); h = w / ar; let x = box[0] + box[2] / 2 - w / 2, y = box[1] + box[3] / 2 - h / 2; x = w >= full[2] ? full[0] + (full[2] - w) / 2 : Math.max(full[0], Math.min(full[0] + full[2] - w, x)); y = h >= full[3] ? full[1] + (full[3] - h) / 2 : Math.max(full[1], Math.min(full[1] + full[3] - h, y)); return [x, y, w, h]; } let svhProbe = null; function screenH() { /* the small viewport height (with the phone's toolbars shown): it does not change while the page scrolls */ if (!svhProbe) { svhProbe = document.createElement("div"); svhProbe.setAttribute("aria-hidden", "true"); svhProbe.style.cssText = "position:fixed;left:0;top:0;width:0;height:100vh;height:100svh;visibility:hidden;pointer-events:none"; document.body.appendChild(svhProbe); } return svhProbe.getBoundingClientRect().height || window.innerHeight; } function lerpView(a, b, e) { /* pan the centre in a straight line, zoom evenly */ const w = a[2] * Math.pow(b[2] / a[2], e), h = a[3] * Math.pow(b[3] / a[3], e); const cx = a[0] + a[2] / 2 + (b[0] + b[2] / 2 - a[0] - a[2] / 2) * e, cy = a[1] + a[3] / 2 + (b[1] + b[3] / 2 - a[1] - a[3] / 2) * e; return [cx - w / 2, cy - h / 2, w, h]; } const PLAYERS = new Set(); function mountRound(el, F) { const steps = F.steps, N = steps.length, insts = [...el.querySelectorAll(F.sel)].map(F.bind); const cap = el.querySelector(".rd-cap"), pos = el.querySelector(".rd-pos"); const bPlay = el.querySelector('[data-act="play"]'), bBack = el.querySelector('[data-act="back"]'), bStep = el.querySelector('[data-act="step"]'), bRe = el.querySelector('[data-act="restart"]'), bWhole = el.querySelector('[data-act="whole"]'), plate = el.querySelector(".plate"), bar = el.querySelector(".rd-bar"); /* one camera per layout (wide, tall): the whole graph, and the view now */ const views = insts.map(S => ({ S, svg: S.svg, full: S.svg.getAttribute("viewBox").split(/\s+/).map(Number), small: +S.svg.dataset.small || 9, vb: null, from: null, to: null })); let whole = false, camRaf = 0, camT0 = 0, camBusy = false; const mq = window.matchMedia ? matchMedia("(prefers-reduced-motion: reduce)") : null; let rm = !!(mq && mq.matches), k = 0, t = 0, playing = false, moving = false, autoPaused = false, started = false, inView = false, barIn = false; let dead = false, raf = 0, hold = 0, last = 0, rz = 0; const plain = s => s.replace(/<[^>]+>/g, ""); const M = i => rm ? 0 : steps[i].m || 0; /* reading time: unhurried (a slow reader, while the eyes also follow the movement) */ const H = i => Math.max(5000, Math.min(15000, 2000 + 90 * (plain(steps[i].cap[0]).length + plain(steps[i].cap[1]).length))); const capHTML = i => '<span class="vh">Step ' + (i + 1) + " of " + N + ". </span><b>" + steps[i].cap[0] + "</b> " + steps[i].cap[1]; const draw = () => { const m = M(k), p = m ? Math.max(0, Math.min(1, t / m)) : 1; insts.forEach(S => F.render(S, k, p)); }; /* t < 0: the camera is still moving */ const wholeNow = () => whole || k === 0 || steps[k].cam === "all"; function region(V) { /* the parts this step lights, in graph units (a panel moved down in the tall layout adds its offset), and their smallest words */ const on = steps[k].on; let x0 = Infinity, y0 = Infinity, x1 = -Infinity, y1 = -Infinity, fmin = Infinity; V.S.groups.forEach(gEl => { if (on.indexOf(gEl.dataset.grp) < 0) return; let b; try { b = gEl.getBBox(); } catch (e) { return; } if (!b.width && !b.height) return; const panel = gEl.closest(".panel"), dy = panel ? +panel.dataset.dy || 0 : 0; x0 = Math.min(x0, b.x); y0 = Math.min(y0, b.y + dy); x1 = Math.max(x1, b.x + b.width); y1 = Math.max(y1, b.y + b.height + dy); gEl.querySelectorAll("text:not(.fb)").forEach(t => { fmin = Math.min(fmin, +t.getAttribute("font-size") || fmin); }); }); if (!isFinite(x0)) return null; const box = [x0 - 4, y0 - 4, x1 - x0 + 8, y1 - y0 + 8]; box.fmin = isFinite(fmin) ? fmin : V.small; return box; } function target(V) { const w = V.svg.clientWidth, h = V.svg.clientHeight; if (!w || !h) return null; /* the layout not in use */ if (wholeNow()) return fitView(V.full, w, h, V.full, CAM_PX / V.small); const box = region(V); if (!box) return fitView(V.full, w, h, V.full, CAM_PX / V.small); const cur = V.to || V.vb, inside = cur && box[0] >= cur[0] && box[1] >= cur[1] && box[0] + box[2] <= cur[0] + cur[2] && box[1] + box[3] <= cur[1] + cur[3]; if (inside && cur[2] < V.full[2] + .5 && w / cur[2] * box.fmin >= CAM_REST_PX) return cur; /* the view it is going to already fits and reads well: stay */ return fitView(box, w, h, V.full, CAM_PX / V.small); } const setVB = (V, b) => { V.vb = b; V.svg.setAttribute("viewBox", b.map(r2).join(" ")); }; function camTick(now) { const u = Math.min(1, (now - camT0) / CAM_MS), e = ease(u); views.forEach(V => { if (V.to) setVB(V, lerpView(V.from, V.to, e)); }); if (u < 1) { camRaf = requestAnimationFrame(camTick); return; } camRaf = 0; camBusy = false; camUI(); } function camGo(tween) { /* to the view of this step; returns true when it moves smoothly */ let any = false; views.forEach(V => { V.to = target(V); if (!V.to) return; V.from = V.vb || V.to; if (V.from.some((x, j) => Math.abs(x - V.to[j]) > .5)) any = true; }); if (camRaf) cancelAnimationFrame(camRaf); camRaf = 0; if (tween && any && !rm && !dead) { camT0 = performance.now(); camBusy = true; camRaf = requestAnimationFrame(camTick); } else { views.forEach(V => { if (V.to) setVB(V, V.to); }); camBusy = false; any = false; } camUI(); return any; } function camUI() { el.dataset.view = wholeNow() ? "whole" : "zoom"; el.dataset.cam = camBusy ? "moving" : "still"; el.dataset.on = steps[k].on.join(" "); } /* where we are: one dot per step (the words are for screen readers) */ pos.innerHTML = '<span class="vh"></span>' + steps.map(() => '<span class="pip"></span>').join(""); pos.setAttribute("aria-hidden", "true"); /* the live caption says the step; the dots are for the eyes */ const posText = pos.querySelector(".vh"), pips = [...pos.querySelectorAll(".pip")], count = el.querySelector(".rd-count"); function ui() { const end = k === N - 1, busyNow = playing || (moving && t < M(k)), label = busyNow ? "Pause" : end ? "Replay" : "Play"; if (bPlay.dataset.l !== label) { bPlay.dataset.l = label; bPlay.setAttribute("aria-label", label); bPlay.innerHTML = RD_ICON[busyNow ? "pause" : "play"] + '<span class="lb"><span>' + label + "</span></span>"; } bStep.setAttribute("aria-disabled", String(end)); bBack.setAttribute("aria-disabled", String(k === 0)); posText.textContent = "Step " + (k + 1) + " of " + N; count.textContent = (k + 1) + " / " + N; pips.forEach((e, i) => { e.classList.toggle("done", i < k); e.classList.toggle("now", i === k); }); el.dataset.step = k; el.dataset.playing = String(playing); el.dataset.moving = String(t < M(k) && (playing || moving)); } function stop() { if (raf) cancelAnimationFrame(raf); if (hold) clearTimeout(hold); raf = hold = 0; } function run() { stop(); if (dead) return; if (t < M(k) && (playing || moving)) { last = performance.now(); raf = requestAnimationFrame(tick); } else if (playing) hold = setTimeout(next, H(k)); } function tick(now) { raf = 0; t = Math.min(M(k), t + Math.max(0, Math.min(80, now - last))); last = now; draw(); if (t < M(k)) { raf = requestAnimationFrame(tick); return; } moving = false; ui(); if (playing) hold = setTimeout(next, H(k)); } function next() { hold = 0; if (k < N - 1) go(k + 1, true); else { playing = false; ui(); } } function go(i, animate, tween) { k = i; if (whole) { whole = false; bWhole.setAttribute("aria-pressed", "false"); } /* a new step: the camera follows the steps again */ cap.innerHTML = capHTML(i); const moved = camGo(tween !== false); t = animate ? (moved && M(i) ? -CAM_MS : 0) : M(i); /* the movement waits for the camera */ draw(); run(); ui(); } /* one at a time: before this copy moves, the other one pauses (a single step in progress jumps to its end) */ const me = { active: () => playing || moving, yieldTo() { /* (a copy already paused off screen keeps its place, and goes on when it comes back into view) */ if (!playing && !moving) return; autoPaused = false; if (moving) { moving = false; t = M(k); draw(); } playing = false; run(); ui(); }, }; PLAYERS.add(me); const claim = () => PLAYERS.forEach(p => { if (p !== me) p.yieldTo(); }); const busy = () => [...PLAYERS].some(p => p !== me && p.active()); function byUser() { started = true; autoPaused = false; cap.setAttribute("aria-live", "polite"); } bPlay.addEventListener("click", () => { /* Pause also stops a single step that is still moving */ byUser(); if (playing || (moving && t < M(k))) { playing = false; moving = false; run(); ui(); return; } claim(); playing = true; moving = false; if (k === N - 1 && t >= M(k)) go(0, true); else { run(); ui(); } }); bStep.addEventListener("click", () => { if (k === N - 1) return; byUser(); claim(); playing = false; moving = !rm; go(k + 1, true); }); bBack.addEventListener("click", () => { /* back one step, shown as it ends (no movement) */ if (k === 0) return; byUser(); playing = false; moving = false; go(k - 1, false); }); bRe.addEventListener("click", () => { byUser(); moving = false; go(0, false); }); bWhole.addEventListener("click", () => { /* the whole graph at any time, until the next step; press again to go back */ whole = !whole; bWhole.setAttribute("aria-pressed", String(whole)); camGo(true); }); /* the arrow keys act on the copy that has focus; a click anywhere on it gives it focus (not every browser focuses a clicked button) */ el.addEventListener("keydown", e => { if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return; if (e.key === "ArrowRight") { e.preventDefault(); bStep.click(); } else if (e.key === "ArrowLeft") { e.preventDefault(); bBack.click(); } }); el.addEventListener("pointerdown", () => { if (!el.contains(document.activeElement)) el.focus({ preventScroll: true }); }); /* it starts by itself only once the figure and its caption are both on screen, and only if the other copy is not moving */ const io = "IntersectionObserver" in window ? new IntersectionObserver(es => { es.forEach(e => { const on = e.isIntersecting; if (e.target === plate) inView = on && e.intersectionRatio >= .35; else barIn = on && e.intersectionRatio >= .9; }); if (inView && barIn && !started && !rm && !busy()) { started = true; cap.setAttribute("aria-live", "off"); claim(); playing = true; run(); ui(); } else if (inView && autoPaused) { autoPaused = false; claim(); playing = true; run(); ui(); } else if (!inView && playing) { autoPaused = true; playing = false; run(); ui(); } }, { threshold: [0, .35, .7, .9, 1] }) : null; if (io) { io.observe(plate); io.observe(bar); } const onVis = () => { if (document.hidden) { if (playing) { autoPaused = true; playing = false; run(); ui(); } } else if (autoPaused && inView) { autoPaused = false; claim(); playing = true; run(); ui(); } }; document.addEventListener("visibilitychange", onVis); const onRM = () => { rm = !!mq.matches; if (rm) playing = false; t = M(k); camGo(false); draw(); run(); ui(); }; if (mq) { if (mq.addEventListener) mq.addEventListener("change", onRM); else if (mq.addListener) mq.addListener(onRM); } /* the caption keeps the height of its longest step, so the buttons never move; the graph takes the height left on the screen */ function fit() { rz = 0; if (dead || !cap.clientWidth) return; const gh = document.createElement("p"); gh.className = "rd-cap rd-ghost"; gh.setAttribute("aria-hidden", "true"); gh.style.width = cap.clientWidth + "px"; bar.appendChild(gh); let h = 0; for (let i = 0; i < N; i++) { gh.innerHTML = capHTML(i); h = Math.max(h, gh.getBoundingClientRect().height); } gh.remove(); cap.style.minHeight = Math.ceil(h) + "px"; /* rounded up, so every step's caption box is exactly this tall */ const head = document.querySelector("header.top"), ps = getComputedStyle(plate); const room = screenH() - (head ? head.getBoundingClientRect().height : 0) - FRAME_MARGIN - bar.getBoundingClientRect().height - parseFloat(ps.paddingTop) - parseFloat(ps.paddingBottom) - 2; /* 2: the frame's borders */ views.forEach(V => { const w = V.svg.clientWidth; if (!w) return; V.svg.style.height = Math.floor(Math.max(MIN_H, Math.min(w * V.full[3] / V.full[2], room))) + "px"; }); camGo(false); } let lastW = window.innerWidth, lastH = screenH(); const onResize = () => { /* only a new width or a new screen height (not the phone's toolbar) fits the frame again */ const w = window.innerWidth, h = screenH(); if (w === lastW && Math.abs(h - lastH) < 2) return; lastW = w; lastH = h; if (rz) clearTimeout(rz); rz = setTimeout(fit, 120); }; window.addEventListener("resize", onResize); cap.setAttribute("aria-live", "polite"); go(0, false, false); fit(); return { destroy() { dead = true; stop(); if (rz) clearTimeout(rz); if (camRaf) cancelAnimationFrame(camRaf); PLAYERS.delete(me); if (io) io.disconnect(); window.removeEventListener("resize", onResize); document.removeEventListener("visibilitychange", onVis); if (mq) { if (mq.removeEventListener) mq.removeEventListener("change", onRM); else if (mq.removeListener) mq.removeListener(onRM); } }, }; } function codeSection(title, intro) { return '<section class="code-sec" aria-labelledby="code-h"><h2 id="code-h">' + title + "</h2>" + intro + '<div class="codebox"><div class="files" role="group" aria-label="Files"></div>' + '<div class="pane"><div class="vhead"></div><p class="vstatus" role="status" aria-live="polite"></p>' + '<div class="viewer" tabindex="0"><div class="vgrid"><pre class="gutter" aria-hidden="true"></pre><pre class="src"><code></code></pre></div></div>' + "</div></div></section>"; } /* ================================================================ code viewer A file is fetched (same origin) only when it is opened, then kept in memory. */ const textCache = new Map(); let loadToken = 0; function mountCode(box, files, o) { const list = box.querySelector(".files"), head = box.querySelector(".vhead"), status = box.querySelector(".vstatus"), viewer = box.querySelector(".viewer"), grid = box.querySelector(".vgrid"), gut = box.querySelector(".gutter"), code = box.querySelector(".src code"); list.innerHTML = files.map((f, i) => { const cut = f.path.lastIndexOf("/"); return '<button type="button" class="file" data-i="' + i + '" aria-pressed="false"><span class="fn">' + (cut >= 0 ? '<span class="dir">' + esc(f.path.slice(0, cut + 1)) + "</span>" : "") + esc(f.path.slice(cut + 1)) + '</span><span class="fl">' + plural(f.lines, "line") + "</span></button>"; }).join(""); list.addEventListener("click", e => { const b = e.target.closest(".file"); if (b) select(+b.dataset.i, true); }); let first = files.findIndex(f => f.path === o.initial); if (first < 0) first = Math.max(0, files.findIndex(f => f.path.indexOf("/") < 0)); select(first, false); function select(i, byUser) { const f = files[i], url = o.url(f), t = ++loadToken; [...list.children].forEach((b, j) => b.setAttribute("aria-pressed", String(i === j))); head.innerHTML = '<span class="vname">' + esc(f.path) + '</span><span class="vmeta">' + plural(f.lines, "line") + " · " + fmtSize(f.bytes) + '</span><a class="vdl" href="' + esc(url) + '" download>Download</a>'; viewer.setAttribute("aria-label", "Code of " + f.path); if (byUser) history.replaceState(null, "", o.hash(f)); gut.textContent = ""; code.textContent = ""; grid.hidden = true; status.hidden = false; status.className = "vstatus"; status.textContent = "Loading " + f.path + " …"; const got = textCache.has(url) ? Promise.resolve(textCache.get(url)) : fetch(url).then(r => { if (!r.ok) throw new Error("HTTP " + r.status); return r.text(); }) .then(s => { textCache.set(url, s); return s; }); got.then(s => { if (t !== loadToken) return; const plain = render(s, f.path, gut, code); grid.hidden = false; status.hidden = !plain; status.textContent = plain ? "This file is large, so it is shown without colors." : ""; viewer.scrollTop = 0; viewer.scrollLeft = 0; }).catch(e => { if (t !== loadToken) return; status.className = "vstatus bad"; status.innerHTML = "This file could not be loaded (" + esc(e.message || "network error") + "). " + (location.protocol === "file:" ? "Browsers block this when the page is opened as a local file. " + "Serve the folder with a small web server instead, for example <code>python3 -m http.server</code>." : "Please try again later."); }); } } const MAX_COLOR = 400000; /* larger files are shown without colors, so the page stays fast */ function render(s, path, gut, code) { s = s.replace(/\r\n?/g, "\n"); if (s.endsWith("\n")) s = s.slice(0, -1); let n = 1; for (let i = 0; i < s.length; i++) if (s.charCodeAt(i) === 10) n++; const nums = new Array(n); for (let i = 0; i < n; i++) nums[i] = i + 1; gut.textContent = nums.join("\n"); const plain = s.length > MAX_COLOR; code.innerHTML = plain ? esc(s) : highlight(s, langOf(path)); return plain; } /* light syntax colors: comments, strings, numbers, keywords, a few types, preprocessor lines and decorators */ const words = s => new Set(s.split(" ")); const LANGS = { c: { re: /(?<c>\/\/[^\n]*|\/\*[\s\S]*?(?:\*\/|$(?![\s\S])))|(?<s>R"(?<d>[^()\\\s"]{0,16})\([\s\S]*?\)\k<d>"|"(?:[^"\\\n]|\\[\s\S])*"|'(?:[^'\\\n]|\\[\s\S]){1,8}')|(?<p>^[ \t]*#[ \t]*include\b[^\n]*|^[ \t]*#[ \t]*[A-Za-z_]\w*)|(?<n>\b(?:0[xX][\da-fA-F']+|0[bB][01']+|\d[\d']*(?:\.\d*)?(?:[eE][+-]?\d+)?)[uUlLfFhH]*\b)|(?<w>[A-Za-z_]\w*)/gm, kw: words("alignas alignof asm auto bool break case catch char class const consteval constexpr constinit const_cast continue decltype default delete do double dynamic_cast else enum explicit extern false float for friend goto if inline int long mutable namespace new noexcept nullptr operator private protected public register reinterpret_cast return short signed sizeof static static_assert static_cast struct switch template this thread_local throw true try typedef typeid typename union unsigned using virtual void volatile while __global__ __device__ __host__ __shared__ __constant__ __managed__ __restrict__ __forceinline__ __noinline__ __launch_bounds__ __grid_constant__ __cluster_dims__ __maxnreg__ __align__"), ty: words("int8_t int16_t int32_t int64_t uint8_t uint16_t uint32_t uint64_t size_t ptrdiff_t uintptr_t half half2 float2 float4 int2 int4 uint2 uint4 dim3 __half __half2 __nv_bfloat16 __nv_bfloat162 __nv_fp8_e4m3 __nv_fp8_e5m2 cudaStream_t cudaError_t cudaEvent_t"), }, py: { re: /(?<c>#[^\n]*)|(?<s>(?:\b[rRbBuUfF]{1,2})?(?:"""[\s\S]*?(?:"""|$(?![\s\S]))|'''[\s\S]*?(?:'''|$(?![\s\S]))|"(?:[^"\\\n]|\\[\s\S])*"|'(?:[^'\\\n]|\\[\s\S])*'))|(?<p>^[ \t]*@[A-Za-z_][\w.]*)|(?<n>\b(?:0[xX][\da-fA-F_]+|0[bB][01_]+|0[oO][0-7_]+|\d[\d_]*(?:\.[\d_]*)?(?:[eE][+-]?\d+)?j?)\b)|(?<w>[A-Za-z_]\w*)/gm, kw: words("False None True and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield"), ty: words("int float bool str bytes list dict tuple set type"), }, md: { re: /(?<s>^```[^\n]*\n[\s\S]*?(?:^```[ \t]*$|$(?![\s\S]))|`[^`\n]+`)|(?<p>^#{1,6}[ \t][^\n]*)|(?<k>\*\*[^*\n]+\*\*)/gm, cls: { p: "h", k: "b" }, }, json: { re: /(?<s>"(?:[^"\\\n]|\\[\s\S])*")|(?<n>-?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b)|(?<w>[A-Za-z_]\w*)/g, kw: words("true false null"), }, }; const C_EXT = words("cu cuh h hh hpp hxx c cc cpp cxx inc inl ipp"); function langOf(path) { const e = path.slice(path.lastIndexOf(".") + 1).toLowerCase(); return C_EXT.has(e) ? "c" : e === "py" || e === "pyi" ? "py" : e === "md" ? "md" : e === "json" ? "json" : null; } function highlight(s, lang) { const L = LANGS[lang]; if (!L) return esc(s); const re = L.re, cls = L.cls || {}; let out = "", last = 0, m; re.lastIndex = 0; while ((m = re.exec(s)) !== null) { if (!m[0]) { re.lastIndex++; continue; } const g = m.groups; let c = null; if (g.c !== undefined) c = "c"; else if (g.s !== undefined) c = "s"; else if (g.p !== undefined) c = cls.p || "p"; else if (g.n !== undefined) c = "n"; else if (g.k !== undefined) c = cls.k || "k"; else if (g.w !== undefined) c = L.kw && L.kw.has(m[0]) ? "k" : L.ty && L.ty.has(m[0]) ? "t" : null; if (c === null) continue; /* a plain word stays in the text between colored parts */ out += esc(s.slice(last, m.index)) + '<span class="' + c + '">' + esc(m[0]) + "</span>"; last = m.index + m[0].length; } return out + esc(s.slice(last)); } route(); })(); </script> </body> </html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CompoundingKernel Explorer: SOL-ExecBench on B200</title>
<meta name="description" content="CompoundingKernel: the paper (arXiv 2611.19230), the method code, and a GPU kernel for each of the 235 SOL-ExecBench problems on NVIDIA B200.">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1' y='1' width='24' height='24' rx='6' fill='%23FAF9F5' stroke='%231F1E1D' stroke-width='1.6'/%3E%3Crect x='6' y='6' width='6' height='6' rx='1.5' fill='%23405F87'/%3E%3Crect x='14' y='6' width='6' height='6' rx='1.5' fill='none' stroke='%23CE9DB3' stroke-width='1.6'/%3E%3Crect x='6' y='14' width='6' height='6' rx='1.5' fill='none' stroke='%236E8B74' stroke-width='1.6'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1.5' fill='none' stroke='%23C3B787' stroke-width='1.6'/%3E%3C/svg%3E">
<style>
/* Paper style ("Editorial ink", tech-report/v6/ck-header.tex + blog/src/template.html tokens).
Board colours come from the demo film (video/SPEC.md, muted on purpose): light = the film's marks; dark = lighter steps
of the same hues, re-stepped to pass the CVD checks. Board names stay in ink, next to the colour (the logo is decorative). */
:root {
--bg: #FAF9F5; --panel: #FFFFFF; --soft: #F0EEE6; --tint: #F6F4EE;
--ink: #1F1E1D; --ink-2: #3D3D3A; --muted: #6B6A64; --rule: #CFCBC0; --hair: #EBE8E0;
--clay: #C96442; --clay-ink: #A9502F; --ours: #F8ECE6;
--l1: #405F87; --l2: #CE9DB3; --quant: #6E8B74; --fi: #C3B787;
--focus: #A9502F;
/* code colors: each is at least 4.9:1 on the code background */
--hl-k: #A9502F; --hl-t: #2F5E9E; --hl-s: #2B7041; --hl-n: #8A5A00; --hl-p: #7A48AE; --hl-c: #6B6A64;
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "TeX Gyre Pagella", P052, Georgia, serif;
--sans: Helvetica, Arial, "Nimbus Sans", "DejaVu Sans", sans-serif;
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
--r: 4px;
color-scheme: light;
}
:root[data-theme="dark"] {
--bg: #262624; --panel: #30302E; --soft: #3A3A37; --tint: #2C2C2A;
--ink: #DDD9CE; --ink-2: #C9C6BB; --muted: #AAA89F; --rule: #55544F; --hair: #3D3D3A;
--clay: #E08A6D; --clay-ink: #EB9B80; --ours: #4C3128;
--l1: #6599CF; --l2: #BC7496; --quant: #3C865E; --fi: #AD9247;
--focus: #EB9B80;
--hl-k: #EB9B80; --hl-t: #8DB3F2; --hl-s: #8FCB9B; --hl-n: #E0B66A; --hl-p: #C9A2F0; --hl-c: #AAA89F;
color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0; background: var(--bg); color: var(--ink);
font: 16px/1.6 var(--sans);
font-feature-settings: "tnum" 1;
}
h1, h2, h3, .serif { font-family: var(--serif); }
a { color: var(--clay-ink); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
code { font-family: var(--mono); font-size: .92em; }
/* top bar: thin rule, like the report's running header */
header.top { border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; align-items: center; gap: 26px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand svg { flex: none; }
nav.main { display: flex; gap: 18px; flex: 1; min-width: 0; font-size: 14.5px; overflow-x: auto; }
nav.main a { text-decoration: none; color: var(--muted); padding: 4px 0; white-space: nowrap; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--clay); }
.theme-btn { flex: none; border: 1px solid var(--rule); background: transparent; color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.theme-btn svg { width: 17px; height: 17px; }
/* hero: report title block */
.hero { padding: 52px 0 6px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; font-weight: 600; max-width: 28ch; }
.hero p.lede { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 0 0 22px; }
.notice { display: flex; gap: 12px; align-items: baseline; padding: 12px 18px; background: var(--ours); border-left: 3px solid var(--clay); max-width: 62ch; }
.notice b { font-weight: 700; }
.made { margin: 14px 0 0; max-width: 62ch; font-size: 15px; color: var(--ink-2); }
/* the demo film, right under the title so a visitor sees it first: the full width of the page column, in a 16:9 box (no jump while it loads) */
.film { margin: 22px 0 26px; }
.film-box { border: 1px solid var(--rule); background: var(--tint); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; max-width: none; }
.film-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--sans); font-size: 14px; }
.film-q { display: flex; gap: 6px; }
.film-dl { white-space: nowrap; }
/* board filter: a table-like strip with hairline rules */
.boards { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); margin: 38px 0 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.boards button { all: unset; cursor: pointer; padding: 14px 16px 12px; border-right: 1px solid var(--hair); position: relative; }
.boards button:last-child { border-right: 0; }
.boards button .n { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.boards button:first-child .n { color: var(--clay-ink); }
.boards button .t { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.boards button .sw { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.boards button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c, var(--clay)); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.boards button[aria-pressed="true"] { background: var(--tint); }
.boards button[aria-pressed="true"]::after { transform: scaleX(1); }
.boards button:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
/* floorplan as a report figure */
figure.plan-fig { margin: 0; }
.plan-card { background: var(--tint); border: 1px solid var(--hair); padding: 14px; }
.plan-head { display: flex; justify-content: flex-end; margin: 0 2px 10px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.legend i.hollow { border: 1.5px solid var(--muted); }