Instructions to use HuggingFaceBio/Carbon-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceBio/Carbon-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HuggingFaceBio/Carbon-3B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HuggingFaceBio/Carbon-3B") model = AutoModelForCausalLM.from_pretrained("HuggingFaceBio/Carbon-3B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HuggingFaceBio/Carbon-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuggingFaceBio/Carbon-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceBio/Carbon-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HuggingFaceBio/Carbon-3B
- SGLang
How to use HuggingFaceBio/Carbon-3B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "HuggingFaceBio/Carbon-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceBio/Carbon-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "HuggingFaceBio/Carbon-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceBio/Carbon-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HuggingFaceBio/Carbon-3B with Docker Model Runner:
docker model run hf.co/HuggingFaceBio/Carbon-3B
Commit History
14 days ago
-
Point the tech report badge at bioRxiv
Verified signatureCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>df3bfbe -
Fix links to the tech report and Carbon evals
Verified signatureThe Carbon GitHub repo moved its code into a `carbon/` directory, so the `evaluation/` links 404 and `tech-report.pdf` is gone. This points the eval links at `carbon/evaluation/` and the tech report at bioRxiv. It also fixes the Carbon-8B and Carbon-500M links, which pointed at the org page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>e9e1a97
21 days ago
-
Drop the `dna` language code, spell out the Telethon Institute of Genetics and Medicine and add partner logos
Verified signature07c88a2
-
Update README.md
Verified signature96ff92c
-
Update README.md
Verified signature7b746cf
-
Update README.md
Verified signature7242d57
-
Update README.md
Verified signaturef801a61 -
Update README.md
Verified signatureffed212 -
fix tata and syn
Verified signaturea8e4fca -
Update README.md
Verified signature04ca264 -
Update README.md
Verified signature593325c -
Update README.md
Verified signature2d8bb5d -
Update README.md
Verified signature2966545 -
Update README.md
Verified signaturec661e26 -
Add FNS code
Verified signature5c02535 -
Update README.md
Verified signaturef748d2a
-
model card: fix YaRN context 384 kbp → 393 kbp (65,536 tokens × 6 bp)
Verified signature46c2c30
-
docs: fix dtype, remove trust_remote_code for model, clean up internal comments
Verified signaturedeb09a9
-
Update README.md
Verified signaturebc2257f -
Update README.md
Verified signaturefabe9ba -
Update README.md
Verified signature9a20dad
-
model card: fix skip_special_tokens decode (bug fixed), remove wrong left-padding TODO
Verified signatureceed708 -
Update model card namespace references (#3)
- Update model card namespace references (4a06cee42649739cf7b177f9aa48976f448e6533)1e17783 -
Update README.md (#2)
- Update README.md (7074e5523216e156065f87ddeb964f060aada036)5f76c0a
-
Update README.md
Verified signatureb2b5137 -
Create README.md
Verified signature3743563