DiBO-TFBind10
Final task-specific DiBO model for
TFBind10-Exact-v0, released with
Training Diffusion Language Models for Black-Box Optimization
(ICML 2026 Spotlight). See also the
Hugging Face paper page and the
DiBO code repository.
This model completed domain adaptation (DA), supervised fine-tuning (SFT),
and reinforcement learning (RL).
Available model formats
This repository provides the same final task-specific DiBO model in two formats.
- Original PyTorch checkpoint.
dibo_tfbind10_final.pt is the canonical
paper-faithful checkpoint produced by the DiBO training pipeline. It stores
the state dictionary under the model key and is
loaded through the DiBO codebase on top of the pinned LLaDA base revision.
- Transformers/safetensors export. The root-level config, tokenizer,
custom modeling code, and sharded safetensors files are a validated
convenience export derived deterministically from the original checkpoint.
They load directly with
AutoModel.from_pretrained(...).
The safetensors model was not trained separately. The LLaDA base weights are
not duplicated in this repository.
A. Load the standard Transformers export
1from transformers import AutoModel, AutoTokenizer
2
3repo_id = "zpointsun/DiBO-TFBind10"
4tokenizer = AutoTokenizer.from_pretrained(
5 repo_id,
6 revision="v1.1.7",
7 trust_remote_code=True,
8)
9model = AutoModel.from_pretrained(
10 repo_id,
11 revision="v1.1.7",
12 trust_remote_code=True,
13 use_safetensors=True,
14 torch_dtype="auto",
15)
16model.eval()
The packaged tokenizer already includes the four DiBO delimiter tokens. Do not
add them or resize embeddings again after loading this export.
The tokenizer configuration retains LLaDA's chat_template metadata, but DiBO
does not call apply_chat_template during training or evaluation. DiBO directly
tokenizes its rendered unified prompt-response corpus with the delimiter tokens
above; do not insert chat headers when reproducing the released evaluation path.
B. Download and load the original checkpoint
The original artifact uses the released DiBO loader, which initializes the
pinned LLaDA base, adds the four delimiter tokens, resizes the input embedding,
and strictly loads checkpoint["model"].
1hf download zpointsun/DiBO-TFBind10 dibo_tfbind10_final.pt \
2 --revision v1.1.7 --local-dir checkpoints/dibo-tfbind10
1import torch
2from huggingface_hub import hf_hub_download
3from src.model.dllm import DEFAULT_MODEL_ID, LLADA_MODEL_REVISION, load_model_and_tokenizer
4
5assert DEFAULT_MODEL_ID == "GSAI-ML/LLaDA-8B-Instruct"
6assert LLADA_MODEL_REVISION == "08b83a6feb34df1a6011b80c3c00c7563e963b07"
7checkpoint_path = hf_hub_download(
8 "zpointsun/DiBO-TFBind10",
9 filename="dibo_tfbind10_final.pt",
10 revision="v1.1.7",
11)
12model, tokenizer = load_model_and_tokenizer(DEFAULT_MODEL_ID, device="cuda")
13checkpoint = torch.load(checkpoint_path, map_location="cuda")
14model.load_state_dict(checkpoint["model"], strict=True)
15model.eval()
C. Evaluate either format
From a checkout of the released DiBO code and its oracle environment:
1# Standard Transformers export
2python eval.py --tasks TFBind10-Exact-v0 \
3 --model_name_or_path zpointsun/DiBO-TFBind10 --model_revision v1.1.7 \
4 --seeds <SEEDS> --max_attempts 1000
5
6# Canonical local .pt checkpoint
7python eval.py --tasks TFBind10-Exact-v0 \
8 --checkpoint_path checkpoints/dibo-tfbind10/dibo_tfbind10_final.pt \
9 --seeds <SEEDS> --max_attempts 1000
Both choices share the same downstream DiBO evaluation path. Direct oracle
evaluation requires the Design-Bench data cache and task dependencies described
in the
DiBO repository.
For the exact Design-Bench snapshot used in the DiBO experiments, see
DiBO-DesignBench-Snapshot.
Limitations
Practical inference requires a CUDA-capable PyTorch environment. These
task-specific models are designed for DiBO's masked-response generation and
evaluation workflow; this release does not claim generic text-generation
pipeline support. Loading a released final model is for evaluation or use and
does not reproduce the DA/SFT/RL training process.
Other DiBO task models
Citation
If you find DiBO helpful, please cite:
1@article{sun2026training,
2 title={Training diffusion language models for black-box optimization},
3 author={Sun, Zipeng and Chen, Can and Yuan, Ye and Wu, Haolun and Gu, Jiayao and Pal, Christopher and Liu, Xue},
4 journal={arXiv preprint arXiv:2603.17919},
5 year={2026}
6}