Downloads · 30 days
265
16% of all-time downloads
pankajpandey-dev/Carbon-3B-GGUF
Carbon-3B-GGUF is a text generation model from pankajpandey-dev. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
GGUF quantizations of HuggingFaceBio/Carbon-3B — a generative DNA foundation model — for efficient inference with llama.cpp.
Downloads · 30 days
265
16% of all-time downloads
All-time downloads
1.7K
Public
Repo size
14.5 GB
Likes
4
Trending 1
Click a slice to open those files.
.gguf14.5 GB · 100%
From the Hugging Face model README
GGUF quantizations of HuggingFaceBio/Carbon-3B — a generative DNA foundation model — for efficient inference with llama.cpp.
Carbon-3B is a 3B-parameter autoregressive genomic model that uses a hybrid tokenizer (6-mer chunks for DNA inside <dna> tags, BPE for English text). It matches the performance of Evo2-7B while running over 250× faster at inference.
| File | Quant Method | Size | Use Case |
|---|---|---|---|
| carbon-3b-Q2_K.gguf | Q2_K | 1.4 GB | Smallest — for very constrained edge devices |
| carbon-3b-Q3_K_M.gguf | Q3_K_M | 1.8 GB | Small with reasonable quality |
| carbon-3b-Q4_K_M.gguf | Q4_K_M | 2.1 GB | ⭐ Recommended — best size/quality balance |
| carbon-3b-Q5_K_M.gguf | Q5_K_M | 2.4 GB | Higher quality |
| carbon-3b-Q6_K.gguf | Q6_K | 2.7 GB | Very close to f16 quality |
| carbon-3b-Q8_0.gguf | Q8_0 | 3.5 GB | Highest quality, near-lossless |
You must use a recent build of llama.cpp that includes PR #23410 — this added support for Carbon's custom HybridDNATokenizer. Any build from master after that PR works.
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp && cmake -B build && cmake --build build -j
huggingface-cli download pankajpandey-dev/Carbon-3B-GGUF carbon-3b-Q4_K_M.gguf --local-dir .
Wrap DNA sequences in <dna> tags so the tokenizer switches into 6-mer mode:
./build/bin/llama-completion -m carbon-3b-Q4_K_M.gguf \
-p '<dna>ATGCGCTAGCTACGATCGATCGTAGCTAGCTAGCTAGCTACG' \
-n 64 --temp 0 -no-cnv
./build/bin/llama-completion -m carbon-3b-Q4_K_M.gguf \
-p '<vertebrate_mammalian><protein_coding_region><dna>ATGCGCTAG' \
-n 64 --temp 0 -no-cnv
./build/bin/llama-completion -m carbon-3b-Q4_K_M.gguf \
-c 65536 --rope-scaling yarn --rope-scale 4 --yarn-orig-ctx 32768 \
-p '<dna>...' -n 64 --temp 0 -no-cnv
<dna> tag will be BPE-tokenized as English text, producing meaningless results.[ATCG] characters. Any other letters trigger an <oov> token.fns revision is not supported. This GGUF is converted from the main revision only. The fns branch uses a factorized nucleotide supervision head that requires the Python transformers path.These quants were produced from the original bf16 HuggingFaceBio/Carbon-3B safetensors using convert_hf_to_gguf.py followed by llama-quantize from llama.cpp (build b9330). Standard K-quants and Q8_0 were used — no imatrix calibration was applied, as standard text calibration corpora are not appropriate for DNA-pretrained models.
Apache 2.0 — inherited from the source model.
Part of my GGUF Quantizations collection — making open models accessible across hardware tiers.