apple / CADD-Base-7B

huggingface.co
Total runs: 211
24-hour runs: 130
7-day runs: 130
30-day runs: 130
Model's Last Updated: April 25 2026
text-generation

Introduction of CADD-Base-7B

Model Details of CADD-Base-7B

CADD-Base-7B

CADD-Base-7B is a masked diffusion language model for code generation, augmented with Continuously Augmented Discrete Diffusion (CADD) --- a continuous flow-matching signal that guides the discrete denoising process.

Key idea: At each diffusion step, a continuous embedding z_continuous is added to masked-token embeddings, following a linear flow-matching trajectory from noise to clean embeddings. This is orthogonal to the discrete unmasking strategy --- any MDM algorithm can be combined with CADD.

Usage
import torch
from transformers import AutoModel, AutoTokenizer

model_path = "apple/CADD-Base-7B"
model = AutoModel.from_pretrained(model_path, torch_dtype=torch.bfloat16, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = model.to("cuda").eval()

prompt = "def fibonacci(n):\n"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to("cuda")

output = model.diffusion_generate(
    input_ids,
    max_new_tokens=512,
    steps=512,
    temperature=0.1,
    alg="entropy",
    alg_temp=0.0,
    use_cadd=True,
    cadd_sampling_mode="weighted",
)

print(tokenizer.decode(output[0], skip_special_tokens=True))
CADD Sampling Parameters
Parameter Type Default Description
use_cadd bool True Enable CADD continuous augmentation
cadd_sampling_mode str "argmax" How to estimate z_0 from logits: "weighted" or "argmax"
alg str "origin" Unmasking strategy: "entropy" , "origin" , "maskgit_plus" , "topk_margin"
temperature float 1.0 Sampling temperature for token prediction
steps int 512 Number of diffusion steps
More details:
Citation
@article{zheng2025continuously,
  title={Continuously augmented discrete diffusion model for categorical generative modeling},
  author={Zheng, Huangjie and Gong, Shansan and Zhang, Ruixiang and Chen, Tianrong and Gu, Jiatao and Zhou, Mingyuan and Jaitly, Navdeep and Zhang, Yizhe},
  journal={arXiv preprint arXiv:2510.01329},
  year={2025}
}
Acknowledgment

To power this HuggingFace model release, we build upon and improve DiffuCoder , reusing Dream 's modeling architecture and generation utils.

Runs of apple CADD-Base-7B on huggingface.co

211
Total runs
130
24-hour runs
130
3-day runs
130
7-day runs
130
30-day runs

More Information About CADD-Base-7B huggingface.co Model

More CADD-Base-7B license Visit here:

https://choosealicense.com/licenses/apple-amlr

CADD-Base-7B huggingface.co

CADD-Base-7B huggingface.co is an AI model on huggingface.co that provides CADD-Base-7B's model effect (), which can be used instantly with this apple CADD-Base-7B model. huggingface.co supports a free trial of the CADD-Base-7B model, and also provides paid use of the CADD-Base-7B. Support call CADD-Base-7B model through api, including Node.js, Python, http.

CADD-Base-7B huggingface.co Url

https://huggingface.co/apple/CADD-Base-7B

apple CADD-Base-7B online free

CADD-Base-7B huggingface.co is an online trial and call api platform, which integrates CADD-Base-7B's modeling effects, including api services, and provides a free online trial of CADD-Base-7B, you can try CADD-Base-7B online for free by clicking the link below.

apple CADD-Base-7B online free url in huggingface.co:

https://huggingface.co/apple/CADD-Base-7B

CADD-Base-7B install

CADD-Base-7B is an open source model from GitHub that offers a free installation service, and any user can find CADD-Base-7B on GitHub to install. At the same time, huggingface.co provides the effect of CADD-Base-7B install, users can directly use CADD-Base-7B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

CADD-Base-7B install url in huggingface.co:

https://huggingface.co/apple/CADD-Base-7B

Url of CADD-Base-7B

CADD-Base-7B huggingface.co Url

Provider of CADD-Base-7B huggingface.co

apple
ORGANIZATIONS

Other API from apple

huggingface.co

Total runs: 2.4M
Run Growth: -497.9K
Growth Rate: -21.12%
Updated:February 25 2025
huggingface.co

Total runs: 25.2K
Run Growth: 756
Growth Rate: 3.00%
Updated:March 01 2025
huggingface.co

Total runs: 7.9K
Run Growth: -4.9K
Growth Rate: -62.31%
Updated:December 19 2025
huggingface.co

Total runs: 7.6K
Run Growth: -6.8K
Growth Rate: -90.08%
Updated:September 03 2025
huggingface.co

Total runs: 2.8K
Run Growth: 811
Growth Rate: 29.29%
Updated:March 01 2025
huggingface.co

Total runs: 2.0K
Run Growth: -755
Growth Rate: -38.50%
Updated:September 03 2025
huggingface.co

Total runs: 1.8K
Run Growth: 266
Growth Rate: 14.60%
Updated:September 03 2025
huggingface.co

Total runs: 1.8K
Run Growth: -1.2K
Growth Rate: -66.98%
Updated:March 01 2025
huggingface.co

Total runs: 549
Run Growth: 51
Growth Rate: 9.22%
Updated:March 01 2025
huggingface.co

Total runs: 472
Run Growth: 64
Growth Rate: 13.79%
Updated:March 01 2025
huggingface.co

Total runs: 419
Run Growth: 74
Growth Rate: 17.75%
Updated:June 14 2024
huggingface.co

Total runs: 406
Run Growth: -155
Growth Rate: -36.21%
Updated:March 01 2025
huggingface.co

Total runs: 249
Run Growth: 194
Growth Rate: 78.23%
Updated:September 03 2025
huggingface.co

Total runs: 150
Run Growth: 37
Growth Rate: 24.03%
Updated:October 10 2025
huggingface.co

Total runs: 150
Run Growth: 36
Growth Rate: 24.32%
Updated:July 26 2024
huggingface.co

Total runs: 130
Run Growth: 61
Growth Rate: 47.29%
Updated:March 01 2025
huggingface.co

Total runs: 127
Run Growth: 56
Growth Rate: 45.53%
Updated:September 03 2025
huggingface.co

Total runs: 105
Run Growth: -1
Growth Rate: -0.76%
Updated:March 01 2025
huggingface.co

Total runs: 83
Run Growth: -55
Growth Rate: -66.27%
Updated:September 03 2025
huggingface.co

Total runs: 77
Run Growth: 73
Growth Rate: 94.81%
Updated:April 15 2026
huggingface.co

Total runs: 69
Run Growth: 53
Growth Rate: 77.94%
Updated:March 01 2025
huggingface.co

Total runs: 59
Run Growth: 55
Growth Rate: 93.22%
Updated:April 15 2026
huggingface.co

Total runs: 58
Run Growth: 24
Growth Rate: 42.11%
Updated:October 10 2025
huggingface.co

Total runs: 56
Run Growth: -23
Growth Rate: -37.10%
Updated:August 02 2024