模型

Stable-DiffCoder 8B Instruct

ByteDance-Seed/Stable-DiffCoder-8B-Instruct

查看上游原文 ↗
上游访问:公开 本站服务:可咨询 内容检查:AI 辅助整理并检查 许可证:MIT License 上游版本:10cdaf9b486f

中文简介

Stable-DiffCoder 8B Instruct 是 ByteDance Seed 发布方的代码扩散语言模型,与常见自回归代码模型采用不同生成机制。固定 README 标注规模 8B、上下文长度 8192,适合研究代码扩散推理和代码生成实验,不应因为名称含 Stable 就理解为图像扩散模型。

UPSTREAM README

上游模型卡 / 数据集卡

在 Hugging Face 查看原文 ↗

版本定位:Stable-DiffCoder 8B Instruct 是代码扩散模型,不是图像生成模型。固定卡片给出 8B 规模和 8192 上下文,并通过自定义生成参数控制扩散步骤。

选择建议:适合研究扩散式代码生成或与自回归模型做对照。现有只支持标准 Transformers 自回归接口的服务,不一定能直接接入;应先验证自定义代码和生成 API。

安全边界:示例使用远程自定义代码,必须在隔离环境审查。生成代码仍需测试、扫描和许可证核对。本站可协助固定文件获取与校验,不对生成代码正确性作保证。

已有简体中文译文 · Codex 基于固定版本上游 README 编写;待人工复核 · 2026-08-07 23:24

Stable-DiffCoder-8B-Instruct Introduction 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. This repo contains the **Stable-DiffCoder-8B-Instruct** model, which has the following features: Type: Mask Diffusion Language Models Training Stage: Pretraining & Post-training Data Source: Public datasets, synthetic data Context Length: 8192 Model Downloads | Model Name | Length | Download | Notes | |---------------------------------------------------------|--------|------------------------------------|-----------------------| | Stable-DiffCoder-8B-Base | 8K | 🤗 Model | Pretrained on our model-centric code data. | | 👉 **Stable-DiffCoder-8B-Instruct** | 8K | 🤗 Model | Instruction-tuned for alignment with user intent. | Requirements Current (v5.3.0) `transformers` is available for inference: Explanation of Inference Parameters `steps`: Number of ste

公开页仅展示原文摘录;完整模型卡或数据集卡请前往上游仓库查看。

适用场景

适合代码补全、函数生成、扩散式解码研究和与自回归代码模型的对照实验。采用前要确认现有推理服务是否支持其自定义 model.generate 参数与远程模型代码;对通用聊天或超长仓库理解需求,它未必是合适首选。

模型参数

固定版本:10cdaf9b486f1cf0273ad968459dbe2d21a1482a。元数据参数量:8,250,462,208;固定 README:Mask Diffusion Language Model、上下文 8192,模型基于 Seed-Coder 路线并采用扩散式生成参数。

文件说明

固定 SHA 下共有 13 个文件,四个 Safetensors 权重分片及索引合计构成主要模型文件,整仓库文件元数据约 15.38 GB。交付必须带上自定义 modeling 文件、config 与 tokenizer,并对远程代码做单独哈希和安全审查。

上游文件元数据

  • .gitattributes1.59 KB
  • config.json853 B
  • imgs/intro_performance.png111.69 KB
  • model-00001-of-00004.safetensors4.59 GB
  • model-00002-of-00004.safetensors4.58 GB
  • model-00003-of-00004.safetensors4.66 GB
  • model-00004-of-00004.safetensors1.55 GB
  • model.safetensors.index.json23.39 KB
  • modeling_stable_diffcoder.py9.79 KB
  • README.md9.17 KB
  • special_tokens_map.json760 B
  • tokenizer.json11.34 MB

硬件建议

权重规模接近常见 8B 全精度模型,但扩散步数、block length 和生成长度会改变速度与显存。可用 24 GB 级 GPU 作为小批量兼容性验证起点;这不是性能承诺,部署前应以目标代码长度测试延迟、峰值显存和吞吐。

注意事项

固定 README 的示例启用 trust_remote_code,生产环境应先审查 modeling_stable_diffcoder.py 并锁定依赖。生成代码可能包含漏洞、许可证冲突或不存在的 API,必须经过测试、静态分析和人工审查。MIT 许可不代表训练数据中的所有代码可无条件复用。

获取、校验与交付

咨询此资源时只需发送本页链接或资源准确全称。橙子AI科技会继续核对版本、文件与类型、README资料卡、许可证和访问条件,并在合法访问权限、许可证及平台规则允许的前提下,协助海内外下载、完整性校验及网盘或硬盘交付;本官网本身不托管或下载资源文件。

第三方资源声明

本页面为橙子AI科技基于固定版本上游卡片整理的中文信息与服务说明,不代表资源作者或平台官方页面。实际许可、访问和使用条件以上游原文为准。