Beihang's InCoder-32B Beats Claude on Chip Design and GPU Kernel Coding
A 32B open-weight code model targets the domains where general LLMs break: Verilog synthesis, CUDA kernels, embedded firmware, and CAD scripts.
ProTakeaways
- InCoder-32B is the first 32B open-weight code model unifying chip design, GPU kernels, embedded, compiler optimization, and CAD.
- Three-stage Code-Flow pipeline: pre-training on 15T tokens, mid-training extending context 8K to 128K, post-training on 2.5M execution-verified samples.
- Training data verified by real toolchains: Verilator, Yosys, nvcc, Triton on A100, Renode STM32 emulator, and CadQuery.
- Scores 74.8% on SWE-bench Verified and beats larger open models on RealBench, CAD-Coder, KernelBench, and SuperCoder.
- Weights and pipeline available on Hugging Face and GitHub.
- Still weak on bare-metal embedded C (EmbedCGen 35.2%) and system-level Verilog tasks that require full hierarchy synthesis.
Code LLMs have become genuinely useful for everyday software work, but ask one to write a Verilog module that survives synthesis, a CUDA kernel that respects gridDim hardware limits, or an STM32 firmware routine that configures interrupts correctly, and the wheels come off. A new open-weight model called InCoder-32B targets exactly this gap, trained from scratch to reason about hardware constraints, timing behavior, and low-level performance rather than treating them as out-of-distribution problems.
The team behind it, spanning Beihang University, IQuest Research, and several other labs, released the paper along with weights on Hugging Face and a GitHub repository. Their pitch is one 32B dense model that handles chip design, GPU kernel optimization, embedded systems, compiler optimization, and 3D CAD scripting, without giving up general coding ability.
Why general code models keep failing on real hardware
Industrial code is not exotic. Correctness is defined by the toolchain, not by pattern matching. Related benchmarks show that even the strongest code LLMs struggle here, with the best models achieving only a 28.80% call success rate on Triton operator generation and 33.3% accuracy on Verilog code that passes simulation while failing formal equivalence checking.
A typical failure looks like this: a frontier model writes a CUDA RMS normalization kernel for a 512x512 tensor and assigns the flattened spatial size (262,144) to gridDim.y. That exceeds the CUDA hardware limit of 65,535, so the kernel throws an invalid configuration argument at launch. The code looks plausible. It compiles. It just cannot run on the hardware it targets.

General code corpora are dominated by web-oriented languages. Verilog and VHDL occupy a negligible fraction of total tokens, while CUDA and Triton kernels are rarely categorized separately and often get mixed into general C/C++. The result is broad domain vocabulary but shallow understanding of hardware semantics.
The Code-Flow training pipeline
InCoder-32B uses a three-stage recipe the authors call Code-Flow. The architecture itself is a standard dense decoder-only Transformer with 64 layers, hidden size 5120, 40 attention heads with 8 KV heads for grouped-query attention, RoPE with theta=500000, and a 131,072 max context length.