Instructions to use cesun/cbllm-generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cesun/cbllm-generation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cesun/cbllm-generation")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cesun/cbllm-generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cesun/cbllm-generation with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cesun/cbllm-generation" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cesun/cbllm-generation", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cesun/cbllm-generation
- SGLang
How to use cesun/cbllm-generation 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 "cesun/cbllm-generation" \ --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": "cesun/cbllm-generation", "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 "cesun/cbllm-generation" \ --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": "cesun/cbllm-generation", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cesun/cbllm-generation with Docker Model Runner:
docker model run hf.co/cesun/cbllm-generation
upload classifiers
Browse files- SetFit_sst2_classifier.pt +3 -0
- ag_news_classifier.pt +3 -0
- dbpedia_14_classifier.pt +3 -0
- yelp_polarity_classifier.pt +3 -0
SetFit_sst2_classifier.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6480dde79950947a767991d88c5ba152588ec28e27ec142207a7029bb3bbb68
|
| 3 |
+
size 499064821
|
ag_news_classifier.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad75eda2e47265729e3fa84308207b44d3bc04a32b67f2cb19393a3751630345
|
| 3 |
+
size 499065017
|
dbpedia_14_classifier.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05bd71d0591963273a09c5d75a3ebc6558c6445ba72269c2955d687c72bda391
|
| 3 |
+
size 499070822
|
yelp_polarity_classifier.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55845c643904be55880b4eb1b6997c0779e0d219441190647100bd9ad12190b8
|
| 3 |
+
size 499065235
|