got deepseek V4.1 flash running locally on a 16GB m1 mac mini
original FP4/FP8 weights, ssd streaming + custom mlx runner
108s ttft and about 23s/token (not to be confused with tok/s)
I deleted Linux, nvidia.ko, CUDA, C, and libc and booted Qwen3.6-35B-A3B (64K context) directly on an RTX 3090 from a single 528 KB pure assembly UEFI file that runs a live nvtop HUD and serves an OpenAI API + Web Chat on your LAN from Ring 0, beating llama.cpp CUDA by up to 46%.
In plain terms, I wrote an LLM inference engine in pure assembly: we push raw machine code straight into the GPU's memory, and the card runs our code directly.
0 GB of disk space, 0 OS, 0 C compiler, 0 nvcc, 0 ptxas, 0 libcuda. Just pure x86-64 NASM and assembled 128-bit Ampere SM86 SASS (19,778 slots verified with nvdisasm, 0 violations).
From cold UEFI boot, BOOTX64.EFI parses the VBIOS, boots NVIDIA's signed R610 GSP firmware over BAR0, maps GMMU v2 page tables, streams 20.5 GB of GGUF over BlockIO, and brings up a 1280x800 chat TUI + live GPU HUD.
The same 528 KB file also runs a pure NASM Intel e1000 TCP/IPv4 + DHCPv4 + HTTP SSE stack in Ring 0. Open the LAN IP in your browser and chat at 204 to 234 tok/s with zero Linux anywhere.
Same RTX 3090 vs llama.cpp CUDA (3-run avg, zero-libc ELF):
Qwen3.5-35B: 224.55 vs 153.51 tg64 (+46%), 5,610 vs 5,111 pp512 (+9.8%).
Qwen3.6-35B: 222.14 vs 154.43 tg64 (+44%), 5,754 vs 5,273 pp512 (+9.1%).
MIT repo, ISO builder, and 4090/5090/AMD porting guide below.
@0xSero theo would bonk me, but i can only use it in the boring mode with the views separated by project. I tell myself it's because i work on a big variety of things, but it could very much be skill issue
i always assumed the reasoning effort slider passed a reasoning token budget to the inference engine
traced it on local AI setup and it’s way simpler:
• T3 Code passes your slider choice
• Oh My Pi forwards it as reasoning_effort
• TensorFold renders Inkling 2 Mini’s chat template, which adds a line to the system prompt:
Low → "Thinking effort level: 0.20"
Medium → "Thinking effort level: 0.70"
High → "Thinking effort level: 0.90"
Xhigh → "Thinking effort level: 0.99"
if you think of it in terms of abstractions, Inkling defines how that effort level gets executed (by adding it to the prompt) and the other layers just pass the level down
ran a few quick tests to see how well it holds up. Across 48 runs, here are the median reasoning tokens per response. It correlates really well with the effort level! hard not to appreciate how simple that is
update on inkling-2-mini on old mac: now 4.6 tok/s (78% faster!) on the same 2020 16GB m1 mini
still zero requantization, original 19.5GB weights, 100% exact greedy tokens
big shoutout to @0xSero (inference optimization skill) & @moonsteroid (LM_HEAD_SCREEN is cool)
a 2020 16GB m1 mac mini has no business running inkling 2 mini at 2.58 tok/s
no requantization. original 19.5GB NVFP4/MXFP8 checkpoint stays on SSD, per-layer expert cache in RAM, custom metal kernel unpacks weights on the fly
5.6s ttft, 6.2 GiB peak mlx memory
update on inkling-2-mini on old mac: now 4.6 tok/s (78% faster!) on the same 2020 16GB m1 mini
still zero requantization, original 19.5GB weights, 100% exact greedy tokens
big shoutout to @0xSero (inference optimization skill) & @moonsteroid (LM_HEAD_SCREEN is cool)
@0xSero can confirm it's helping (despite already having performed some rounds of optimization myself!)
asked the agent whether the skill was helping and
code, metal kernel & setup:
https://t.co/li4z6xnCCr
built on @Prince_Canuma & @lllucas's Inkling port in mlx-vlm (@Neywalabs) + Apple MLX:
- 4-thread preadv SSD loader + per-layer LRU expert cache (larger on the looped middle layers)
- custom Metal GEMV unpacking NVFP4/MXFP8 on the fly
@badlogicgames for the longest time i just rocked a tmux session with no sidebar. fuzzy finder across other sessions for other agents if necessary. It's good for focusing, same argument of using just a single monitor + starcraft-inspired-controls
You can almost see the exact day in august someone opened the inference invoice and went oh no
i see the moment when token volume and inference spend finally get a divorce as a sign of product maturity
proud of the team for achieving this without murdering latency nor quality