Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

InCoder-32B: Industrial Code Foundation Model

The first 32B code LLM purpose-built for industrial code intelligence

HuggingFace ModelScope GitHub


Overview

InCoder-32B is the first 32B-parameter code foundation model unifying code intelligence across industrial engineering domains. While general code LLMs excel at standard programming tasks, they degrade significantly when faced with hardware semantics, specialized language constructs, and strict resource constraints. InCoder-32B is purpose-built to address these challenges across:

  • Chip Design (Verilog / RTL)
  • GPU Kernel Optimization (CUDA / Triton)
  • Embedded Systems (ARM Cortex-M, STM32)
  • Compiler Optimization (x86-64 assembly, LLVM)
  • 3D Modeling (CAD/CAM via CadQuery / OpenCascade)

Native long-context support up to 128K tokens.


Model Family

ModelFormatHuggingFace
InCoder-32B-BaseBF16🤗 IndustrialCoder-Base
InCoder-32BBF16 / FP16🤗 InCoder
InCoder-32B-ThinkingBF16🤗 IndustrialCoder-Thinking
InCoder-32B-FP8FP8🤗 InCoder-32B-FP8
InCoder-32B-AWQ-INT4AWQ INT4🤗 InCoder-32B-AWQ-INT4
InCoder-32B-GPTQ-INT4GPTQ INT4🤗 InCoder-32B-GPTQ-INT4

Performance

General Code Benchmarks

ModelSizeHumanEvalHumanEval+MBPPMBPP+BCB FullBCB HardFullStack
Qwen2.5-Coder-32B-Instruct32B93.386.690.277.848.024.357.4
Kimi-K2-Instruct32B/1T94.589.691.874.149.830.463.5
Kimi-K2-Thinking32B/1T98.292.791.882.346.828.458.8
InCoder-32B32B94.589.691.878.349.831.157.1

Agentic & Tool-Use Benchmarks

ModelSizeTerminal-Bench v1.0SWE-bench VerifiedMind2WebBFCL V3τ²-bench Avg
Qwen3-235B-A22B-Thinking22/235B8.844.643.271.945.6
Kimi-K2-Instruct32B/1T47.169.255.7——
InCoder-32B32B35.074.855.861.080.6

Industrial Code Benchmarks

DomainBenchmarkInCoder-32BClaude-Sonnet-4.6Qwen3.5-397B-A17B
Chip DesignVeriScope Score80.787.773.1
Chip DesignVeriRepair Fix (%)80.083.386.7
Chip DesignRealBench Func@1 (Mod)62.737.228.3
Chip DesignArchXBench t51.058.253.5
GPU Optim.KernelBench L1/L2/L322.2/36.0/14.011.1/28.0/2.04.0/10.0/0.0
GPU Optim.TritonBench G-exe (%)100.098.1100.0
3D ModelingCAD-Coder Compile (%)82.077.079.0
3D ModelingCAD-Coder IoU53.532.488.0*
Code Optim.EmbedCGen Main35.281.034.0
Code Optim.SuperCoder Acc91.088.081.0

InCoder-32B leads all open-weight baselines across industrial domains and surpasses the proprietary Claude-Sonnet-4.6 on CAD-Coder IoU and KernelBench L1/L2/L3.


Training Pipeline: Code-Flow

InCoder-32B is trained through a three-stage Code-Flow pipeline:

Pre-training  ──►  Mid-training  ──►  Post-training
(Annealing)       (8K → 128K ctx)    (SFT + Execution Grounding)

Stage 1 · Pre-training & Annealing

  • Industrial code collected from public repositories, technical literature, and domain-specific web data
  • License filtering, PII removal, and multi-level deduplication (exact hash, token-level near-duplicate, repo-level fork consolidation)
  • Trained on 4,096 GPUs with autoregressive LM + fill-in-the-middle (FIM)

Stage 2 · Mid-training (Context Extension)

  • Sub-stage 1: 8K → 32K for file-level tasks (e.g. RTL module completion)
  • Sub-stage 2: 32K → 128K for long-context tasks (e.g. extended debugging sessions)
  • Synthetic industrial QA: scenario spec → seed code generation → QA pair synthesis with automated verification
  • Agent trajectories via Thought-Action-Observation cycles with feedback from hardware simulators, synthesis tools, C/C++ compilers, and formal verification engines

Stage 3 · Post-training (Execution-Grounded SFT)

  • 2.5M samples from real industrial coding tasks grounded in execution across hardware design, GPU kernels, systems programming, and embedded firmware
  • Feedback-Driven Repair: closed-loop repair trajectories from compiler errors, runtime logs, waveform differences, and profiling bottlenecks
  • Yields both an instruction-tuned variant and a thinking variant

Industrial Simulation Environments

DomainToolchainCorrectness Criteria
Chip DesignIcarus Verilog, Verilator, YosysRTL simulation pass + synthesis feasibility
GPU OptimizationNVIDIA nvcc via PyTorch, @triton.jitNumerical correctness + CUDA timing
3D ModelingCadQuery / OpenCascadeVolumetric IoU vs. reference geometry
Embedded Systemsarm-none-eabi-gcc + Renode (STM32F407)HAL register behavior + interrupt fidelity
Compiler Optim.x86-64 GCC/LLVM test harnessSemantic equivalence + measurable speedup

Quickstart

Install

pip install -U "transformers>=4.57.1" accelerate safetensors

Transformers

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "Multilingual-Multimodal-NLP/IndustrialCoder"

tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)

messages = [{"role": "user", "content": "Optimize this CUDA kernel for better memory coalescing."}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)

with torch.no_grad():
    out = model.generate(**inputs, max_new_tokens=2048, temperature=0.6, top_p=0.85, top_k=20)

print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

vLLM (recommended for production)

pip install vllm

# BF16
vllm serve Multilingual-Multimodal-NLP/IndustrialCoder \
    --tensor-parallel-size 4 --max-model-len 32768

# FP8
vllm serve Multilingual-Multimodal-NLP/IndustrialCoder-32B-FP8 \
    --tensor-parallel-size 2 --max-model-len 32768

AWQ / GPTQ (single GPU, ~20 GB VRAM)

# AWQ INT4
model_name = "Multilingual-Multimodal-NLP/IndustrialCoder-32B-AWQ-INT4"

# GPTQ INT4
model_name = "Multilingual-Multimodal-NLP/IndustrialCoder-32B-GPTQ-INT4"

Recommended Sampling Parameters

Use casetemperaturetop_ptop_kmax_new_tokens
General coding0.60.85202048
Industrial / precise0.20.95—4096
Thinking variant0.60.85208192

Evaluation Benchmarks

General Code (14 benchmarks): EvalPlus, MBPP/MBPP+, BigCodeBench, FullStackBench, CRUXEval, LiveCodeBench, Mercury, Spider, BIRD, Terminal-Bench v1/v2, SWE-bench Verified, Mind2Web, BFCL V3, τ²-bench

Industrial Code (9 benchmarks across 4 domains):

DomainBenchmarks
Chip DesignVeriScope, VeriRepair, RealBench, ArchXBench
GPU OptimizationKernelBench, TritonBench
Code OptimizationEmbedCGen, SuperCoder
3D ModelingCAD-Coder

Disclaimer

The model may generate incorrect or unsafe code. Always review and test outputs in a sandboxed environment before production use. Industrial code (RTL, embedded firmware, GPU kernels) requires expert human review before deployment.


Fine-tuning

We provide a lightweight SFT (Supervised Fine-Tuning) framework for InCoder-32B in the sft/ directory.

Setup

cd sft/
pip install -r requirements.txt

Data Preparation

Prepare a JSONL file where each line is a JSON object with a "messages" field (ChatML format):

{"messages": [{"role": "system", "content": "..."}, {"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}]}

Tokenize it to .npy format:

bash scripts/binarize_data.sh /path/to/data.jsonl /path/to/output /path/to/IndustrialCoder-Base 16384

Training

  1. Edit configs/sft_32b.yaml — set model_name_or_path, data_path, and output_dir.
  2. Launch training:
bash start.sh
# or directly:
bash scripts/run_sft.sh configs/sft_32b.yaml

Multi-node training is supported via MASTER_ADDR, WORLD_SIZE, RANK environment variables.

Download Model

python download_model.py \
    --repo_id Multilingual-Multimodal-NLP/IndustrialCoder-Base \
    --local_dir /path/to/save/model

The citations are listed below:

@inproceedings{yang-etal-2026-incoder-thinking,
    title = "{I}n{C}oder-32{B}-Thinking: Industrial Code World Model for Thinking",
    author = "Yang, Jian  and
      Zhang, Wei  and
      Wu, Jiajun  and
      Cheng, Junhang  and
      Zheng, Tuney  and
      Xu, Fanglin  and
      Grant, William  and
      Chai, Linzheng  and
      Du, Yaxin  and
      Li, Haau-Sing  and
      LI, Yizhi  and
      Xing, Yan  and
      Hao, Chuan  and
      Tao, Ran  and
      Gong, Ruihao  and
      Liu, Aishan  and
      Li, Zhoujun  and
      Tang, Mingjie  and
      Lin, Chenghua  and
      Chen, Siheng  and
      Zhao, Xin  and
      Liu, Xianglong  and
      Zhou, Ming  and
      Dai, Bryan  and
      Lv, Weifeng",
    editor = "Lee, Hung-Yi  and
      Dev, Sunipa  and
      Li, Junyi Jessy  and
      Elliott, Desmond",
    booktitle = "Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing",
    month = oct,
    year = "2026",
    address = "Budapest, Hungary",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.emnlp-main.1827/",
    doi = "10.18653/2026.emnlp-main.1827",
    pages = "41611--41628",
}
@article{yang-etal-2026-incoder,
  title={InCoder-32B: Code Foundation Model for Industrial Scenarios},
  author={
    Jian Yang and
    Wei Zhang and
    Jiajun Wu and
    Junhang Cheng and
    Shawn Guo and
    Haowen Wang and
    Weicheng Gu and
    Yaxin Du and
    Joseph Li and
    Fanglin Xu and
    Yizhi Li and
    Lin Jing and
    Yuanbo Wang and
    Yuhan Gao and
    Ruihao Gong and
    Chuan Hao and
    Ran Tao and
    Aishan Liu and
    Tuney Zheng and
    Ganqu Cui and
    Zhoujun Li and
    Mingjie Tang and
    Chenghua Lin and
    Wayne Xin Zhao and
    Xianglong Liu and
    Ming Zhou and
    Bryan Dai and
    Weifeng Lv
  },
  journal={arXiv preprint arXiv:2603.16790},
  year={2026}
}

关于 About

No description, website, or topics provided.

语言 Languages

Python93.5%
Shell6.5%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
6
Total Commits
峰值: 3次/周
Less
More

核心贡献者 Contributors