Text Generation
Transformers
PyTorch
TensorBoard
bloom
Generated from Trainer
text-generation-inference
Instructions to use antphb/DS-Chatbox-bigscience-bloom-560m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use antphb/DS-Chatbox-bigscience-bloom-560m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="antphb/DS-Chatbox-bigscience-bloom-560m")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("antphb/DS-Chatbox-bigscience-bloom-560m") model = AutoModelForCausalLM.from_pretrained("antphb/DS-Chatbox-bigscience-bloom-560m") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use antphb/DS-Chatbox-bigscience-bloom-560m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "antphb/DS-Chatbox-bigscience-bloom-560m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "antphb/DS-Chatbox-bigscience-bloom-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/antphb/DS-Chatbox-bigscience-bloom-560m
- SGLang
How to use antphb/DS-Chatbox-bigscience-bloom-560m 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 "antphb/DS-Chatbox-bigscience-bloom-560m" \ --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": "antphb/DS-Chatbox-bigscience-bloom-560m", "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 "antphb/DS-Chatbox-bigscience-bloom-560m" \ --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": "antphb/DS-Chatbox-bigscience-bloom-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use antphb/DS-Chatbox-bigscience-bloom-560m with Docker Model Runner:
docker model run hf.co/antphb/DS-Chatbox-bigscience-bloom-560m
Training in progress, step 2000
Browse files
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2236957537
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9e900ae0780954ab40e95f96ed5fdd3eaa466eff7f450e89ad565fb8b0ce17d
|
| 3 |
size 2236957537
|
runs/Jun17_12-27-08_542783dbb600/events.out.tfevents.1687005447.542783dbb600.28.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f96f73bea02c364156efcaca123f548d376dd2e1204e0b1dbb13719464b40bf
|
| 3 |
+
size 5604
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17a208233d2ee8d8c83b23bc214df737c44806a1919f444e89b31e586cd956ba
|
| 3 |
+
size 14500471
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3963
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:151bc47763a8103f0c7e671cb4ad22d7a65a3881667fcd31559edb76b1ce4d66
|
| 3 |
size 3963
|