Muse Spark on H200: four weeks of GPU kernels, and what the winners did that I didn't

Carson Rodrigues

Carson Rodrigues / November 30, 2026

8 min read • ––– views

hackathonsgpucudallm-inference
Bar chart: tokens per second per GPU at stock SGLang's per-user speed, stock against my patch, at 1, 4, 16 and 32 users. My patch is 1.31x, 1.32x, 1.33x and 1.31x faster; the score is 1.319x

Meta's Muse Spark Open is a mixture-of-experts model: 256 experts per layer, eight picked per token, weights stored in 4 bits. The Open Kernel Challenge asked one question about it: how much faster can it run on Nvidia H200s than stock SGLang serves it?

My best answer was 1.32x. The best answer in the field was 4.49x. This post is about both numbers.

HackathonMuse Spark Open Kernel Challenge
OrganiserParadigm, with Meta and Andromeda
WhenKernel track 22 October to 4 November 2026; serving track 12 to 19 November 2026
Field1,297 entries on the decode-layer board; 356 participants with a scored serving run
Result and rankKernel track: #98 of 1,297 on the decode layer at 2.303x. Serving track: 1.319x, #193 of 356 by raw score. Final standings and awards are still under review, and I'll add them here
Prizes$100,000 on the serving board, top 10
Built inAbout four weeks, mostly with Claude Code running parallel research and build sessions
TeamSolo
Money spentAbout $18 on one rented H200 for 3.5 hours. Every scored run was on the organisers' GPUs
CodeMy serving patch is public as PR #193 (Apache-2.0)

The hackathon

There were two tracks.

The kernel track had five boards, one per piece of a transformer layer: the dense projections, attention decode, the routed experts, prefill, and the whole decode layer. A submission was one Python file. The judge checked it against a reference on fresh inputs every call and timed it against SGLang's own kernel in the same run, as CUDA graph replays with a cold L2 cache. The rules were strict: every key attended, no lower precision than SGLang uses, nothing cached between calls.

The serving track was the real prize. A submission was a patch to SGLang, run on a whole 8×H200 node against stock SGLang on the same node at 1, 4, 16 and 32 users. The score was throughput per GPU at stock's per-user speed, as a geometric mean over those four loads. From 11 November patches also had to be lossless. The serving leaderboard stayed hidden until the close, and SGLang maintainers would weigh in on which patches could be merged.

What I built

Kernel track: the whole decode layer

I put almost everything into the decode-layer board, because it held the most of the model in one file. Two public kernels set the pace there. alygg77's release on 29 October moved the top-50 line overnight, and keell0renz's on 1 November was 1.9% faster again on our judge. Both were Apache-2.0, so I rebuilt on each and added my own changes on top. Rebuilding on keell0renz's base took me from #214 to #55.

My own changes were small, measured ones. The one I like best was a new bit layout for the 4-bit weights. A 32-bit word holds eight 4-bit codes, and the kernel has to spread them across registers before it can multiply. I searched every invertible XOR mix of the bits for the one that unpacks in the fewest instructions, and found one that takes 8 operations per word instead of 9, with bit-identical results. That was worth 1.7% on the experts board.

My best decode-layer run was 2.303x stock, built 3 November.

Serving track: an SGLang patch

My serving patch did three things:

  1. Routed experts on one persistent kernel. Stock runs the 4-bit experts on Marlin. I ported the whole-layer expert kernel from the kernel track into SGLang as one cooperative kernel per launch, with work split across the GPU's SMs by cost. It keeps one copy of the weights and dequantises in registers.
  2. Write-back host cache. With hierarchical cache on, each 16K-token prefill chunk waited for its KV pages to be copied to host memory before the next chunk could start. Making write-back the default for this model removed that wait: 6.8% less wall time on my rented H200.
  3. Fixed cuBLAS plans for three dense matrix multiplies at the 16K chunk size, 2.5% to 6.5% faster in isolation. On the judge they made no difference I could see.

The last version, with the new bit layout added, scored 1.319x.

How I tested it

Every change got a written plan before it ran: the prediction, the bar, and what each result would mean. That mattered because the noise was large compared with the gains. The same code, submitted twice, could score 0.4% higher or lower, so a 0.3% improvement read off the leaderboard meant nothing.

So the kernel builds measured themselves. Each check ran the old and new code side by side in the same process, interleaved over many capture rounds. A change shipped only if that in-run A/B cleared three standard errors. The A/B harness had problems of its own, and I found several the hard way:

  • A naive A/B read a gain on two identical copies of the same code, because slow replays skew the median.
  • My own input generator spread tokens over a different number of experts than the judge's did: 0.65x as many at batch 1 and up to 1.9x at batch 32. It measured a different problem.
  • A fallback that switched itself off still passed every check, because its warning was printed before the part of the log the judge keeps.

On the serving track, each team had three checks and one scored run a day, and a check sometimes waited 24 hours in the queue. That shaped everything. I validated each patch on CPU and compiled every kernel locally against the exact SGLang revision before spending a check.

What happened

On the kernel track I finished #98 of 1,297 on the decode layer. That's a long way from 1st place's 2.61x. The last day decided a lot: 80 of the 100 entries above me were submitted in the final 27 hours, and the 23 teams that passed me did it with private kernels nobody had released.

On the serving track all three of my scored runs passed correctness, and 1.319x was the best of them. When the organisers opened every submission on 28 November, the shape of the gap was obvious.

What the winners did differently

The organisers published every team's best serving patch as a pull request, so I read the top 20 and the 21 around my rank, #180 to #200. Two things stood out.

First, everyone near me did what I did. 13 of the 21 entries around #193 shipped their own 4-bit expert kernel, and 13 tuned the dense matrix multiplies. Several shipped 1,000 to 4,000 lines of hand-written kernel code and landed between 1.27x and 1.37x. Faster kernels on their own stopped at about 1.3x to 1.4x.

Second, the score was mostly about the first turn of each conversation. The workload is 13-turn chats that open with a prompt of about 74,000 tokens, followed by short turns. Per-user speed counts the wait for that first answer, so a long first-turn prefill held everything back. The top patches cut first-turn time-to-first-token to about 0.3x stock's. Mine was about 0.8x.

The top 10 shared seven changes that few teams near me made:

WhatTop 10Near my rank (#180–#200)Why it matters
Split each prefill chunk's tokens across the 8 GPUs (sequence parallel)104Stock runs the router, norms and residual adds for every token on all 8 GPUs and all-reduces the activations twice a layer. Sharding the tokens cuts that work by 8 and turns each all-reduce into a cheaper reduce-scatter or all-gather
Prefill chunks bigger than 16K tokens (up to 57K)101The 74K first turn runs in 2 chunks instead of 5
Balance experts across GPUs: replicas of busy experts, moving load at run time104With experts split over 8 GPUs, the busiest GPU sets each layer's time. My kernel made each expert faster but did nothing about the busiest GPU
Their own FP8 prefill attention kernelabout 82Full-attention layers over a 74K context take a large share of prefill once the rest is fast (my inference)
Run decode steps inside prefill batches instead of waiting behind them90A user waiting for a reply doesn't stall behind someone else's 74K prompt
Run the last layer only on the rows whose output is read90Prefill only needs the last token's logits
Prompt lookup and tree verification for speculative decoding83About 10% more tokens accepted per step

The gap shows in the per-load ratios. The winner scored 5.40x at 1 user and 3.97x at 32. My patch scored a flat 1.31x everywhere. At 16 and 32 users the winner served about 50,700 tokens per second per GPU, against my 16,500.

They changed how the work was spread across 8 GPUs and how requests were scheduled. I made the kernels faster on one GPU at a time. The kernel track trained me to see one GPU's view of one layer, and the serving track was won at the level of the node.

What I learned

  • Read the workload before choosing levers. I planned around where stock spent its kernel time, and that pointed at the expert GEMMs. The scoring was about latency on a 74K-token first turn spread over 8 GPUs. The top patches attacked that. I could have read it in the judge's own rules and run logs from day one.
  • A kernel contest teaches you one GPU at a time. Four weeks on single-GPU timings made me good at shaving microseconds off one layer, and blind to communication and scheduling, where the 3x was.
  • Write the gate before the run. Predicting each result and committing the bar first kept me honest in a contest where one run's noise was as big as most real gains. Several of my "wins" turned out to be the measuring tool's bias.
  • The board shows a team's best draw, not its speed. A leaderboard row is a maximum over noisy runs. 80 of the 100 entries above me on the kernel track came in the final 27 hours.
  • Public code moves the field overnight. Two Apache-2.0 releases each reshuffled the decode-layer board within hours. Watching for them and rebuilding fast was worth more than any single change of mine.
  • Agents scale the work, not the judgement. Claude Code ran research, builds and reviews in parallel and kept every run's record. The call on where to look was still mine, and I looked in the wrong place for the serving track.

Links

Available · London / UK · senior AI, AI FDE, contract

Building something with AI?

Voice agents, MCP servers, LLM pipelines, agentic workflows — pick a slot, drop a message, or send your email and I'll reply within a day.

or leave your email

Replies within ~24 hours · London, UK · on-site, hybrid or remote