Vibecoding your own LLM inference engine: GGUF in WebGL2 ends in debug hell

CodeMichaelD · reddit · 2026-10-23

Developer CodeMichaelD shares the pain of "vibecoding" a from-scratch LLM inference engine: running GGUF Q4 weights paged into WebGL2 compute buffers via GLSL inside a single HTML page, with the tokenizer/vocab being an endless debug nightmare. Screenshots show the engine does chat, but asking "are you qwen" produces garbled Chinese-English text and walls of exclamation marks. His takeaway: just clone llama.cpp.

Original post →

More from coding & agent

coding & agent channel →