{"id":136818,"date":"2026-11-29T08:51:09","date_gmt":"2026-11-28T23:51:09","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=136818"},"modified":"2026-11-29T08:51:09","modified_gmt":"2026-11-28T23:51:09","slug":"llm-asm","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/llm-asm\/","title":{"rendered":"\u8d77\u52d50.1\u79d2\u3067AI\u3068\u30c1\u30e3\u30c3\u30c8\u300124KB\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u88fdOS\u300cllm.asm\u300d\u304c\u8a95\u751f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2026\/11\/s_20261128-_151313.webp\" alt=\"\" width=\"1280\" height=\"800\" class=\"aligncenter size-full wp-image-136819\" \/><\/p>\n<p>\u751f\u6210AI\u304c\u4e16\u754c\u3092\u5927\u304d\u304f\u5909\u3048\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u306a\u304b\u3001\u3053\u306e\u6642\u4ee3\u306b\u3075\u3055\u308f\u3057\u3044OS\u304c\u8a95\u751f\u3057\u307e\u3057\u305f\u3002\u958b\u767a\u8005\u306ealesha-pro\u3055\u3093\u304c\u516c\u958b\u3057\u3066\u3044\u308b\u300cllm.asm\u300d\u3068\u3044\u3046\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u306a\u304b\u306b\u3042\u308b\u3001<a href=\"https:\/\/github.com\/alesha-pro\/llm.asm\/tree\/main\/02-baremetal-os\">02-baremetal-os<\/a>\u3068\u3044\u3046\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/p>\n<p>\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3059\u308b\u3068\u3059\u3050\u306b\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\uff08LLM\uff09\u3068\u30c1\u30e3\u30c3\u30c8\u3067\u304d\u308b\u5c02\u7528OS\u3067\u3001\u4e2d\u306b\u306fLinux\u3082Windows\u3082\u5165\u3063\u3066\u304a\u3089\u305a\u3001AI\u3068\u4f1a\u8a71\u3059\u308b\u3053\u3068\u4ee5\u5916\u306f\u4f55\u3082\u3067\u304d\u307e\u305b\u3093\u3002\u642d\u8f09\u3057\u3066\u3044\u308b\u30e2\u30c7\u30eb\u306fAlibaba\u306eQwen3-0.6B\u3067\u3001\u8d77\u52d5\u5f8c\u306b\u51fa\u308b <strong>asm-llm><\/strong> \u3068\u3044\u3046\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u6587\u5b57\u3092\u6253\u3061\u8fbc\u3080\u3068\u3001\u305d\u306e\u307e\u307eAI\u304c\u7b54\u3048\u3092\u8fd4\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u8005\u306f\u3001Linux\u3092\u4e38\u3054\u3068\u6d88\u3057\u3066Qwen3-0.6B\u309224KB\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u88fdOS\u306b\u713c\u304d\u8fbc\u3093\u3060\u3068\u3053\u308d\u3001Linux\u4e0a\u306ellama.cpp\u3088\u308a\u6700\u592754%\u901f\u304f\u306a\u3063\u305f\u3068\u4e3b\u5f35\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\">I deleted Linux completely, baked Qwen3-0.6B into a 24 KB pure x86-64 assembly OS, and it runs up to 54% faster than native Linux llama.cpp.<\/p>\n<p>The entire Multiboot OS binary (asm-llm-os.elf) is 24,252 bytes, written from scratch without Linux, Windows, C, Rust, or libc. It boots in 74 to 94 ms straight into 64-bit Long Mode, wakes every CPU core over APIC, maps the 614 MiB Q8_0 weights directly from physical RAM, and drops you into a live multi-turn KV-cache chat over VGA, PS\/2 keyboard, and serial.<\/p>\n<p>I ran head-to-head CPU benchmarks against llama.cpp (Q8_0, -ngl 0) on the same AMD EPYC 7642:<\/p>\n<p>- 1 thread hits 23.67 tok\/s vs 16.63 (+42%)<br \/>\n- 4 threads hit 78.89 tok\/s vs 51.08 (+54%)<br \/>\n- 8 threads hit 118.08 tok\/s vs 80.79 (+46%)<br \/>\n- 16 threads hit 134.94 tok\/s vs 103.03 (+31%, 136.6 peak)<\/p>\n<p>On a diskless 0 GB Proxmox VM (2014 12-core Intel Xeon E5-2670 v3, 2 GiB RAM), it boots straight to the prompt in under 5 seconds (95 ms kernel boot) and runs live out of RAM at 78 tok\/s decode and up to 111.5 tok\/s prefill, with a hybrid BIOS+UEFI ISO builder included too. Output stays bit-exact across thread counts and matches all 64 greedy tokens against PyTorch FP32 (0.99965 cosine).<\/p>\n<p>The 14.7 KB Linux ELF build (FAST_Q8=1 INT8xINT8 AVX2+F16C) also beats llama.cpp by 18% to 36% from 1 to 40 threads, and booting bare metal with 2 MiB huge pages squeezes out another 10% on top.<\/p>\n<p>Repo, ISO builder, and Proxmox setup guide are in the reply below.<\/p>\n<p>&mdash; Alexey Fateev (@superalesha) <a href=\"https:\/\/x.com\/superalesha\/status\/2125682626056839259?ref_src=twsrc%5Etfw\">November 25, 2026<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.x.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<h2>C\u3082Linux\u3082\u4f7f\u308f\u306a\u3044\u3001\u7d14\u7c8b\u306a\u30a2\u30bb\u30f3\u30d6\u30ea<\/h2>\n<p>\u3053\u306eOS\u306e\u4e00\u756a\u306e\u7279\u5fb4\u306f\u3001\u3059\u3079\u3066\u304cx86-64\u306eNASM\u30a2\u30bb\u30f3\u30d6\u30ea\u3060\u3051\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002C\u3082Rust\u3082\u4f7f\u308f\u305a\u3001libc\u306e\u3088\u3046\u306a\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3082\u4f9d\u5b58\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u6307\u6570\u95a2\u6570\u3084\u4e09\u89d2\u95a2\u6570\u3001\u884c\u5217\u6f14\u7b97\u3001\u30c8\u30fc\u30af\u30ca\u30a4\u30b6\u30fc\u3068\u3044\u3063\u305fLLM\u306e\u8a08\u7b97\u306b\u5fc5\u8981\u306a\u90e8\u54c1\u307e\u3067\u3001\u30a2\u30bb\u30f3\u30d6\u30ea\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u7d50\u679c\u3001\u30ab\u30fc\u30cd\u30eb\u672c\u4f53\u306e\u30b5\u30a4\u30ba\u306f\u308f\u305a\u304b24,252\u30d0\u30a4\u30c8(\u7d0424KB)\u306b\u53ce\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u30e2\u30c7\u30eb\u306e\u91cd\u307f\u30c7\u30fc\u30bf\u306f\u5225\u306b\u7d04614MiB\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u308c\u3092\u52d5\u304b\u3059\u4ed5\u7d44\u307f\u306f\u753b\u50cf1\u679a\u3088\u308a\u5c0f\u3055\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u5bfe\u5fdc\u3059\u308bCPU\u306f\u3001AVX2\u30fbFMA\u30fbF16C\u3068\u3044\u3046\u547d\u4ee4\u30bb\u30c3\u30c8\u3092\u5099\u3048\u305fx86-64\u30d7\u30ed\u30bb\u30c3\u30b5(Intel Haswell\u3084AMD Excavator\u4ee5\u964d)\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306bllm.asm\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u4ed6\u306b\u3082\u3001Linux\u4e0a\u3067\u52d5\u304f14KB\u306e\u63a8\u8ad6\u30a8\u30f3\u30b8\u30f3\u3084\u3001\u30a2\u30bb\u30f3\u30d6\u30ea\u3060\u3051\u3067\u5c0f\u3055\u306aGPT\u3092\u5b66\u7fd2\u3055\u305b\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306a\u3069\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u7d39\u4ecb\u3059\u308bOS\u306f\u3001\u305d\u306e\u63a8\u8ad6\u30a8\u30f3\u30b8\u30f3\u3068\u540c\u3058\u8a08\u7b97\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3057\u3001OS\u90e8\u5206\u306e4,167\u884c\u3092\u8db3\u3057\u3066\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u8d77\u52d5\u306f0.1\u79d2\u4ee5\u4e0b\u3001\u751f\u6210\u3082\u9ad8\u901f<\/h2>\n<p>\u4f5c\u8005\u306e\u8a08\u6e2c\u3067\u306f\u3001\u96fb\u6e90\u3092\u5165\u308c\u3066\u304b\u3089\u30c1\u30e3\u30c3\u30c8\u753b\u9762\u304c\u51fa\u308b\u307e\u3067\u306e\u6642\u9593\u306f74\u301c94\u30df\u30ea\u79d2\u3067\u3059\u3002\u666e\u901a\u306eOS\u306e\u3088\u3046\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u305f\u304f\u3055\u3093\u7acb\u3061\u4e0a\u3052\u308b\u5fc5\u8981\u304c\u306a\u3044\u306e\u3067\u3001\u307b\u307c\u4e00\u77ac\u3067AI\u3068\u8a71\u305b\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2026\/11\/baremetal-vga.webp\" alt=\"\" width=\"720\" height=\"400\" class=\"aligncenter size-full wp-image-136820\" \/><\/p>\n<p>\u751f\u6210\u901f\u5ea6\u3082\u9ad8\u901f\u3067\u3001AMD EPYC 7642\u4e0a\u306eQEMU\/KVM\u3067\u4eee\u60f3CPU\u309216\u500b\u5272\u308a\u5f53\u3066\u305f\u3068\u3053\u308d\u3001\u6bce\u79d2\u7d04135\u30c8\u30fc\u30af\u30f3\u3092\u8a18\u9332\u3057\u305f\u305d\u3046\u3067\u3059(1\u30b3\u30a2\u3060\u3051\u3067\u3082\u6bce\u79d2\u7d0424\u30c8\u30fc\u30af\u30f3\u51fa\u3066\u3044\u307e\u3059\u3002)\u3002<\/p>\n<p>\u4f5c\u8005\u306fCPU\u63a8\u8ad6\u306e\u5b9a\u756a\u3067\u3042\u308bllama.cpp\u3068\u3082\u540c\u3058\u6761\u4ef6\u3067\u6bd4\u8f03\u3057\u3066\u3044\u307e\u3059\u3002\u6295\u7a3f\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u6570\u5b57\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3001\u3082\u3063\u3068\u3082\u5dee\u304c\u958b\u3044\u305f4\u30b9\u30ec\u30c3\u30c9\u3067\u306f54%\u901f\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\n<p>\u30b9\u30ec\u30c3\u30c9\u6570<\/p>\n<\/th>\n<th>\n<p>llm.asm OS\uff08tok\/s\uff09<\/p>\n<\/th>\n<th>\n<p>llama.cpp\uff08tok\/s\uff09<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>23.67<\/p>\n<\/td>\n<td>\n<p>16.63<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>78.89<\/p>\n<\/td>\n<td>\n<p>51.08<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>118.08<\/p>\n<\/td>\n<td>\n<p>80.79<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>16<\/p>\n<\/td>\n<td>\n<p>134.94<\/p>\n<\/td>\n<td>\n<p>103.03<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Linux\u4e0a\u3067\u52d5\u304f14.7KB\u7248\u306e\u63a8\u8ad6\u30a8\u30f3\u30b8\u30f3\u306e\u6642\u70b9\u3067\u3001INT8\u540c\u58eb\u306e\u7a4d\u3092AVX2\u3067\u8a08\u7b97\u3059\u308b\u5de5\u592b\u306a\u3069\u306b\u3088\u308allama.cpp\u3088\u308a18\u301c36%\u901f\u304f\u3001OS\u7248\u306f\u30e1\u30e2\u30ea\u30922MiB\u306e\u30d2\u30e5\u30fc\u30b8\u30da\u30fc\u30b8\u3067\u76f4\u63a5\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u3001\u3055\u3089\u306b10%\u9ad8\u901f\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001Linux\u7248\u306e\u63a8\u8ad6\u7d50\u679c\u3068\u306f\u30c8\u30fc\u30af\u30f3\u5358\u4f4d\u30fb\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u5b8c\u5168\u306b\u4e00\u81f4\u3059\u308b\u3053\u3068\u3082\u691c\u8a3c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u52d5\u304b\u3057\u65b9<\/h2>\n<p>\u30d3\u30eb\u30c9\u306b\u306fNASM\u3068binutils\u3001\u52d5\u4f5c\u78ba\u8a8d\u306b\u306fQEME\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30e2\u30c7\u30eb\u306f\u3001Hugging Face\u304b\u3089\u53d6\u5f97\u3057\u305fQwen3-0.6B\u3092\u4ed8\u5c5e\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u72ec\u81ea\u306e .asmbin \u5f62\u5f0f\u306b\u5909\u63db\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u5909\u63db\u624b\u9806\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e01-qwen3-inference\u306eREADME\u306b\u3042\u308a\u307e\u3059\u3002<br \/>\n\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u3067\u6b21\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308c\u3070\u3001QEMU\u4e0a\u3067OS\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nmake os FAST_Q8=1\r\nmake os-run MODEL=models\/qwen3-0.6b-q8_0.asmbin SMP=16\r\n<\/pre>\n<p>Proxmox\u306a\u3069\u306e\u4eee\u60f3\u5316\u57fa\u76e4\u3067\u8a66\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>make os-iso<\/code>\u3067\u30d6\u30fc\u30c8\u53ef\u80fd\u306aISO\u3092\u4f5c\u308c\u307e\u3059\u3002Proxmox\u3067\u306f\u3001CPU\u3092host\u306b\u3057\u3066AVX2\u3092\u898b\u3048\u308b\u3088\u3046\u306b\u3057\u3001\u30e1\u30e2\u30ea\u306e\u30d0\u30eb\u30fc\u30cb\u30f3\u30b0\u3092\u7121\u52b9\u306b\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u666e\u6bb5\u4f55\u6c17\u306a\u304f\u4f7f\u3063\u3066\u3044\u308bLLM\u3067\u3059\u304c\u3001OS\u3082\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u53d6\u308a\u6255\u3046\u3068\u3001\u52d5\u304b\u3059\u4ed5\u7d44\u307f\u306f24KB\u307e\u3067\u5c0f\u3055\u304f\u306a\u308b\u3068\u3044\u3046\u306e\u306f\u9a5a\u304d\u3067\u3059\u3002\u3057\u304b\u3082\u305d\u306e\u8efd\u3055\u304c\u3001\u901f\u5ea6\u3068\u3044\u3046\u5b9f\u7528\u9762\u306b\u8ca2\u732e\u3057\u3066\u3044\u307e\u3059\u3002AI\u3060\u3051\u3067\u306a\u304f\u3001\u30a2\u30bb\u30f3\u30d6\u30ea\u3084OS\u306e\u4f5c\u308a\u306b\u8208\u5473\u304c\u3042\u308b\u4eba\u306b\u306f\u3001\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u3060\u3051\u3067\u3082\u304b\u306a\u308a\u52c9\u5f37\u306b\u306a\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u30e9\u30a4\u30bb\u30f3\u30b9\u306fMIT\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u751f\u6210AI\u304c\u4e16\u754c\u3092\u5927\u304d\u304f\u5909\u3048\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u306a\u304b\u3001\u3053\u306e\u6642\u4ee3\u306b\u3075\u3055\u308f\u3057\u3044OS\u304c\u8a95\u751f\u3057\u307e\u3057\u305f\u3002\u958b\u767a\u8005\u306ealesha-pro\u3055\u3093\u304c\u516c\u958b\u3057\u3066\u3044\u308b\u300cllm.asm\u300d\u3068\u3044\u3046\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u306a\u304b\u306b\u3042\u308b\u300102-baremetal-os\u3068\u3044\u3046\u30d7\u30ed [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":136819,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[4817],"class_list":["post-136818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-llm"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/136818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=136818"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/136818\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/136819"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=136818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=136818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=136818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}