<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/hedra-s-ai-written-kernels-double-openrouter-s-fastest-on-amd-wpqqezzff" -->

---
title: Hedra's AI-written kernels double OpenRouter's fastest...
description: Hedra says AI agents wrote custom GPU kernels that run DeepSeek-V4.1-Flash at a median of 1,252 tokens per second on AMD GPUs. In Hedra's Dec 1 comparison, the...
canonical: https://daily.dev/posts/hedra-s-ai-written-kernels-double-openrouter-s-fastest-on-amd-wpqqezzff
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Hedra's AI-written kernels double OpenRouter's fastest on AMD | daily.dev
og:description: Hedra says AI agents wrote custom GPU kernels that run DeepSeek-V4.1-Flash at a median of 1,252 tokens per second on AMD GPUs. In Hedra's Dec 1 comparison, the...
og:url: https://daily.dev/posts/hedra-s-ai-written-kernels-double-openrouter-s-fastest-on-amd-wpqqezzff
og:image: https://api.daily.dev/og/posts/wpQqezzFF.png
og:image:alt: Hedra's AI-written kernels double OpenRouter's fastest on AMD
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Hedra's AI-written kernels double OpenRouter's fastest on AMD

**[Trends](https://daily.dev/sources/trends)** · 2 min read · 1 upvotes · 0 comments

## Summary

Hedra says AI agents wrote custom GPU kernels that run DeepSeek-V4.1-Flash at a median of 1,252 tokens per second on AMD GPUs. In Hedra's Dec 1 comparison, the fastest of 53 public OpenRouter routes managed 612. The kernels, called Hedra Megakernels, fuse many small GPU steps into one program, which cuts launch overhead and memory fetches. With 16 answers generated in parallel, each stream still ran at 1,228 tokens per second, 98% of single-stream speed. The comparison is Hedra's own, so treat the 2x as a vendor number until others reproduce it.

## Content

Hedra says it just ran DeepSeek-V4.1-Flash at a median of 1,252 tokens per second on AMD GPUs. In its Dec 1 comparison, the fastest of 53 public OpenRouter routes managed 612. That's the claim, and the AMD crowd is treating it as a very good day.

## The pitch: the agents did the kernel work

@rohanpaul_ai leads with the labor angle: "Kernel engineers are some of the scarcest hires in AI, and @hedra_labs just had their AI do their job on AMD chips." @trikcode compresses it further: "so AI is now tuning code that runs AI." Hedra had agents optimize the model on AMD hardware, and the output is a set of custom GPU code it calls Hedra Megakernels.

## Why it's fast

The trick is fusion. Hedra Megakernels merge many small GPU steps into one program, so the chip spends less time launching tasks and fetching data from memory. Launch overhead and memory traffic are exactly where small-batch inference usually bleeds time.

## The numbers

- Median of 1,252 tokens/s on Hedra Ultrafast, about 2x the best public OpenRouter route.
- @trikcode cites 1,342 output tokens/s on a single request.
- With 16 answers generated in parallel, each stream still ran at 1,228 tokens/s, 98% of single-stream speed, per @testingcatalog.

That last figure is the one to look at. Fast single-stream numbers are common. Holding 98% of that speed under 16-way concurrency suggests the gains aren't just a benchmark-friendly single-request trick.

## What to keep in mind

The comparison is Hedra's own, from a single Dec 1 test against OpenRouter's public routes, so treat the 2x as a vendor number until others reproduce it. The two single-request figures floating around (1,252 median versus 1,342) also come from different framings, so don't mix them.

Still, the story is landing because of what it implies. If agent-written kernels can beat the best public serving on AMD, the scarce-kernel-engineer bottleneck looks a lot less scarce. Hedra is now inviting users to run their own DeepSeek models on Ultrafast, which is where the claim gets tested outside Hedra's own harness.

## Community take

How the wider developer community reacted, aggregated from 3 discussions and 17 comments across x (as of 2026-12-04).

**TL;DR:** Reactions are largely impressed by the raw throughput number, with AI-written kernels optimizing AI infrastructure framed as a notable feedback loop, though several replies push back on methodology and generalizability.

**Sentiment:** 45% positive · 35% mixed · 20% skeptical

**The case for**

- AI agents writing optimized GPU kernels that beat human-tuned routes is seen as an impressive feedback loop.
- Some see this as meaningful progress for AMD inference viability versus Nvidia.

**The pushback**

- Skeptics want apples-to-apples comparisons against Nvidia stacks rather than vendor-reported numbers.
- Some worry fused megakernels are tied to one model's specific shapes and may not generalize when architectures change.
- One reply flags that fused kernels can subtly alter numerics, suggesting output/eval diffing against a reference provider before trusting the speed claim.
- Another points out the median metric is less informative than the p90 tail latency.

**By community**

- x (mixed): A mix of hype about AI-optimized kernels and pointed methodological skepticism about vendor-reported benchmarks.

**Hottest debate:** Whether the vendor-reported speed comparison is a fair, reproducible apples-to-apples measure against Nvidia-based competitors.

**Open questions**

- How does this compare on an equivalent Nvidia stack (e.g., B300/GB300)?
- Do the fused kernels preserve output quality/numerics compared to reference implementations?
- How well do these megakernels generalize to other model architectures beyond DeepSeek-V4.1-Flash?

**Highlights**

> @rohanpaul_ai @hedra_labs cool result. the check i'd run before trusting any fused-kernel speed number: same 200 prompts at temp 0 through it and a reference provider, then diff the outputs and eval scores. fused kernels can quietly change numerics, and a fast model that drifts on hard prompts isn't the
> — [xsosotat on x](https://x.com/xsosotat/status/2128632085028172242)

> @rohanpaul_ai @hedra_labs 1,252 tokens/second on DeepSeek-V4.1-Flash is a big number, but fused megakernels tend to be tied to one model's shapes. How much of that speed carries over when the next model changes its architecture?
> — [mevil\_bhojani on x](https://x.com/mevil_bhojani/status/2128608473399062916)

> @testingcatalog the p90 tail bar is the number i'd check. median speed is easy to brag about
> — [rayvahey on x · 1 points](https://x.com/rayvahey/status/2128562085772878274)

> @rohanpaul_ai @hedra_labs If AI can write AMD kernels this fast, CUDA's moat just became a training data problem.
> — [ShinkaIoT on x](https://x.com/ShinkaIoT/status/2128623176938885366)

> @trikcode AI agents optimizing the infrastructure running AI agents. The feedback loop is getting real.
> — [neerajjj6785 on x](https://x.com/neerajjj6785/status/2128573026577035702)

**Source threads**

- [x](https://x.com/testingcatalog/status/2128561709220585955) · 1 points · 3 comments
- [x](https://x.com/rohanpaul_ai/status/2128605268082876830) · 0 points · 10 comments
- [x](https://x.com/trikcode/status/2128567561901990216) · 1 points · 4 comments

## Similar posts on daily.dev

- [Scaling Kimi K3 on AMD Instinct MI355X: Matching NVIDIA HGX B300 Throughput per GPU on AgentX](https://daily.dev/posts/scaling-kimi-k3-on-amd-instinct-mi355x-matching-nvidia-hgx-b300-throughput-per-gpu-on-agentx-ai2nucamw) · vLLM · 0 upvotes · 0 comments
- [Up to 580tps\! New Speed Record of Qwen3.5-397B-A17B on GPU for Agentic Workloads with TokenSpeed – PyTorch](https://daily.dev/posts/up-to-580tps-new-speed-record-of-qwen3-5-397b-a17b-on-gpu-for-agentic-workloads-with-tokenspeed-p-imoe4kosk) · PyTorch · 0 upvotes · 0 comments

---

Tags: [#amd](https://daily.dev/tags/amd), [#ai-inference](https://daily.dev/tags/ai-inference), [#openrouter](https://daily.dev/tags/openrouter)

[View this post on daily.dev](https://daily.dev/posts/hedra-s-ai-written-kernels-double-openrouter-s-fastest-on-amd-wpqqezzff)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Hedra's AI-written kernels double OpenRouter's fastest on AMD","url":"https://daily.dev/posts/hedra-s-ai-written-kernels-double-openrouter-s-fastest-on-amd-wpqqezzff","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/hedra-s-ai-written-kernels-double-openrouter-s-fastest-on-amd-wpqqezzff"},"datePublished":"2026-12-03T21:40:43.361Z","dateModified":"2026-12-04T17:11:38.574Z","description":"Hedra says AI agents wrote custom GPU kernels that run DeepSeek-V4.1-Flash at a median of 1,252 tokens per second on AMD GPUs. In Hedra's Dec 1 comparison, the...","image":"https://pbs.twimg.com/media/HYpTLX0bQAAYqIO.jpg","thumbnailUrl":"https://pbs.twimg.com/media/HYpTLX0bQAAYqIO.jpg","isAccessibleForFree":true,"articleSection":"Trends","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Trends","logo":"https://media.daily.dev/image/upload/s--ZfSp3asX--/f_auto,q_auto/v1780996004/logos/trends?_a=BAMAMiWQ0","url":"https://daily.dev/sources/trends"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/hedra-s-ai-written-kernels-double-openrouter-s-fastest-on-amd-wpqqezzff","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"amd,ai-inference,openrouter","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Trends","item":"https://daily.dev/sources/trends"},{"@type":"ListItem","position":3,"name":"Hedra's AI-written kernels double OpenRouter's fastest on AMD"}]}
```

