AIToday
Large Language ModelsOpen-Source AIAI Coding AssistantsAI WeeklyPublished: Nov 29, 2026, 22:00 JST

llm.asm boots Qwen3-0.6B in 74ms on 24,252 bytes

Send on LINE
llm.asm boots Qwen3-0.6B in 74ms on 24,252 bytes

3 Key Points

  1. What happened

    Alexey Fateev's llm.asm, 24,252 bytes of NASM x86-64 assembly, boots a Qwen3-0.6B chat prompt in 74 to 94 milliseconds and hits 78.89 tokens per second at four threads on an AMD EPYC 7642, versus llama.cpp's 51.08.

  2. Why it matters

    The speed comparison carries an asterisk Fateev flags — llm.asm runs only token-by-token decode while llama.cpp processes prompts in batches, so the figures capture pure generation speed, not an end-to-end inference path.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

Fateev's project stands out for its size: a 24,252-byte Multiboot binary, called llm.asm, that runs "without Linux, Windows, C, C++, Rust, libc, or a single runtime dependency," according to Tom's Hardware. The ELF binary is roughly 28,000 times smaller than the Qwen3-0.6B model it serves, a ratio that underscores how little code is needed to drive inference when the OS layer is stripped away.

The benchmark numbers come with an explicit caveat from Fateev. Because llama.cpp processes prompts in batches while llm.asm only runs token-by-token decode, the comparison isolates generation speed rather than the full inference path. A separate Linux-hosted ELF build of 14.7KB ran 18 to 36 percent faster than llama.cpp across one to forty threads, but independent benchmarks had not been published as of November 27.

The project is on GitHub under an MIT license, so others can inspect and reproduce the results. Until independent testing appears, the headline figures remain a single developer's measurements — striking, but not yet verified outside his setup.

FAQ
How fast does llm.asm boot and run compared with llama.cpp?
It boots a Qwen3-0.6B chat prompt in 74 to 94 milliseconds and reaches 78.89 tokens per second at four threads on an AMD EPYC 7642, versus llama.cpp's 51.08.
Is the speed comparison an end-to-end benchmark?
No. Fateev flags that llama.cpp processes prompts in batches while llm.asm only runs token-by-token decode, so the numbers capture pure generation speed, not a full inference path.
How accurate is llm.asm compared with a reference implementation?
Validated against a PyTorch FP32 reference, all 64 greedy tokens matched and cosine similarity on the final logits was 0.99965.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleTaiwan's Executive Yuan backs 3 Silicon Valley initiatives, yet IPO gap persists