Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

HuggingFaceBio
/
Carbon-500M

Text Generation
Transformers
Safetensors
Upper Grand Valley Dani
llama
genomic
speculative-decoding
text-generation-inference
Model card Files Files and versions
xet
Community
4

Instructions to use HuggingFaceBio/Carbon-500M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use HuggingFaceBio/Carbon-500M with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="HuggingFaceBio/Carbon-500M")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("HuggingFaceBio/Carbon-500M")
    model = AutoModelForCausalLM.from_pretrained("HuggingFaceBio/Carbon-500M", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use HuggingFaceBio/Carbon-500M with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "HuggingFaceBio/Carbon-500M"
    # 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-500M",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/HuggingFaceBio/Carbon-500M
  • SGLang

    How to use HuggingFaceBio/Carbon-500M 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-500M" \
        --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-500M",
    		"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-500M" \
            --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-500M",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use HuggingFaceBio/Carbon-500M with Docker Model Runner:

    docker model run hf.co/HuggingFaceBio/Carbon-500M
Carbon-500M
1.03 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 35 commits
kashif's picture
kashif HF Staff
Support return_assistant_tokens_mask on slow HybridDNATokenizer for completion-only SFT (apply_chat_template token-boundary mask override)
9796b75 verified 8 days ago
  • figures
    Upload figures/carbon-500m-banner.png 3 months ago
  • .gitattributes
    1.64 kB
    Upload figures/carbon-500m-banner.png 3 months ago
  • README.md
    8.13 kB
    Update README.md about 2 months ago
  • added_tokens.json
    707 Bytes
    Promote hybrid step-286000 to main (300B CE + 300B FNS, total 600B tokens) 3 months ago
  • config.json
    668 Bytes
    revert: restore LlamaForCausalLM in config.json 3 months ago
  • dna_config.json
    160 Bytes
    tokenizer: add auto_dna_tags to dna_config.json 3 months ago
  • generation_config.json
    115 Bytes
    fix: correct bos/eos/pad token IDs in generation_config (eos=pad=151643, bos=null) 3 months ago
  • model.safetensors
    1.02 GB
    xet
    Promote hybrid step-286000 to main (300B CE + 300B FNS, total 600B tokens) 3 months ago
  • special_tokens_map.json
    616 Bytes
    Promote hybrid step-286000 to main (300B CE + 300B FNS, total 600B tokens) 3 months ago
  • tokenizer.py
    26.6 kB
    Support return_assistant_tokens_mask on slow HybridDNATokenizer for completion-only SFT (apply_chat_template token-boundary mask override) 8 days ago
  • tokenizer_config.json
    5.55 kB
    tokenizer: fix auto_dna_tags None -> False 3 months ago