Add model card and metadata for InCoder-32B
Browse filesHi! I'm Niels from the Hugging Face community science team. I noticed this repository was missing a model card.
This PR adds a comprehensive model card for InCoder-32B, including:
- Relevant metadata (`pipeline_tag`, `library_name`).
- A link to the paper [InCoder-32B: Code Foundation Model for Industrial Scenarios](https://huggingface.co/papers/2603.16790).
- Information about the model's specialized capabilities in industrial domains like chip design, GPU optimization, and embedded systems.
- A quickstart code snippet for using the model with the `transformers` library.
- Performance benchmarks and citation details.
This will help users discover and use your model more effectively on the Hub!
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
pipeline_tag: text-generation
|
| 4 |
+
license: other
|
| 5 |
+
tags:
|
| 6 |
+
- code
|
| 7 |
+
- industrial-ai
|
| 8 |
+
- code-generation
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# InCoder-32B: Industrial Code Foundation Model
|
| 12 |
+
|
| 13 |
+
[InCoder-32B](https://huggingface.co/papers/2603.16790) (Industrial-Coder-32B) is the first 32B-parameter code foundation model purpose-built for industrial code intelligence. While general code LLMs excel at standard programming tasks, InCoder-32B is specifically designed to address challenges in hardware semantics, specialized language constructs, and strict resource constraints.
|
| 14 |
+
|
| 15 |
+
## Model Description
|
| 16 |
+
InCoder-32B unifies code intelligence across several industrial engineering domains:
|
| 17 |
+
- **Chip Design** (Verilog / RTL)
|
| 18 |
+
- **GPU Kernel Optimization** (CUDA / Triton)
|
| 19 |
+
- **Embedded Systems** (ARM Cortex-M, STM32)
|
| 20 |
+
- **Compiler Optimization** (x86-64 assembly, LLVM)
|
| 21 |
+
- **3D Modeling** (CAD/CAM via CadQuery / OpenCascade)
|
| 22 |
+
|
| 23 |
+
The model supports a native long-context window of up to **128K tokens**.
|
| 24 |
+
|
| 25 |
+
### Links
|
| 26 |
+
- **Paper**: [InCoder-32B: Code Foundation Model for Industrial Scenarios](https://huggingface.co/papers/2603.16790)
|
| 27 |
+
- **GitHub**: [CSJianYang/Industrial-Coder](https://github.com/CSJianYang/Industrial-Coder)
|
| 28 |
+
- **Project Page**: [IndustrialCoder](https://huggingface.co/Multilingual-Multimodal-NLP/IndustrialCoder)
|
| 29 |
+
|
| 30 |
+
## Performance Highlights
|
| 31 |
+
InCoder-32B leads open-weight baselines across industrial domains and surpasses proprietary models like Claude-Sonnet-4.6 on specific benchmarks such as CAD-Coder IoU and KernelBench.
|
| 32 |
+
|
| 33 |
+
| Domain | Benchmark | InCoder-32B | Claude-Sonnet-4.6 |
|
| 34 |
+
|---|---|:---:|:---:|
|
| 35 |
+
| **Chip Design** | RealBench Func@1 (Mod) | **62.7** | 37.2 |
|
| 36 |
+
| **GPU Optim.** | KernelBench L1/L2/L3 | **22.2/36.0/14.0** | 11.1/28.0/2.0 |
|
| 37 |
+
| **3D Modeling** | CAD-Coder Compile (%) | **82.0** | 77.0 |
|
| 38 |
+
| **Code Optim.** | SuperCoder Acc | **91.0** | 88.0 |
|
| 39 |
+
|
| 40 |
+
## Quickstart
|
| 41 |
+
|
| 42 |
+
### Installation
|
| 43 |
+
```bash
|
| 44 |
+
pip install -U "transformers>=4.57.1" accelerate safetensors
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
### Usage with Transformers
|
| 48 |
+
```python
|
| 49 |
+
import torch
|
| 50 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 51 |
+
|
| 52 |
+
model_name = "Multilingual-Multimodal-NLP/IndustrialCoder"
|
| 53 |
+
|
| 54 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
| 55 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 56 |
+
model_name,
|
| 57 |
+
torch_dtype="auto",
|
| 58 |
+
device_map="auto",
|
| 59 |
+
trust_remote_code=True,
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
messages = [{"role": "user", "content": "Optimize this CUDA kernel for better memory coalescing."}]
|
| 63 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 64 |
+
inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 65 |
+
|
| 66 |
+
with torch.no_grad():
|
| 67 |
+
out = model.generate(**inputs, max_new_tokens=2048, temperature=0.6, top_p=0.85, top_k=20)
|
| 68 |
+
|
| 69 |
+
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Training Pipeline
|
| 73 |
+
The model is trained via a three-stage **Code-Flow** pipeline:
|
| 74 |
+
1. **Pre-training & Annealing**: General pre-training followed by curated industrial code annealing.
|
| 75 |
+
2. **Mid-training**: Progressive context extension from 8K to 128K tokens using synthetic industrial reasoning data.
|
| 76 |
+
3. **Post-training**: Execution-grounded SFT with 2.5M samples and feedback-driven repair trajectories.
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
```bibtex
|
| 80 |
+
@article{yang2025incoder32b,
|
| 81 |
+
title={InCoder-32B: Code Foundation Model for Industrial Scenarios},
|
| 82 |
+
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},
|
| 83 |
+
journal={arXiv preprint arXiv:2603.16790},
|
| 84 |
+
year={2025}
|
| 85 |
+
}
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
## Disclaimer
|
| 89 |
+
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.
|