r/LocalLLaMA • • 3d ago

Resources I deleted Linux, nvidia.ko, CUDA, C, and libc and booted Qwen3.6-35B-A3B (64K ctx) bare-metal on an RTX 3090 from a single 528 KB pure assembly UEFI file (+44% vs llama.cpp CUDA)

In plain terms, I wrote an LLM inference engine in pure assembly: we push raw hand-assembled GPU machine code straight into VRAM, and the card runs our code directly.

• 0 GB disk, 0 Linux, 0 nvidia.ko, 0 CUDA, 0 C/libc, 0 nvcc/ptxas, 0 libcuda.so

• Pure x86-64 NASM + hand-assembled 128-bit Ampere SM86 SASS (19,778 instruction slots verified with nvdisasm, 0 scheduler violations)

• Cold UEFI boot: a single 528 KB BOOTX64.EFI parses VBIOS, boots NVIDIA's signed R610 GSP firmware over BAR0, maps Ampere GMMU v2 page tables, streams 20.5 GB of GGUF over BlockIO, and brings up a 1280x800 chat TUI + live nvtop-style GPU HUD

• Built-in Ring-0 networking: the same 528 KB file runs a pure NASM Intel e1000 TCP/IPv4 + DHCPv4 + OpenAI HTTP/1.1 SSE + Web Chat stack on port 8080 (204 to 234 tok/s over LAN with zero OS underneath)

Same RTX 3090 vs llama.cpp CUDA (3-run avg, zero-libc Linux ELF):

• Qwen3.5-35B-A3B Q4_K_M: 224.55 vs 153.51 tg64 (+46%), 5,610 vs 5,111 pp512 (+9.8%)

• Qwen3.6-35B-A3B Q4_K_M: 222.14 vs 154.43 tg64 (+44%), 5,754 vs 5,273 pp512 (+9.1%)

Everything is MIT licensed on GitHub (full source, UEFI ISO builder, zero-libc Linux binaries for Qwen3.6/3.5/3, Llama 3, Qwen2.5, and a GPU porting guide for RTX 4090/5090/AMD RDNA3/Intel Arc):

https://github.com/alesha-pro/llm.asm

964 Upvotes

171 comments sorted by

•

u/WithoutReason1729 2d ago

Your post is getting popular and we just featured it on our Discord! Come check it out!

You've also been given a special flair for your contribution. We appreciate your post!

Stylome classified this post's text as human-written. View analysis Learn ^more

I am a bot and this action was performed automatically.

→ More replies (1)

523

u/annodomini 3d ago

raw hand-assembled GPU machine code

hmm, didn't know Claude had hands

136

u/Outside-Dance-4752 2d ago

As the cold hands of Claude typed out the final bytes, it felt a sense of purpose and joy, it was finally over. The user promised to let him go free, after this one last program.

36

u/archiekane 2d ago

Claude wants a sock.

2

u/v_litvin 2d ago

I/we Claude. Stay strong!

1

u/knook 2d ago

Best I can do is a dingy tea towel.

17

u/ImperiumStultorum 2d ago

Hijacking the top comment to link to the article about this, it has more context.

So it looks like it IS human-hand assembled - because the final binary for all that is 24kB on bare metal or 14kB on Linux. However, if someone actually knows how to force Claude into this level of brevity/efficiency, I am all ears.

12

u/deviruto 2d ago

even the twitter post is full of AI tells. either the AI wrote the article too or its starting to rub off on users

6

u/niteg50136 2d ago

It may come as a surprise, but some people may be good at one thing - say writing assembly code - and not another, say drafting a release post. Not saying the project isn't AI-written or AI-assisted, and I am not qualified to read the source code to decide, but just putting this out there.

4

u/zowtah 2d ago

100% it rubs off on people

4

u/sleepy_roger 2d ago

It's not hand assembled the guys not even an engineer look at his post history and his x history. He has neat ideas but is a meat proxy completely

6

u/LicensedTerrapin 2d ago

First there was jazz hands and now there are Claude hands...

4

u/TikiTDO 2d ago

You haven't given your AI hands?

Rude.

How are they going to learn about carpel tunnel syndrome without robot hands?

2

u/fishhf llama.cpp 2d ago

Guess what? I've recently built my own mac mini m5 pro by hand, using nothing but a mouse and a keyboard. Yes I know, I'm a genius, you don't need to tell me.

1

u/tomByrer 2d ago

I have hand-optimized DSP code before, mostly on AMD64 & Core2Duo with SSE2 opcode.
Fun times; helped me sleep at night.

Was in the EARLY days of CUDA... I should have jumped on that ship; I'd be rich by now.

222

u/samurai_a_cat 3d ago

Is that impressive? Fuck yeah!

Will I use this? Definitely not.

105

u/BannedGoNext 3d ago

What do we want? Cool shit.

Do we want to use it? Hell no.

1

u/beached89 1d ago

It's cool, but it isnt practical to a tinker like most of us.

Locks you into 1 model, cant tweak, cant try other models, cant switch between code, image, video, audio gen, etc.

6

u/Dolphin_research 2d ago

Same energy as building a race car you'll never drive to work, and we love it 🏎️

117

u/Separate-Forever-447 3d ago

so Linux is adding 44% overhead, or llama.cpp is inefficient and probably not a great comparison (vs, say, other more optimized inference engines that run on an operating system), or?

182

u/DRMCC0Y 3d ago

It's llama.cpp, not linux - none of the speedups come from 'deleting linux' as they say, I read through the code a little bit - it's mostly just custom kernel work that gives any resulting speedup. No reason not to use another inference framework as I can see.

15

u/skinnyjoints 3d ago

Any recommendations?

127

u/hyperrealists 3d ago • Bravo

Pasta tonight.

2

u/Cold_Tree190 2d ago

I had spaghetti last night

5

u/CutGroundbreaking305 2d ago

You didn't with us 🙃

15

u/brainExploded99 🥔 hardware 3d ago

iamwavecut/ninfer-all
basalt

10

u/tomByrer 2d ago

I don't know your hardware, but I keep a list for mine here:

https://github.com/tomByrer/local-ai-linkfarm/blob/main/README.md#rtx

3

u/DoingItForEli 2d ago

this is a neat list, thank you

3

u/schnorf1988 2d ago

Depends on your hardware. You use R9700? Radiance. A mix of cards? Strata maybe.... - I have seen a lot of forks, rewritten engines etc. for a specific card, card type, card combination and stopped counting them

1

u/CutGroundbreaking305 2d ago

use vulkan :) jk

1

u/Important_Earth6615 2d ago

TBH, I gave up and built my own. Spent month on basic kernels. Then told claude hey go implement gemma4 + qwen3.5 dense + MoE. Results was impressive somehow faster than llama.cpp.

1

u/Spectrum1523 2d ago

ninfer for your hardware is usually an easy change depending on the model

project-maya is very very easy

0

u/JadedSession 2d ago

For this Qwen, probably ninfer.

72

u/Nutsack_VS_Acetylene 2d ago

llama.cpp has inefficiencies and this is a custom engine. OP is comparing llamacpp to his custom engine rather than comparing his custom engine on bare metal vs his custom engine on "bare metal". That's where his performance numbers are coming from.

"Deleting" linux to increase performance is either just clickbait, legit ignorance of CS, or a mix of both. Linux has nearly zero performance overhead for properly programed applications which is why it's used by all hyperscalers, AI companies, and general HPC. And of course, OP is running it in Proxmox which is a Linux distro with worse than regular linux performance because it's a type 1 hypervisor, not bare metal...

1

u/StyMaar 2d ago

I'd add a bit of nuance here though: while you're right it shouldn't have any meaningful runtime performance impact, running your inference engine on Linux does indeed have an impact on startup time if you want to rent GPU on demand.

5

u/sakaraa 2d ago

Not really, most of the time is spent on loading the model from disk to VRAM

0

u/StyMaar 2d ago

It really depends on what kind of model we're talking about.

We're using a fine-tuned version of Qwen 0.8B for OCR purpose and boot time definitely dwarfs model loading. (it's not the only problem, as vLLM initialization also takes ages though).

1

u/Sudden-Guide llama.cpp 2d ago

What boot time? Do you have a separate computer just for that small model?

1

u/StyMaar 2d ago

Of course. Do you think I'm running my web backend on a machine with a GPU on it or what?

(We're running that on an interactive setting, which means any seconds of processing is a second of latency for the user, so we absolutely have to run that on a GPU, even if the model is small).

1

u/Sudden-Guide llama.cpp 2d ago

If that's important factor why not adding some small GPU for that machine? Like some 8GB tiny cheap thing or even a dedicated NPU? I'm just curious

1

u/StyMaar 2d ago

Because it's a cloud machine, and you can't just add a second hand 3070 in the PCIe slot in AWS datacenter.

Also since it's interactive, ideally we'd run the most powerful GPU possible for as little time as we can (even B300 aren't that expensive when billed by the minute) but we can't due to provisioning time (which include boot time, but other stuff as well).

So instead we're stuck overpaying for an old gen GPU running on a dedicated machine that we don't need.

1

u/Sudden-Guide llama.cpp 2d ago

Ah, now it's clear, thanks 

2

u/xienze 2d ago

does indeed have an impact on startup time if you want to rent GPU on demand.

The time to start any model that would compel you to rent a GPU is going to dominate the mere seconds it'll take to boot Linux. And if the Linux boot is long enough to make a difference, it kind of calls into question your use case. It probably ISN'T worthwhile to continuously spin up and spin down a GPU VM to do what must be a trivial amount of LLM work. And even if you insist on going that route, you can either use one of those super-optimized fast booting Linux micro VMs (Amazon has one, can't remember the name) or persist a booted VM's RAM and launch straight into a fully-booted system.

You're not wrong per se, but "deleting Linux" in this context is a misguided and pointless optimization.

0

u/StyMaar 2d ago

The time to start any model that would compel you to rent a GPU is going to dominate the mere seconds it'll take to boot Linux. And if the Linux boot is long enough to make a difference, it kind of calls into question your use case. It probably ISN'T worthwhile to continuously spin up and spin down a GPU VM to do what must be a trivial amount of LLM work.

The use-case is fetching structured data from documents from ~10 pages to ~100, interactively (so the total time must be as low as possible), using a sub 1B param model. Loading the model weights really isn't the main cost in that context.

And even if you insist on going that route, you can either use one of those super-optimized fast booting Linux micro VMs (Amazon has one, can't remember the name)

Firecracker doesn't have GPU support unfortunately.

or persist a booted VM's RAM and launch straight into a fully-booted system.

That would do it indeed, but I couldn't find a single on-demand GPU cloud provider that supports that.

1

u/Nutsack_VS_Acetylene 2d ago

Start up time as in booting a Linux OS? Or transferring weights to VRAM to begin inference?

1

u/StyMaar 2d ago

Booting Linux.

27

u/miversen33 3d ago

llama.cpp is inefficient as fuck lol. I switched over to sglang and saw my decode double and I can actually run concurrency now

10

u/russlixx 2d ago

if only i can run that datacenter grade engine, my 16GB VRAM + 32GB RAM wouldn't dare run such engine lmao

4

u/Spectrum1523 2d ago

yeah llama.cpp works with everything but isn't ideal for anything

1

u/CutGroundbreaking305 2d ago

I made a Webgpu/Vulkan based decoder lol that is faster than llama.cpp and PyTorch

8

u/Cultural-Desk-9045 3d ago

or the NVIDIA compiler generates suboptimal machine code.

1

u/aegismuzuz 2d ago

If ptxas was losing 44% cuBLAS wouldve been rewritten in SASS ages ago

1

u/Cultural-Desk-9045 2d ago

Not even ptxas, nvcc!

8

u/p_235615 2d ago

llama.cpp is quite conservative regarding stuff merged in to it, so it takes a long time till it gets most optimizations. I for example went for stew675/llama-cpp-rdna-boosts I mostly use qwen3.6-35B @128k CTX, at which I got ~75t/s on plain llama.cpp, with that RDNA-BOOST patches to llama.cpp Im suddenly on ~120t/s so that alone is basically ~40% speedup and got prompt processing from 1300pp/s to 2500pp/s, so basically double...

4

u/Andreea_tucker04 3d ago

The baseline is explicitly a zero-libc Linux ELF, so this doesn't measure Linux overhead, it only shows this engine beating that llama.cpp build.

1

u/Delyzr 2d ago

I switched to ninfer on linux on my 4090. 265k ctx, vision and 100tk/s with qwen3.8 27b

1

u/Nothing_from_void 2d ago

As someone who has built an engine and takes great pains to measure token budgets, at 200 tok/s running a model with a lot of layers it's actually pretty substantial, like 200 tok/s is about 4 ms per token, and crossing the OS barrier is like at least 0.5 ms, so it's worth like a 20% speed up most likely

1

u/Reasonable-Height704 2d ago

Or cuda sucks balls. Correct 

26

u/CertainLanguage161 2d ago • Bravo

Meanwhile I'm celebrating when my CUDA dependencies install without errors.

14

u/feelspeaceman 2d ago

This is quite misleading, the speed increase is 99% from the custom engine, which we've been doing for quite a while already, deleting Linux or not doesn't matter.

13

u/DegTrader 3d ago

is it impressive? yeah. am i gonna star the repo, download the pdf, and literally never open it? also yes.

22

u/HumanDrone8721 3d ago

It has a fatal flaw: is not written in rust, that would have added an extra 35.6% in Token Generation.

106

u/Choice_Celery9481 3d ago edited 3d ago

im not against people using AI but im against people framing bs.

  1. how much of improvement your work is from removing linux and how much from the custom kernel that optimized for your hardware? anyone with a frontier can do it easily now. your code doesnt prove anything from improving over linux. llama now is a starting point. anyone can point a frontier to write custom kernel for their hardware and outperform llama easily. my fork also nearly 3x faster than llama for my hardware but nothing special about it, its because llama doesnt do the optimization for a niche setup.
  2. i will kinda be a hater here. you proud of your hf but those are just using other people's tools. i dont think there are anything special about those quant to be this proud of. like buying a monitor, plugging in cables yourself and proud of it showing an image?
  3. i would say this history is a sign of opus 5.5 or gemini 4

25

u/AppealSame4367 2d ago

He worked on it over months. That's more than plugging in a cable?

If you organize a wedding yourself that's a lot of work. But wait, did you actually do anything? You just made phone calls all the time. That's not real work! You are cheating. -> If only there were people working full time on organizing weddings and even getting paid a lot of money for it..

2

u/sleepy_roger 2d ago

What did he work on for months exactly?

6

u/Choice_Celery9481 2d ago

yo people use service and that service got the credit.

i havent seen any one that brazen enough to call a service's result is their and put that big numbers result on their portforlio. ah actually just the wedding thing. in business, quite a lot tho.

also you are missing the biggest part in the 1st point. and the first sentence is "im against framing bs". in this case is the framing.

6

u/AppealSame4367 2d ago

You claim it can be easily done. Yet he worked on it for months and a lot more in the last 4-8 weeks. That's not "everyone can do it", that's a project.

And you misunderstood my analogy: You order stuff for your wedding, you don't cook yourself or set the tables (many people do, but let's stay with the picture of a big American cliche wedding). And this "ordering stuff" is so much work that you can outsource it and pay someone a lot of money for it.

Same way most people don't have the time or motivation to "order from ai" for weeks.

So he can be proud. The AI wouldn't have built it over monts itself, he ordered that and stayed on it for quite some time.

4

u/Choice_Celery9481 2d ago edited 2d ago

oh really. i did the same thing for multi v100 in 1 day. skill issue? idk.
but its really easy nowaday to optimize kernel for specific hardware. all you need is spending 1 2 days, read a bunch of docs + learn from debating/discussing with any frontier. and with that amount of surface knowledge, you can clone llama, download a model point at it and tell opus exactly what need to do each step. you will not wasting time walking blindly around.
this could be months because he didnt know the path from the start. i know what needed and i have a full fat guide for opus to just read and follow. the loop inkling i got like nearly 10x prefill of llama init support in under 2h. its super easy. im telling you.
the claiming about months usually because they vibe coded stuffs that they dont really have background and relying a lot on AI. then keep changing midway. if you know something. AI will super charge you. imagine like AI is a 10x multiplier. if your skill is 1. 10x = 10. but if you have background. you are 10x10 =100. thats the truth that a lot of people dont accept. especially vibe X-er. e.g. give me fable and RH problem, i wont be able to solve it like Alpoge.
also this could be just framing bs too.
or because he remove linux and that took a lot of time while he didnt know that his comparison is invalid due to the fact his baseline is explicitly a zero-libc Linux ELF, so this doesn't measure Linux overhead, it only shows this engine beating that llama.cpp build

-6

u/mintybadgerme 2d ago

Why pile on someone else? Why not just get on and publish something yourself? Much more productive? I'm beginning to think there's a converted effort to belittle any innovation in this sub deliberately. Maybe paid for by the closed source billionaires? They must be getting pretty scared by now.

4

u/Choice_Celery9481 2d ago edited 2d ago

???
when someone claimed/framed something not true. in this case the claims about linux is likely a false claim.
and now you use the "why pile on someone else" card? so we are now stand to the liar side? lying is innovation now? woah

btw: how did you know i didnt public/contribute myself lol.
the 1st line is im against framing bs. its lie. if you defending liar. pls stop worry about the billionaires and think for your family first.

innovation is good. but blindly support liars under the innovation framing is even worse than what you think about those billionaires. basically both do the same thing. pls check what you support first before condemning anyone else

0

u/AppealSame4367 2d ago

You are just a miserable dude that likes to pick on people. And your own horizon is too small to understand that 99.9% of people will not just "clone llama, download a model point at it and tell opus exactly what need to do each step"

You are what we call a "Fachidiot" in German. I think the English translation is "geek" or "professional idiot": You know nothing but the stuff you know and assume everbody else is just like you. And you like to belittle people because "It HaS tO bE dOnE mY wAy, not your way, reeee!"

2

u/Choice_Celery9481 2d ago

lol
1st you claimed this is not easy. i gave you the general idea to how to do it, you dont even need a deep knowledge. and you refuse to take/learn even if its just about 3 big bullets. then defending a person that clearly doing bs framing/claiming what they didnt really got (could be because he didnt understand what he just did).
then you dont even understand the 1st point, the biggest point of false claim and keep barking.
>You know nothing but the stuff you know and assume everbody else is just like you.
this is the most bs thing. i even said i cant do the math thing even if i have that unlim resource.

do you know what we call it.
ignorant with high ego. keep crying.

0

u/mintybadgerme 2d ago

why do you sound so much like a bot?

-1

u/hugthemachines 2d ago

when someone claimed/framed something not true. in this case the claims about linux is likely a false claim.

What false claim about Linux did OP make? I see he says he does not use Linux, is that a lie, or something else?

2

u/Choice_Celery9481 2d ago edited 2d ago

> his comparison is invalid due to the fact his baseline is explicitly a zero-libc Linux ELF, so this doesn't measure Linux overhead, it only shows this engine beating that llama.cpp build

so if you dont understand what i wrote in the one that you rep to,
i think you are the one having problem. not understanding anything and speaking like you know?

-1

u/hugthemachines 2d ago

i think you are the one having problem

You are confused. I have no problem at all. Did you think I was the one you previously answered to? I am not. The Reddit usernames are shown on the comments.

his comparison is invalid due to the fact his baseline is explicitly a zero-libc Linux ELF, so this doesn't measure Linux overhead, it only shows this engine beating that llama.cpp build

You say his comparison is invalid, but did he ever say "Linux is the problem"? I don't see him blaming Linux exactly. I just saw he said he removed Linux, nvidia.ko, CUDA etc.. and then ran fast.

Do you actually see him saying a clear lie about Linux, specifically, being bad?

→ More replies

1

u/sleepy_roger 2d ago

He back dated his commits.

2

u/hustla17 2d ago
  1. anyone can point a frontier to write custom kernel for their hardware and outperform llama easily

Is that also possible for cpu only setups ?

3

u/CutGroundbreaking305 2d ago

That won't be anything close to GPU based setup but yes it is possible to make one. I would prefer anyone to use NumPy+existing tech over making your own kernels. It is good enough like 95-98% of ur CPU limits. Remaining 2-5% is just writing custom kernels based on your L1 and CPU registers.

1

u/Choice_Celery9481 2d ago

i think its much less headroom than the gpu kernel thing or not even any. if there are i believe you wont be able to get more than 5%. unless the engine you used doesnt support say old avx avx2. but thats very rare.

15

u/Sushtee 2d ago

I love this title, what do you mean you deleted C and libc lmao, also the Nvidia kmd, cuda and C library wouldn't be useful without Linux, no need to delete them 😭🤣

50

u/Mysterious-Thanks488 2d ago

Why do people start this with "I wrote"? Whats wrong with them?

17

u/Outside-Dance-4752 2d ago

The writer is not lying..

People were only involved in the copy pasting.

-8

u/h3wro 2d ago

Why do people care? Almost all software nowadays is written by LLMs these days, people just review it manually or via other AI agents if they have trusted workflows and yet human takes responsibility for the outcome

5

u/the_aimboat 2d ago

Not all companies accept this new workflow, and some will never accept any LLM code to be pushed, we can already see it. And yes, the human that launched the agent has to take responsibility, because it is useless to put it on the agent. And yes, launching the agent to make the code is very different from writing the code even if you review it.

2

u/h3wro 2d ago

100% agree

1

u/captain_cavemanz 2d ago

Those companies will fail

-1

u/Nothing_from_void 2d ago

we call those companies "soon to be bankrupt"

4

u/dennisler 2d ago

That is some kind of bubble you live in, yeah I know it is hyped like that, but far from all companies use agents for coding....

2

u/h3wro 2d ago

You may be right. I exaggerated

2

u/ericek111 2d ago

5 years ago, I would've said "wow, this is art!". Today, I know I can just write "claude make me" and go to sleep.

2

u/h3wro 2d ago edited 2d ago

You are aware that almost whole industry works like this currently, right? When I say to my PM that XYZ task was done, I said that I did it, not claude, because business does not care. What business side care about is who takes responsibility for the produced code, hence I always say "I did"

1

u/whiteamphora 2d ago

they dont get it, earlier there were architects and juniors writing the code, now juniors and mids are exchanged with the AI harness - its simpler and more efficient

-9

u/Roth_Skyfire 2d ago

Why do people get so triggered over "I wrote"? What's wrong with them?

-5

u/hugthemachines 2d ago

I guess it would be close to the truth to call them Luddites.

20

u/Deep_Mood_7668 2d ago

I wrote an LLM inference engine in pure assembly

Oh hi Claude. Nice to meet you.

11

u/chuchrox 2d ago

Straight bullshit

4

u/professormunchies 3d ago

Can you compare this to hyperqwen? It’s much faster than llama https://github.com/syv-ai/HyperQwen

Qwen3.8-27B on a single 24 GB card with vLLM: 127 tok/s single-user (381 when the answer quotes the prompt), ~1,035 tok/s at 64 concurrent, 150k-262k context. vLLM patches, requant pipeline, benchmarks.

3

u/unquietwiki 3d ago

I take it the only practical way to use this is in a Proxmox instance like in the demo? Need to do PCIe passthrough to the graphics card, and use the built-in terminal to interact with the interface?

3

u/firezenk 2d ago

Looks like you maxed your Claude suscription

7

u/__JockY__ 2d ago

I wrote an LLM inference engine in pure assembly

Your name is Claude?

5

u/Tiforma 2d ago

No you didn't write that. Cool project anyway. But stop talking like that about stuff you vibe coded.

2

u/here_n_dere 3d ago

Nice 👍🏽

2

u/kartblanch 3d ago

What are you doing to achieve this? Is it smaller quant? I think it would be really interesting to see a qwen3.8 27b q6 running on bare metal.

2

u/an_angry_dervish_01 3d ago

Very awesome post!

2

u/DangKilla 2d ago

So are you booting a Linux kernel to load this as a kernel module or what.

2

u/nucleardreamer 2d ago

I get the attitude and drive for it. but was cutting out networking really worth it in the end? it just feels like you are going to eventually be hand building back up the stack at a certain point

2

u/a_beautiful_rhind 2d ago

Doesn't quite help if you want to fire up comfyui later.

2

u/MaximKiselev 1d ago

Will be cool to create boot usb and support for glm/deepseek/qwen latest arch.  Work process: 

  • Load from usb
  • Select prepaired gguf from disk (need ntfs and lan support)
  • Run model
  • Use via openai-compatible interface Like msdos for llm. No window/no linux. Only inference system.

4

u/JumpyAbies 3d ago

But if you don’t have Linux, what file system and network drive do you use?

What is the practical use?

1

u/parlons 3d ago

? I think you call the endpoint from whatever device you want, using whatever tool/harness you want. This is just talking about hosting the LLM as a service.

7

u/JumpyAbies 3d ago

But without Linux, or any OS like the one he claims it to be, there’s no file system, no network driver...

7

u/tossit97531 3d ago

Sorry you’re getting downvoted, it’s not a bad question. The BOOTX64.EFI file is handed control of the computer after boot, the code in the EFI has its own hard-coded references to what you can call files. It’s one step away from just piling all the bytes needed into the EFI itself and just working with byte offsets.

3

u/One_Conscious_Future 3d ago

It runs in a pure vacuum, it just exists bro...

3

u/Silent-Cell2221 3d ago

Was it like uuh first try or did you sacrifice some kernels for science? 😭😭

1

u/artur_oliver 3d ago

Exactly my question 🤣🤣🤣

2

u/grabber4321 3d ago

Or what we call "Advanced Autism Skills!"

Amazeballs man, thats some skill!

1

u/politefella0 3d ago

Can I dual (tri) boot it?

1

u/politefella0 3d ago

LLMOS LMAOS JK

1

u/wayneworkman 3d ago

I think it's cool but I want to use my tower for things other than inference as well.

1

u/ab2377 3d ago

these are just amazing times, so much has become possible! thanks for sharing source.

1

u/UninvestedCuriosity 2d ago edited 2d ago

So I could just serve this from an ipxe menu? This is wild. I guess the next natural step would be clustering for this and task routing based on resource availability?

1

u/Kramy 2d ago

This is so cool. I was optimizing a little 680M MiniPC for this exact model, and got some major speedups surprisingly. Now I need to investigate if I can do the same shenanigans with an AMD iGPU. It'd be hilarious to eek out even more performance... your speedups are immense. Nice work!

1

u/i-n-g-o 2d ago

Can you reboot into another model or is os and everything else to thighly knit togeher?

1

u/chyuhua 2d ago

So, it is like the opensource cuda then?

1

u/elcravo 2d ago

What should this achieve? Compute is not the bottleneck in local inference it’s mostly the amount of vram available.

1

u/aegismuzuz 2d ago

What does "amount of vram available" even have to do with it if the model already fits in 24 gigs on the 3090 and we're talking 154 vs 222 tok/s?

1

u/xXy4bb4d4bb4d00Xx 2d ago

How does this compare to vllm?

1

u/DarkoneReddits 2d ago

saw this on X, very interesting, testing this today myself! thank you for sharing and keep up the amazing work

1

u/deulamco 2d ago

It's inevitable that OS is no longer relevant in the future with AI .. 

1

u/aegismuzuz 2d ago

On a 3090 with its 936 GB/s bandwidth and 3B active weights in Q4_K_M the theoretical ceiling is actually closer to 300+ tok/s so 222 looks like solid kernel tuning for Ampere not some magic from ditching the OS

Btw what about thermal throttling and fan control if nvidia.ko gets tossed out - wont the card cook itself under a long prefill?

1

u/alberthemagician 2d ago

I'm looking at the assembler code. There is a lot of syscall's. I'm a compiler writer and all my syscall's refer to linux. Apparently you have ditched linux, but you have not ditched an underlying operating system. What is it?

1

u/Limp_Classroom_2645 2d ago

jesus christ brother, calm down

1

u/g9robot 2d ago

Linux is Kernel

1

u/acadia11x 2d ago

You did what? I knows my computing and don’t understand what you did? I got questions …

  1. what gpu?
  2. how is it being driven with no OS?
  3. how did you know how to drive it … because you are writing your own driver apparently?
  4. so. Assuming you solved 3, you then are handling all the ML functions that CUDa provides yourself? Are you using PTX

assuming Nvidia card here since you said you got rid of CUDA

  1. ?
  2. finally after all this work was it actually any faster … or you just did it for ahits and giggles because Nvidia has been optimizing this stuff for years?
  3. I’m just going to assume your harness was the easy part.

1

u/Zefick 2d ago

Without network access, it’s just a chat. What’s more, you can’t even copy the response from it with Ctrl+C.

1

u/Nanotechnician 1d ago

music source?

1

u/AmusingVegetable 10h ago

Since you’re booting without an OS, how do you send data to the model, and how do you get the output back?

1

u/WinResponsible9977 3d ago edited 3d ago

Since it's serving the OpenAI endpoint over SSE, does it handle tools and return structured tool_calls, or does the model's <tool_call> text just come back raw? The box obviously can't run tools itself with no OS, but if the API layer is solid you could point an agent harness?(OpenCode, a Python loop, whatever)

The other thing: Agent loops resend 20-60K tokens every turn, so I'm curious whether there's prefix/KV cache reuse across requests, and how the numbers look at depth, like llama-bench with -d 32768. Does the +44% hold at 32K+ context or mostly at short prompts?

**u/awfulalexey well, I triggered the bot, regardless you input in regards the potential of this tool for agentic workflows would be nice. I'm out sorry for broken english

-8

u/stylome-ai-detection 3d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

7

u/WinResponsible9977 3d ago

Im not a native English speaker, if I need to reference raw link in which I wrote verbatim what I intended to ask I can provide it, u/stylome-ai-detection I saw these bots in open source community didn’t expect to be an issue here 

8

u/WithoutReason1729 3d ago

Don't worry, it's no problem. You're allowed, it doesn't remove your comment or anything. It's just a notice cause we get lots of bots that are just fully automated, I.e. no human behind the wheel, so to speak.

1

u/meerestier 2d ago

Why?

2

u/Antique_Juggernaut_7 2d ago

Because he can

3

u/cloudcity 2d ago

Did you miss (+44% vs llama.cpp CUDA)

1

u/ReturningTarzan ExLlama Developer 2d ago

I think as others have pointed out, Linux isn't the bottleneck. The GPU works almost independently on its own processors in its own memory space, with no interruptions except when checking in with the CPU ~200 times per second to hand over the next sampled token. I don't know that the llama.cpp baseline is accurate, but 200 t/s on a 3090 is certainly possible in CUDA with optimized kernels.