---
id: carbon-x
title: Carbon-X
type: project
trainers:
- SFTTrainer
- AsyncGRPOTrainer
recipes:
- carbon-x/Carbon-X
url: https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/index.html
markdown_url: https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/index.md
hub_tree: https://huggingface.co/spaces/trl-lib/trl-recipes/tree/main/recipes/carbon-x
---

# Carbon-X

- **Trainers:** `SFTTrainer`, `AsyncGRPOTrainer`
- **Interactive page:** https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/index.html
- **Space files:** https://huggingface.co/spaces/trl-lib/trl-recipes/tree/main/recipes/carbon-x
- **All TRL Recipes index:** https://trl-lib-trl-recipes.static.hf.space/llms.txt

## Models & Recipes

| Model | Trainers | Hardware | Platforms | Markdown | Interactive Page | Recipe YAML |
|---|---|---|---|---|---|---|
| `HuggingFaceBio/Carbon-X` | `SFTTrainer`, `AsyncGRPOTrainer` | H100, H200 | Local, HF Jobs | [index.md](https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/index.md) | [index.html](https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/index.html) | [recipe.yaml](https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/recipe.yaml) |

## Guide

[Carbon-X](https://huggingface.co/HuggingFaceBio/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](https://huggingface.co/spaces/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`](https://huggingface.co/HuggingFaceBio/Carbon-X-Base) | FineDNA `sft_mix` | [`Carbon-X-SFT`](https://huggingface.co/HuggingFaceBio/Carbon-X-SFT) |
| RL | `AsyncGRPOTrainer` | `Carbon-X-SFT` | FineDNA `rl_mix` | [`Carbon-X`](https://huggingface.co/HuggingFaceBio/Carbon-X) |

Both run on released TRL (1.16.0). The training code, rewards and configs are those of
[huggingface/carbon](https://github.com/huggingface/carbon/tree/4ca3ce3e5c55e5821d6068bac5c6e3806027a26f/carbon-x),
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/](https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/index.md) |
