Kernel-Trap-Cards / index.html
alphabell-research's picture
Publish Kernel Trap Cards (#1)
d3ce0b5
Raw History Blame Contribute Delete
3.98 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#0c1725">
<meta name="description" content="Five tiny correctness tests that pass a faulty kernel. Pick the second test that catches each bug, then compare real browser-run outputs.">
<title>Kernel Trap Cards | alphaBell</title>
<link rel="stylesheet" href="./styles.css">
<script type="module" src="./app.js"></script>
</head>
<body>
<header class="site-header">
<a class="brand" href="https://alphabell.com/" aria-label="alphaBell homepage"><span class="brand-mark">aB</span><span>alphaBell<span class="brand-sep"> / </span>Kernel Trap Cards</span></a>
<a class="header-link" href="https://huggingface.co/alphabell">Our lab on Hugging Face <span aria-hidden="true">&nearr;</span></a>
</header>
<main>
<section class="hero wrap" aria-labelledby="title">
<div class="eyebrow">Interactive code evaluation</div>
<h1 id="title">One green test can lie.</h1>
<p class="lede">A generated kernel passes the fixed test. Choose the next input that exposes what it missed. The browser runs both the candidate and a reference for every choice.</p>
<div class="hero-note">Five original teaching examples. About three minutes. No model call or upload.</div>
</section>
<section class="game wrap" aria-label="Kernel trap quiz">
<div class="game-topline"><div><span class="pill" id="progress">Case 1 of 5</span><span class="score" id="score">Caught: 0</span></div><a id="case-link" href="?case=tail-mask">Link to this case <span aria-hidden="true">&nearr;</span></a></div>
<article class="case-card" id="case-card">
<div class="case-head"><span class="case-number" id="case-number">01 / 05</span><h2 id="case-title"></h2><p id="case-task"></p></div>
<div class="test-badge"><span class="status-dot" aria-hidden="true"></span><div><strong>Fixed test passed</strong><span id="fixed-test"></span></div></div>
<div class="code-label">Candidate sketch</div><pre><code id="code"></code></pre>
<h3 id="question"></h3>
<div class="choices" id="choices" role="group" aria-labelledby="question"></div>
<div class="feedback" id="feedback" role="status" aria-live="polite" hidden></div>
<button class="next-button" id="next" type="button" hidden>Next trap <span aria-hidden="true">&rarr;</span></button>
</article>
<article class="final-card" id="final-card" hidden>
<div class="eyebrow">All five traps tested</div>
<h2 id="final-title"></h2>
<p>A passing fixed input says the candidate handled that input. Shape, stride, value range, row count and aliasing each need their own checks.</p>
<button class="next-button" id="restart" type="button">Try again <span aria-hidden="true">&rarr;</span></button>
</article>
</section>
<section class="source wrap" aria-labelledby="source-title"><div class="source-inner"><div><div class="eyebrow">Why this matters</div><h2 id="source-title">Correctness needs a wider input regime.</h2><p>These browser-run sketches use original examples, not GPU kernels. They illustrate the fixed-shape testing problem studied in Dipankar Sarkar's work on LLM-generated GPU kernels. His published corpus pairs deliberately faulty variants with correct controls and uses seeded tests across shapes and dtypes.</p></div><div class="source-links"><a href="https://arxiv.org/abs/2606.20128" target="_blank" rel="noopener noreferrer">Read the paper <span aria-hidden="true">&nearr;</span></a><a href="https://huggingface.co/datasets/dipankarsarkar/gpuemu-corpus" target="_blank" rel="noopener noreferrer">Inspect the corpus <span aria-hidden="true">&nearr;</span></a></div></div></section>
</main>
<footer class="footer wrap"><span>alphaBell</span><span>Test the boundary, then trust the score.</span></footer>
</body>
</html>