Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

zjunlp
/
chatcell-small

Text Generation
Transformers
Safetensors
t5
text2text-generation
biology
single-cell
single-cell analysis
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use zjunlp/chatcell-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use zjunlp/chatcell-small with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="zjunlp/chatcell-small")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("zjunlp/chatcell-small")
    model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/chatcell-small")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use zjunlp/chatcell-small with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "zjunlp/chatcell-small"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "zjunlp/chatcell-small",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/zjunlp/chatcell-small
  • SGLang

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

    How to use zjunlp/chatcell-small with Docker Model Runner:

    docker model run hf.co/zjunlp/chatcell-small
chatcell-small
Ctrl+K
Ctrl+K
  • 4 contributors
History: 34 commits
Ningyu's picture
Ningyu
Update README.md
a676e3d verified about 2 years ago
  • figures
    Upload 7 files about 2 years ago
  • .gitattributes
    1.57 kB
    Upload 7 files about 2 years ago
  • README.md
    4.52 kB
    Update README.md about 2 years ago
  • added_tokens.json
    400 kB
    Upload 13 files over 2 years ago
  • config.json
    1.54 kB
    Upload 13 files over 2 years ago
  • generation_config.json
    112 Bytes
    Upload 13 files over 2 years ago
  • handler.py
    1.06 kB
    Update handler.py about 2 years ago
  • model.safetensors
    284 MB
    xet
    Upload 13 files over 2 years ago
  • special_tokens_map.json
    2.54 kB
    Upload 13 files over 2 years ago
  • spiece.model
    792 kB
    xet
    Upload 13 files over 2 years ago
  • tokenizer.json
    6.2 MB
    Upload 13 files over 2 years ago
  • tokenizer_config.json
    3.59 MB
    Upload 13 files over 2 years ago