Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
bloom
Eval Results (legacy)
text-generation-inference
Instructions to use bigscience/bloomz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloomz with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloomz")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloomz") model = AutoModelForCausalLM.from_pretrained("bigscience/bloomz", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloomz with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloomz" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloomz", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloomz
- SGLang
How to use bigscience/bloomz 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 "bigscience/bloomz" \ --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": "bigscience/bloomz", "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 "bigscience/bloomz" \ --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": "bigscience/bloomz", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloomz with Docker Model Runner:
docker model run hf.co/bigscience/bloomz
Commit ·
8c53520
1
Parent(s): 4cb792b
Update README.md
Browse files
README.md
CHANGED
|
@@ -217,25 +217,25 @@ The performance may vary depending on the prompt. For BLOOMZ models, we recommen
|
|
| 217 |
|
| 218 |
## Model
|
| 219 |
|
| 220 |
-
- Architecture: Same as [bloom](https://huggingface.co/bigscience/bloom), also refer to the `config.json` file
|
| 221 |
-
- Finetuning steps: 498
|
| 222 |
-
- Finetuning tokens: 2.09 billion
|
| 223 |
-
- Finetuning layout: 72x pipeline parallel, 1x tensor parallel, 4x data parallel
|
| 224 |
-
- Precision: bfloat16
|
| 225 |
|
| 226 |
## Hardware
|
| 227 |
|
| 228 |
-
-
|
| 229 |
-
- 8 GPUs per node using NVLink 4 inter-gpu connects, 4 OmniPath links
|
| 230 |
-
- NCCL-communications network
|
| 231 |
-
|
| 232 |
|
| 233 |
## Software
|
| 234 |
|
| 235 |
-
- [Megatron-DeepSpeed](https://github.com/bigscience-workshop/Megatron-DeepSpeed)
|
| 236 |
-
- [DeepSpeed](https://github.com/microsoft/DeepSpeed)
|
| 237 |
-
- [PyTorch](https://github.com/pytorch/pytorch) (pytorch-1.11 w/ CUDA-11.5)
|
| 238 |
-
- [apex](https://github.com/NVIDIA/apex)
|
| 239 |
|
| 240 |
# Evaluation
|
| 241 |
|
|
|
|
| 217 |
|
| 218 |
## Model
|
| 219 |
|
| 220 |
+
- **Architecture:** Same as [bloom](https://huggingface.co/bigscience/bloom), also refer to the `config.json` file
|
| 221 |
+
- **Finetuning steps:** 498
|
| 222 |
+
- **Finetuning tokens:** 2.09 billion
|
| 223 |
+
- **Finetuning layout:** 72x pipeline parallel, 1x tensor parallel, 4x data parallel
|
| 224 |
+
- **Precision:** bfloat16
|
| 225 |
|
| 226 |
## Hardware
|
| 227 |
|
| 228 |
+
- **CPUs:** AMD CPUs with 512GB memory per node
|
| 229 |
+
- **GPUs:** 288 A100 80GB GPUs (36 nodes) with 8 GPUs per node using NVLink 4 inter-gpu connects, 4 OmniPath links
|
| 230 |
+
- **Communication:** NCCL-communications network with a fully dedicated subnet
|
| 231 |
+
|
| 232 |
|
| 233 |
## Software
|
| 234 |
|
| 235 |
+
- **Orchestration:** [Megatron-DeepSpeed](https://github.com/bigscience-workshop/Megatron-DeepSpeed)
|
| 236 |
+
- **Optimizer & parallelism:** [DeepSpeed](https://github.com/microsoft/DeepSpeed)
|
| 237 |
+
- **Neural networks:** [PyTorch](https://github.com/pytorch/pytorch) (pytorch-1.11 w/ CUDA-11.5)
|
| 238 |
+
- **FP16 if applicable:** [apex](https://github.com/NVIDIA/apex)
|
| 239 |
|
| 240 |
# Evaluation
|
| 241 |
|