Text Generation
Transformers
Safetensors
t5
text2text-generation
biology
single-cell
single-cell analysis
text-generation-inference
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("zjunlp/chatcell-small") model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/chatcell-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,8 +37,8 @@ tags:
|
|
| 37 |
|
| 38 |
- [๐ ๏ธ Quickstart](#2)
|
| 39 |
- [๐งฌ Single-cell Analysis Tasks](#3)
|
| 40 |
-
- [
|
| 41 |
-
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
@@ -98,8 +98,13 @@ The drug sensitivity prediction task aims to predict the response of different c
|
|
| 98 |
<img src="./figures/example4.jpg" alt="image" width=80%>
|
| 99 |
</p>
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
-
<h2 id="
|
| 103 |
|
| 104 |
```
|
| 105 |
@article{fang2024chatcell,
|
|
|
|
| 37 |
|
| 38 |
- [๐ ๏ธ Quickstart](#2)
|
| 39 |
- [๐งฌ Single-cell Analysis Tasks](#3)
|
| 40 |
+
- [โจ Acknowledgements](#4)
|
| 41 |
+
- [๐ Cite](#5)
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
|
|
| 98 |
<img src="./figures/example4.jpg" alt="image" width=80%>
|
| 99 |
</p>
|
| 100 |
|
| 101 |
+
<h2 id="4">๐ โจ Acknowledgements</h2>
|
| 102 |
+
|
| 103 |
+
Special thanks to the authors of [Cell2Sentence: Teaching Large Language Models the Language of Biology](https://github.com/vandijklab/cell2sentence-ft) and [Representing cells as sentences enables natural-language processing for single-cell transcriptomics
|
| 104 |
+
](https://github.com/rahuldhodapkar/cell2sentence) for their inspiring work.
|
| 105 |
+
|
| 106 |
|
| 107 |
+
<h2 id="5">๐ Cite</h2>
|
| 108 |
|
| 109 |
```
|
| 110 |
@article{fang2024chatcell,
|