Urgent.News

What's breaking now, across hundreds of outlets.

AI

LLM Inference in Pure Assembly: How alesha-pro/llm.asm Runs LLMs Without Python/C++ Runtime

A 7B-parameter model doesn't need a 2 GB Python environment to emit one token — it needs a matrix-vector product, a softmax, and somewhere to park the KV cache. alesha-pro/llm.asm implements exactly that in hand-written x86-64 NASM, and pulled 4,175 stars in under seven days. TL;DR: llm.asm is a from-scratch transformer inference engine in pure x86-64 assembly: no Python, no C++ runtime, no BLAS,…

The alesha-pro/llm.asm project demonstrates how a language model can run inference using pure x86-64 assembly, without relying on Python or C++ runtimes, libraries, or GPUs. This reference implementation highlights the core operations needed for inference, such as matrix-vector products, softmax, KV cache management, and residual connections.

By stripping away the overhead of a full software stack, the resulting binary is a tiny static executable that's memory-bandwidth bound and deterministically sized. While this approach sacrifices GPU acceleration and pre-fetch throughput, it offers benefits like near-instant cold starts, zero dependency surface, and full transparency into the inference pipeline.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

SNAP Benefits Update as AI Handles Benefits: What Recipients Should Know

Already, states including Michigan, Nevada and West Virginia have invested in tech that uses AI to analyze SNAP cases.

  • AI technology implemented in Michigan, Nevada, and West Virginia to reduce SNAP errors.
  • States face financial incentive to reduce payment errors under Trump's tax law.
  • Concerns about potential increase in verification requirements for SNAP recipients.

Claude Haiku 5.5 Costs a Tenth of Haiku 4.5. Read the 100K Catch Before You Switch

When a vendor cuts a price by 90 percent, my first instinct is to look for the asterisk. Anthropic 's Claude Haiku 5.5 has one, and it's printed right in the pricing table: the cheap rate stops at…

  • Claude Haiku 5.5 costs a tenth of Haiku 4.5 for 100K tokens
  • Haiku 5.5 features 1 million token context window vs 200K in 4.5
  • Pricing 75% lower than Haiku 4.5, varies with prompt length

More from Monday, 30 November 2026 →