Views
No views yet
| Property | Value |
|---|---|
| Architecture | DiT (Diffusion Transformer) |
| Parameters | ~170M |
| Transformer Blocks | 12 |
| Attention Heads | 12 |
| Hidden Dimension | 768 |
| Time-Conditioning Dimension | 128 |
| Vocabulary Size | 50,257 (GPT-2 BPE tokenizer) |
| Vocabulary Embedding | 50,304 (padded to nearest multiple of 128) |
| Max Sequence Length | 512 |
| Precision | float32 (trained with bf16 mixed precision) |
| Checkpoint Format | TorchScript (traced) |
| Forward Process | Uniform ($\alpha_t = 1 - t$, $\beta_t = t$) |
| Training Data | OpenWebText (262B tokens) |
| Method | Training Tokens | 16 steps | 32 steps | 64 steps | 128 steps |
|---|---|---|---|---|---|
| MDLM | 262B | 1432.8 | 553.7 | 301.6 | 210.5 |
| GIDD | 262B | 702.0 | 398.9 | 270.8 | 249.8 |
| SEDD | 682B | 614.3 | 262.7 | 182.1 | 178.3 |
| Neural CTMC -- Euler (ours) | 262B | 578.3 | 264.5 | 189.7 | 183.6 |
| Neural CTMC -- $\tau$-leaping (ours) | 262B | 584.5 | 258.8 | 199.9 | 184.8 |
pip install torch transformers1from demo_infer import CTMCHFModel
2
3model = CTMCHFModel.from_pretrained(
4 "owt_uniform.pt",
5 device="cuda",
6 tokenizer_name="gpt2",
7)
8
9texts = model.generate(
10 n_samples=3, # number of samples to generate
11 n_steps=128, # Euler discretization steps
12 T=1.0, # diffusion time horizon
13)
14
15for i, text in enumerate(texts):
16 print(f"[Sample {i+1}]")
17 print(text)1# Generate 5 samples with 128 Euler steps on GPU 0
2GPU=0 bash run.sh1python demo_infer.py \
2 --checkpoint owt_uniform.pt \
3 --n_samples 5 \
4 --n_steps 128 \
5 --T 1.0 \
6 --device cuda \
7 --output output/samples.txtn_steps Euler steps: at each step, the model predicts per-token exit rates $\lambda^\theta_t$ and a jump distribution $r^\theta_t$ over the vocabulary, then stochastically updates tokens via the CTMC reverse process..
├── README.md # This file
├── owt_uniform.pt # Model checkpoint (~969 MB)
├── demo_infer.py # Inference script with CTMCHFModel class
└── run.sh # Convenience launch script1@article{li2025neuralctmc,
2 title={Neural Continuous-Time Markov Chain: Discrete Diffusion via Decoupled Jump Timing and Direction},
3 author={Jingyuan Li and Xiaoyi Jiang and Fukang Wen and Wei Liu and Renqian Luo and Yi Zhu and Zuoqiang Shi and Pipi Hu},
4 year={2025}
5}