# Stable-DiffCoder **Repository Path**: ByteDance-Seed/Stable-DiffCoder ## Basic Information - **Project Name**: Stable-DiffCoder - **Description**: Stable-DiffCoder is a family of lightweight open-source code DLLMs(diffusion large language models) comprising base and instruct models, developed by ByteDance Seed. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-15 - **Last Updated**: 2026-09-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
π Homepage   |   π€ Hugging Face   |   π arXiv
We are thrilled to introduce **Stable-DiffCoder**, which is a strong code diffusion large language model. Built directly on the **Seed-Coder** architecture, data, and training pipeline, it introduces a block diffusion continual pretraining (CPT) stage with a tailored warmup and block-wise clipped noise schedule. Under identical architecture and data settings, we systematically analyze and design an efficient diffusion training pipeline that is not only stable but also potentially lifts the modelβs performance ceiling. With this recipe, Stable-DiffCoder demonstrates overall performance improvements compared to its autoregressive (AR) counterpart across a broad set of code benchmarks, while any-order modeling improves structured code handling for editing and reasoning, and diffusion-based corruption aids learning for low-resource programming languages. Notably, with only CPT followed by supervised fine-tuning, Stable-DiffCoder further surpasses many strong βΌ8B AR and diffusion-based code models. These results demonstrate that diffusion-based training can improve code modeling quality beyond what AR training alone can achieve, even under tightly controlled data and architecture constraints. ## π’ News [2026/01/22] We release [Stable-DiffCoder](https://bytedance-seed.github.io/Stable-DiffCoder)! [2026/03/09] Update to adapt transformers v4.46.2->v5.3.0! --- ## β¨ Highlights * **Fair & controlled comparison**: identical architecture, data, and training pipeline as the AR baseline, isolating the effect of diffusion-based training * **Block diffusion CPT**: equipped with a tailored warmup strategy and a block-wise clipped noise schedule * **Actionable training insights**: systematic analysis of training dynamics, providing practical and efficient guidelines for diffusion-based model training * **Strong performance under minimal stages**: competitive with a wide range of βΌ8B AR and diffusion-based instruction models using only CPT + SFT ## β‘ Quick Start We are excited to introduce **Stable-DiffCoder**, featuring three powerful models: | Model Name | Length | Download | Notes | |-----------------------------|--------|------------------------------------------------------------------------------------|---------------| | Stable-DiffCoder-8B-Base | 8K | π€ [Model](https://huggingface.co/ByteDance-Seed/Stable-DiffCoder-8B-Base) | Pretrained on our model-centric code data. | | Stable-DiffCoder-8B-Instruct | 8K | π€ [Model](https://huggingface.co/ByteDance-Seed/Stable-DiffCoder-8B-Instruct) | Instruction-tuned for alignment with user intent. | All the models are publicly available on [Hugging Face collection](https://huggingface.co/collections/ByteDance-Seed/stable-diffcoder).