Meet qwenGPU: Qwen3.5-2B With 45 Compiled GPU Layers That Run CUDA

2026年11月2日 07:28
站內 AI 整理稿

qwenGPU is an experimental model that compiles a SIMT GPU directly into the weights of Qwen3.5-2B.Developer Vixhal (@TheVixhal) released it on GitHub under the MIT license.The model runs real CUDA, compiled to NVIDIA PTX, inside its own forward passes.

For developers, it tests one idea: exact computation inside a pretrained LLM, not beside it.TL;DR Size: Qwen3.5-2B (24 layers) along with 45 compiled GPU layers, 69 in total.Context: 262,144 tokens (base model).Runs on: Apple silicon, an NVIDIA GPU or a CPU, with about 16 GB of free memory.

No quantized build.Performance: Every launch in the developer’s runs was exact; text drift is a KL of about 7e-4.Best: The reference interpreter matched a real NVIDIA Tesla T4 on 49 of 49 kernels.Worst: About 10 to 15 tokens per second on Apple MPS; Qwen-written CUDA passed 4 of 5.What is qwenGPU?

qwenGPU is Qwen3.5-2B with 45 compiled transformer layers placed in front of Qwen’s own 24.None of those layers are trained.A compiler computes every weight.How does a GPU fit inside model weights?The GPU is a 4-lane SIMT machine.

It has 15 registers per lane, a 4-stage pipeline, a 32-block ROM and 126 memory words.It uses only Qwen3.5’s own layer types: Gated DeltaNet linear attention and SwiGLU MLPs.The trick is the Gated DeltaNet recurrent state.In the circuit’s heads, the gate is held open and the write strength is 1.

Every key is one-hot.Each update overwrites exactly 1 row, and a one-hot query reads it back.So each row works as a memory cell.That state holds the program ROM, registers and global memory.The README lists 16 register rows per lane, with 1 that always reads zero.

That matches the 15 usable registers in the X post.The GPU supports integer arithmetic, predicates, divergent branches and loops.It also supports shared memory, atomicAdd, __syncthreads() and warp shuffles.window.addEventListener("message",function(e){if(e.data&&e.data.mtpH){var f=document.

getElementById("mtp-qgpu-frame");if(f&&e.source===f.contentWindow){f.style.height=e.data.mtpH+"px";}}}); What happens during a CUDA launch?The host plays the role of NVRTC and the CUDA driver.It compiles CUDA to PTX with clang, then lowers PTX to machine blocks.

It feeds the program and input arrays to the model as tokens.From there, the model writes the launch itself.Each EXEC(b, w) token runs block b for warp w in 1 forward pass.The VAL tokens after it carry register results.Memory writes return as MEM records.

The host reads results from the recurrent state and computes none of them.In the demo video, a dot product of [1, 2, 3] and [4, 5, 6] returns 32.The model wrote that launch in 47 tokens.Meet qwenGPU: Qwen3.

5-2B with a SIMT GPU inside its weights, 45 compiled layers in front of Qwen’s own, using its Gated DeltaNet layers as registers and memory.It runs real CUDA in its forward passes.The host compiles the kernel to PTX and loads it, then the model writes every… pic.twitter.

com/iM5IETEbIv— vixhaℓ (@TheVixhal) November 1, 2026 Does the GPU break Qwen’s text ability?Not by the developer’s measure.The circuit is muted on text tokens, and Qwen’s own weights are unchanged.The merged model’s next-token distribution stays within a KL of about 7e-4 of the original.

How accurate is qwenGPU?All numbers are self-reported, measured on Apple silicon with MPS in bf16: Every launch was exact under --check replay.The reference interpreter matched an NVIDIA Tesla T4 on 49 of 49 test kernels.Normal mode answered 20 of 24 sampled chat questions with GPU-computed numbers.

Advanced mode wrote a correct kernel first try on 4 of 5 questions.In normal mode, Qwen writes an expression like [1, 2, 3] @ [4, 5, 6] for ready-made kernels.In advanced mode, Qwen writes the CUDA kernel itself.The README warns that a 2B model’s CUDA is still unreliable.

How does qwenGPU compare with Qwenputer and Percepta?qwenGPU uses the transformer compiler from Qwenputer by Divyansh Agrawal.Qwenputer compiles a 32-bit RISC-V CPU into Qwen3.5-4B.Percepta built a WebAssembly interpreter into a transformer with 2D attention heads in March 2026.

FeatureqwenGPUQwenputer (RISC-V)PerceptaBase modelQwen3.5-2B, 24 layersQwen3.

5-4BCustom transformer with 2D attention headsMachine compiled in4-lane SIMT GPU32-bit RISC-V (RV32IM + Zba + bignum)WebAssembly interpreterPrograms it runsCUDA, lowered from PTXC and MicroPythonC, compiled to WebAssemblyCompiled layers4511Not disclosedWhere state livesGated DeltaNet stateGated DeltaNet stateExecution trace in contextHost roleCompiles CUDA to PTX, loads tokens, reads resultsLoads firmware; runs no computationNot disclosedCorrectness checkInterpreter matched Tesla T4 on 49 of 49 kernels0 mismatches in about 230,000 replayed positionsClaims millions of reliable stepsReported speed10 to 15 tokens/s (Apple MPS)About 3,200 trace tokens/s (L4, Triton)30,000+ tokens/s (CPU)Text drift vs baseKL about 7e-4KL 6e-4Not applicableLicenseMIT code; Apache-2.

0 checkpointMIT code; Apache-2.0 weightsNot disclosed The speed figures use different hardware and token types, so they are not directly comparable.What do you need to run it?The quickstart needs Python 3.11+, uv, just and about 16 GB of free memory.

Advanced mode also needs clang with the NVPTX backend.just build downloads Qwen3.5-2B and compiles the GPU into it.No prebuilt checkpoint is published.A built checkpoint falls under Qwen’s Apache-2.0 license.Key Takeaways qwenGPU compiles a 4-lane SIMT GPU into Qwen3.5-2B as 45 untrained layers.

Gated DeltaNet state serves as registers, program ROM and global memory.The model writes every CUDA launch step; the host only compiles and loads.The interpreter matched a Tesla T4 on 49 of 49 kernels.At 10 to 15 tokens per second, it is a research demo, not a runtime.

Check out the GitHub repo, the qgpu CUDA reference, the Qwen3.5-2B model card and the original X post.Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!are you on telegram?now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?Connect with us The post Meet qwenGPU: Qwen3.5-2B With 45 Compiled GPU Layers That Run CUDA appeared first on MarkTechPost.

Related

相關文章

智東西生成式AI

英特爾與騰訊發佈基於至強6+的雲實例,曬智能體AI基礎設施全家桶

作者 | ZeR0 編輯 | 漠影 11月3日報道,近日,在2026騰訊全球數字生態大會上,英特爾與騰訊雲發佈基於英特爾至強6+處理器的騰訊雲新一代雲實例,並全面展示英特爾的芯片產品與雲端實踐。 全新至強6+處理器擁有最高288顆能效核,單顆處理器最高可支持超過1000個智能體的穩定部署,這也為騰訊雲服務器提供更高併發、更低時延、更優能效的雲端算力服務。

1 小時前
雷峰網生成式AI

智元榮獲2026世界互聯網大會傑出貢獻獎

11月3日,2026年世界互聯網大會烏鎮峰會在浙江烏鎮隆重開幕,國務院總理李強出席開幕式並發表主旨演講。開幕式上,智元憑藉在具身智能領域的系統性技術突破與產業化實踐,獲頒世界互聯網大會傑出貢獻獎。智元合夥人、高級副總裁朱潔在領獎時表示:人工智能的終局,不在於屏幕與雲端,而紮根於工廠一線和尋常煙火。具身智能賽道的競爭,早已跳出單點技術的競速,轉向軟硬協同、工程化落地、產業組織與治理體系的綜合比拼。智元期待與各界同心同行,堅守務實,躬身落地。

1 小時前

電動車退燒、AI 儲能燒起來:LG 新能源把產能挪向數據中心

11 月 3 日,首席財務官李昌植在財報電話會上給出時間表:今年底軟包儲能系統(ESS)產能將超 50 吉瓦時,明年進一步拉到 70 GWh 以上。在他看來,電動車增速放緩之際,AI 數據中心的大規模新建為電池廠撕開了新口子——第三季度 ESS 在手訂單已達 160 GWh,公司正與電力企業、超大型數據中心運營商談新項目,今年 9 月還作為儲能供應商擠進了英偉達的 DSX Ready 計劃。

2 小時前4700
雷峰網生成式AI

最高288核的至強6+,為了Agent高密度部署還下了哪些「雲功夫」?

作者 | 陳悅琳編輯 | 包永剛 一個智能體能順利完成任務,不代表成百上千個智能體就能同時高效運行。 對於承載大量智能體任務的雲服務器而言,除了提升計算速度,如何在任務集中到來時迅速準備好執行環境、怎樣減少暫時閒置的任務對內存資源的佔用,也成為亟待解決的問題。 對此,在一年一度的騰訊全球數字生態大會上,英特爾與騰訊雲聯合發佈了基於至強6+處理器的新一代雲實例,圍繞任務啟動效率、內存資源利用率等關鍵因素進行優化後,其綜合性能較上一代提升30%以上。

2 小時前

聯合國副秘書長點贊!千問AI耳夾式耳機亮相烏鎮互聯網大會

他認為,產品非常實用,適合自己日常工作中需要使用多國語言進行交流的場景。面對面交流時,用戶可以通過耳機收聽譯文;會議中的討論內容,也能通過AI聽記整理為結構化紀要,方便會後回顧。連接千問App後,用戶還可通過語音交辦資料研究等任務、接收完成提醒,讓耳機成為日常辦公的隨身助手。

3 小時前