apple / CADD-Base-7B

huggingface.co
Total runs: 343
24-hour runs: 0
7-day runs: 70
30-day runs: 267
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

343
Total runs
0
24-hour runs
60
3-day runs
70
7-day runs
267
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: 34.3K
Run Growth: 15.8K
Growth Rate: 46.11%
Updated:March 01 2025
huggingface.co

Total runs: 21.8K
Run Growth: 2.0K
Growth Rate: 9.01%
Updated:September 03 2025
huggingface.co

Total runs: 8.8K
Run Growth: -83.9K
Growth Rate: -952.95%
Updated:February 25 2025
huggingface.co

Total runs: 6.9K
Run Growth: 6.7K
Growth Rate: 96.33%
Updated:July 26 2024
huggingface.co

Total runs: 5.6K
Run Growth: -1.3K
Growth Rate: -23.23%
Updated:March 01 2025
huggingface.co

Total runs: 3.3K
Run Growth: -2.6K
Growth Rate: -78.33%
Updated:December 19 2025
huggingface.co

Total runs: 2.2K
Run Growth: -3.6K
Growth Rate: -166.19%
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.9K
Run Growth: 1.1K
Growth Rate: 55.99%
Updated:March 01 2025
huggingface.co

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

Total runs: 446
Run Growth: 237
Growth Rate: 53.14%
Updated:March 01 2025
huggingface.co

Total runs: 349
Run Growth: 112
Growth Rate: 32.09%
Updated:March 01 2025
huggingface.co

Total runs: 188
Run Growth: 63
Growth Rate: 33.51%
Updated:October 10 2025
huggingface.co

Total runs: 187
Run Growth: 61
Growth Rate: 32.62%
Updated:September 03 2025
huggingface.co

Total runs: 147
Run Growth: -317
Growth Rate: -215.65%
Updated:June 14 2024
huggingface.co

Total runs: 98
Run Growth: -9
Growth Rate: -9.18%
Updated:March 01 2025
huggingface.co

Total runs: 92
Run Growth: -30
Growth Rate: -32.61%
Updated:October 10 2025
huggingface.co

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

Total runs: 74
Run Growth: -6
Growth Rate: -8.11%
Updated:August 02 2024
huggingface.co

Total runs: 70
Run Growth: 65
Growth Rate: 92.86%
Updated:April 15 2026
huggingface.co

Total runs: 67
Run Growth: -1.6K
Growth Rate: -2456.72%
Updated:March 01 2025
huggingface.co

Total runs: 54
Run Growth: 6
Growth Rate: 11.11%
Updated:March 01 2025
huggingface.co

Total runs: 45
Run Growth: -2
Growth Rate: -4.44%
Updated:October 10 2025
huggingface.co

Total runs: 45
Run Growth: -6
Growth Rate: -13.33%
Updated:April 15 2026
huggingface.co

Total runs: 37
Run Growth: 7
Growth Rate: 18.92%
Updated:October 10 2025
huggingface.co

Total runs: 34
Run Growth: 14
Growth Rate: 41.18%
Updated:September 03 2025