TRL /Recipes

Carbon-X

Carbon-X is an open 14B model for DNA understanding and generation from Hugging Face Bio. It reads raw DNA inside an ordinary chat and answers in English: whether a variant is benign or pathogenic, what a region does, which organism a sequence comes from, and the next bases of a sequence. Release blog post: HuggingFaceBio/Carbon-X-Release.

Models

Guide

Carbon-X is an open 14B model for DNA understanding and generation from Hugging Face Bio. It reads raw DNA inside an ordinary chat and answers in English: whether a variant is benign or pathogenic, what a region does, which organism a sequence comes from, and the next bases of a sequence. Release blog post: HuggingFaceBio/Carbon-X-Release.

It starts from Qwen3-14B with a hybrid tokenizer (BPE for text, non-overlapping 6-mers for DNA), is midtrained on 302B tokens of DNA and text with Megatron-LM, then post-trained with TRL. This recipe covers the TRL part:

Stage Trainer Starts from Data Result
SFT SFTTrainer Carbon-X-Base FineDNA sft_mix Carbon-X-SFT
RL AsyncGRPOTrainer Carbon-X-SFT FineDNA rl_mix Carbon-X

Both run on released TRL (1.16.0). The training code, rewards and configs are those of huggingface/carbon, pinned to a commit: the launchers here fetch it, install its uv.lock and run its scripts unchanged.

Model Recipe
HuggingFaceBio/Carbon-X Carbon-X/