Salesforce AI Research Releases CoDA-1.7B: a Discrete-Diffusion Code Model with Bidirectional, Parallel Token Generation

Salesforce AI Research launched CoDA-1.7B, a diffusion-based language mannequin for code that generates by denoising entire sequences with bidirectional context, updating a number of tokens in parallel moderately than left-to-right next-token prediction. The analysis group revealed each Base and Instruct checkpoints and an end-to-end coaching/analysis/serving stack.
Understanding the structure and coaching
CoDA adapts a 1.7B-parameter spine to discrete diffusion for textual content: masked sequences are iteratively denoised utilizing full-sequence consideration, enabling native infilling and non-autoregressive decoding. The mannequin card paperwork a three-stage pipeline (pre-training with bidirectional masking, supervised post-training, and progressive denoising at inference) plus reproducible scripts for TPU pre-training, GPU fine-tuning, and analysis.
Key options surfaced within the launch:
- Bidirectional context by way of diffusion denoising (no fastened era order).
- Confidence-guided sampling (entropy-style decoding) to commerce high quality vs. velocity.
- Open coaching pipeline with deploy scripts and CLI.
How do they carry out on Benchmarks?
On normal code-gen suites, CoDA-1.7B-Instruct studies: HumanEval 54.3%, HumanEval+ 47.6%, MBPP 47.2%, MBPP+ 63.2%, EvalPlus combination 55.4% (cross@1). For context, the mannequin card compares towards diffusion baselines together with Dream-7B-Instruct (57.9% HumanEval), indicating CoDA’s 1.7B footprint is aggressive with some 7B diffusion fashions on a number of metrics whereas utilizing fewer parameters.

Inference habits
Generation price is ruled by the variety of diffusion steps; CoDA exposes knobs akin to STEPS
, ALG="entropy"
, ALG_TEMP
, and block size to tune latency/high quality trade-offs. Because tokens are up to date in parallel underneath full consideration, CoDA targets decrease wall-clock latency at small scale in contrast with bigger diffusion fashions, at comparable step budgets. (Hugging Face)
Deployment and licensing
The repository gives a FastAPI server with OpenAI-compatible APIs and an interactive CLI for native inference; directions embrace surroundings setup and a start_server.sh
launcher. Model playing cards and a Hugging Face assortment centralize artifacts. The checkpoints are revealed underneath CC BY-NC 4.0 on Hugging Face.
Our Comments
CoDA-1.7B stands as a clear reference for discrete-diffusion code era at small scale: 1.7B parameters, bidirectional denoising with parallel token updates, and a reproducible pipeline from pre-training to SFT and serving. The reported cross@1 outcomes—HumanEval 54.3, HumanEval+ 47.6, MBPP 47.2, MBPP+ 63.2, EvalPlus combination 55.4—place it aggressive with some 7B diffusion baselines (e.g., Dream-7B HumanEval 57.9) whereas utilizing fewer parameters. Inference latency is explicitly ruled by step depend and decoding knobs (STEPS
, entropy-style steering), which is operationally helpful for tuning throughput/high quality. The launch consists of weights on Hugging Face and a FastAPI server/CLI for native deployment.
Check out the Paper, GitHub Repo and Model on Hugging Face. Feel free to take a look at our GitHub Page for Tutorials, Codes and Notebooks. Also, be happy to comply with us on Twitter and don’t overlook to affix our 100k+ ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
The put up Salesforce AI Research Releases CoDA-1.7B: a Discrete-Diffusion Code Model with Bidirectional, Parallel Token Generation appeared first on MarkTechPost.