Hugging Face Carbon-X: 14B Open Model That Reads DNA
Intro
What if you could paste a stretch of raw DNA into a chatbot and simply ask, "is this mutation dangerous?" On October 22, Hugging Face made that real. The company released Carbon-X, a 14.8-billion-parameter open language model that reads DNA sequences and discusses them in plain English — and you can download the weights today under the Apache 2.0 license.
Instead of another general-purpose assistant, Carbon-X is a specialist trained jointly on DNA and natural language, built with research labs in Beijing and Naples. Here is what it does, what the numbers actually say, and how you can run it.
Source: Hugging Face
What happened
Hugging Face built Carbon-X from Alibaba's open Qwen3-14B — covered in our comparison of open-weight giants — extending its vocabulary so DNA and text share one token stream, with no separate DNA encoder. A hybrid tokenizer keeps the standard text vocabulary and encodes DNA as non-overlapping 6-mers, so one DNA token covers six base pairs, per the official model card.
The training recipe is unusually transparent: 302 billion tokens of mid-training — about 55% raw DNA from mammals (humans included), other vertebrates, invertebrates, plants, fungi, protozoa and microbes — plus biology and English text, followed by supervised fine-tuning and reinforcement learning on DNA tasks. Partners: the Zhongguancun Academy in Beijing and the Telethon Institute of Genetics and Medicine with the University of Naples Federico II in Italy.
In practice, you paste a sequence into a chat and ask: is this variant benign or pathogenic, what organism group is this from, which regions control gene activity, what bases come next. The model answers in English, explains its reasoning, and auto-detects DNA runs of six or more bases. It handles on the order of 49,000 DNA letters at a time — slices of a genome, not the whole thing.
The benchmark claims are striking, and they are Hugging Face's own figures. Across five DNA benchmarks covering variant-effect prediction, sequence understanding and next-base prediction, Carbon-X averages 66.7% with thinking disabled — 27 points above the Qwen3-14B it started from, just behind OpenAI's GPT-6.1 Sol at 67.5%, and ahead of every other open model tested. It leads the whole field on coding-variant effects (74.9) and next-base prediction (39.4), per the model card's results table.
| Model | Average DNA benchmark score |
|---|---|
| Carbon-X (no reasoning) | 66.7 |
| GPT-6.1 Sol (max reasoning) | 67.5 |
| Claude Opus 5.5 (max reasoning) | 60.9 |
| Gemini 4 Argon (low reasoning) | 49.8 |
Scores reported by Hugging Face on its model card; not independently verified.
Source: Hugging Face
On cost, Hugging Face claims about 1/1,800 of GPT-6.1 Sol's inference cost per problem, and estimates that screening the 2.4 million uncertain variants in the US ClinVar database would cost roughly $300 versus $32,000–$4 million with frontier models. Treat both as company estimates until independently reproduced.
Two safety notes. First, the team deliberately excluded viruses infecting animals, plants and other complex organisms from training, and says the model tested unreliable on potentially misusable DNA-editing tasks — no better than ordinary software. Second, the model card is blunt: Carbon-X has not been clinically validated or wet-lab tested and must not guide medical decisions. It can miscount bases and invent functions when given too little context.
Why it matters
The most interesting number is not 66.7% — it is the refusal gap. Hugging Face notes that closed frontier models often decline legitimate genetics questions: Claude Opus 5.5's next-base score reportedly collapses from 17.7% to 1.1% at maximum reasoning as refusals rise. An open model that answers the question locally — without sending patient or proprietary sequences to anyone's cloud — fills a real hole. As Lewis Tunstall told Wired: "We've unlocked a new capability in language models, which is fundamentally about being able to chat with DNA."
A near-frontier genetics assistant that fits on a single 80 GB GPU in bfloat16 puts serious genomic tooling inside university labs and clinics that cannot afford frontier API bills. It also lands as one of Hugging Face's last big releases as an independent company: Nvidia agreed to acquire it for roughly $13 billion in September, with the deal expected to close in the first half of 2027.
The honest caveats: all headline numbers are self-reported, wet-lab validation has not happened, and two of the five benchmarks were built by Hugging Face itself. But as an open research artifact — weights, training recipe, and evaluation code — Carbon-X is exactly the kind of release the open-weights ecosystem exists to produce.
How to try it
You will need Transformers v5 or later — the DNA tokenizer is custom code. Hugging Face says the weights fit on one 80 GB GPU in bfloat16, and no GGUF build for llama.cpp was announced, so plan on a Transformers or vLLM setup (our VRAM sizing guide covers memory needs).
Loading it in Python follows the standard pattern, with trust_remote_code=True for the custom tokenizer:
pip install -U transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "HuggingFaceBio/Carbon-X"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="cuda"
)
messages = [{"role": "user", "content": (
"Reference: ATGGTGCATCTGACTCCTGAGGAGAAGTCTGCCGTTACTGCCCTGTGGGGCAAGG\n"
"Variant: ATGGTGCATCTGACTCCTGTGGAGAAGTCTGCCGTTACTGCCCTGTGGGGCAAGG\n\n"
"Is this variant likely to be benign or pathogenic? Explain your reasoning."
)}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True,
enable_thinking=False, return_tensors="pt", return_dict=True
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:],
skip_special_tokens=True))
Keep enable_thinking=False — the model was post-trained and evaluated that way; sampling defaults (temperature 0.6, top-p 0.95, top-k 20) come from generation_config.json.
For serving, vLLM works out of the box — see our vLLM serving guide if you have not set it up before:
pip install -U vllm
vllm serve HuggingFaceBio/Carbon-X --trust-remote-code
Then point any OpenAI-compatible client at http://localhost:8000/v1 with enable_thinking: False in the chat-template kwargs. There is also a hosted demo space if you want to poke at it before downloading ~30 GB of weights — and the repo ships a ready-made skill so Claude Code and Codex CLI can call the model as a tool.
Closing
Carbon-X will not replace a geneticist — Hugging Face says so itself. But a free, open model that turns DNA into a conversation, running entirely on your own hardware at a claimed 1/1,800th of frontier cost, is a genuinely new capability. Two things to watch: whether independent labs reproduce the benchmarks, and whether anyone runs the wet-lab experiments that turn predictions into biology.


Comments
Post a Comment