Views
No views yet
| Domain | Benchmark | InCoder-32B | Claude-Sonnet-4.6 |
|---|---|---|---|
| Chip Design | RealBench Func@1 (Mod) | 62.7 | 37.2 |
| GPU Optim. | KernelBench L1/L2/L3 | 22.2/36.0/14.0 | 11.1/28.0/2.0 |
| 3D Modeling | CAD-Coder Compile (%) | 82.0 | 77.0 |
| Code Optim. | SuperCoder Acc | 91.0 | 88.0 |
pip install -U "transformers>=4.57.1" accelerate safetensors1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_name = "Multilingual-Multimodal-NLP/IndustrialCoder"
5
6tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
7model = AutoModelForCausalLM.from_pretrained(
8 model_name,
9 torch_dtype="auto",
10 device_map="auto",
11 trust_remote_code=True,
12)
13
14messages = [{"role": "user", "content": "Optimize this CUDA kernel for better memory coalescing."}]
15text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
16inputs = tokenizer([text], return_tensors="pt").to(model.device)
17
18with torch.no_grad():
19 out = model.generate(**inputs, max_new_tokens=2048, temperature=0.6, top_p=0.85, top_k=20)
20
21print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))1@article{yang2025incoder32b,
2 title={InCoder-32B: Code Foundation Model for Industrial Scenarios},
3 author={Yang, Jian and Zhang, Wei and Wu, Jiajun and Cheng, Junhang and Guo, Shawn and Wang, Haowen and Gu, Weicheng and Du, Yaxin and Li, Joseph and Xu, Fanglin and others},
4 journal={arXiv preprint arXiv:2603.16790},
5 year={2025}
6}