Qwen3-0.6B inference (12 KB), bare-metal bootable OS (22 KB), and from-scratch Mini-GPT trainer with live Braille TUI (32 KB) in 100% pure x86-64 NASM assembly. Zero C, zero libc, zero dependencies.
Merge branch 'main' into pr/sse2-baseline
Alexey Fateevd3ce63aac0da
diff --cc README.mdindex 5721c94,c366f21..696c861--- a/README.md+++ b/README.md@@@ -109,8 -111,8 +111,8 @@@ make all # Builds Phase 1 (asm-llm, t<details><summary><b>System Requirements, Repository Layout & Verification Summary</b></summary>-- **Requirements:** x86-64 CPU with **AVX2 + FMA + F16C** (Phases 1–2 also build for AVX + SSE4.1 only with `AVX1=1`, Sandy / Ivy Bridge: [details](01-qwen3-inference/README.md#avx1-build-for-sandy-bridge--ivy-bridge-avx11)), `nasm`, and GNU `binutils` (`ld`, `objcopy`). Phase 2 ISOs use `grub-mkrescue` (`grub-pc-bin`, `grub-efi-amd64-bin`, `mtools`, `xorriso`) and `qemu-system-x86_64` (KVM). Phase 4 requires AMD SVM + NPT (`nested=1`) and kernel headers; Phase 5 targets Linux `6.12` (`CONFIG_BPF_LSM=y`). Python (`numpy`, optional `torch`/`transformers`) is only used for offline weight export and reference harnesses.+- **Requirements:** x86-64 CPU with **AVX2 + FMA + F16C** (Phases 1–2 also build for AVX + SSE4.1 only with `AVX1=1`, Sandy / Ivy Bridge: [details](01-qwen3-inference/README.md#avx1-build-for-sandy-bridge--ivy-bridge-avx11); `make BUILD=build-sse2 SSE2=1 os` builds the bare-metal OS for any x86-64 CPU, SSE2 only, checked by `scripts/check_isa.py --profile sse2`), `nasm`, and GNU `binutils` (`ld`, `objcopy`). Phase 2 ISOs use `grub-mkrescue` (`grub-pc-bin`, `grub-efi-amd64-bin`, `mtools`, `xorriso`) and `qemu-system-x86_64` (KVM). Phase 4 requires AMD SVM + NPT (`nested=1`) and kernel headers; Phase 5 targets Linux `6.12` (`CONFIG_BPF_LSM=y`). Python (`numpy`, optional `torch`/`transformers`) is only used for offline weight export and reference harnesses.- - **Repository Map:** [`shared/`](shared/) (3,857-line shared NASM core reused across Phases 1–3), [`01-qwen3-inference/`](01-qwen3-inference/), [`02-baremetal-os/`](02-baremetal-os/), [`03-minigpt-train/`](03-minigpt-train/), [`04-ring1-kernel-surgeon/`](04-ring1-kernel-surgeon/), [`05-ebpf-jev/`](05-ebpf-jev/), [`scripts/`](scripts/), [`assets/`](assets/), [`Makefile`](Makefile).+ - **Repository Map:** [`shared/`](shared/) (3,857-line shared NASM core reused across Phases 1–3), [`01-qwen3-inference/`](01-qwen3-inference/), [`02-baremetal-os/`](02-baremetal-os/), [`03-minigpt-train/`](03-minigpt-train/), [`04-ring1-kernel-surgeon/`](04-ring1-kernel-surgeon/), [`05-ebpf-jev/`](05-ebpf-jev/), [`06-zero-app-os/`](06-zero-app-os/), [`scripts/`](scripts/), [`assets/`](assets/), [`Makefile`](Makefile).- **Verification Highlights:**- **Phase 1:** `FAST_Q8=1` matches PyTorch FP32 `Qwen3-0.6B` (`cosine = 0.9996517`, `64/64` exact greedy tokens; `FAST_Q8=0` hits `1.000000000` vs Python Q8_0), deterministic across `1T..40T`.- **Phase 2:** 100% token-exact & byte-identical to Phase 1 across `1..32` KVM vCPUs (`134.9 tok/s` at 16 vCPUs) and real Proxmox VE (`55.4 tok/s`, `0 GB` disk).