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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloomz") model = AutoModelForCausalLM.from_pretrained("bigscience/bloomz") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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 ·
26b28df
1
Parent(s): 8d8a93f
Update README.md
Browse files
README.md
CHANGED
|
@@ -669,7 +669,7 @@ model-index:
|
|
| 669 |
- **Repository:** [bigscience-workshop/xmtf](https://github.com/bigscience-workshop/xmtf)
|
| 670 |
- **Paper:** [TODO]
|
| 671 |
- **Point of Contact:** [Niklas Muennighoff](mailto:niklas@hf.co)
|
| 672 |
-
- **Languages:** Refer to [
|
| 673 |
- **BLOOMZ & mT0 Model Family:**
|
| 674 |
|
| 675 |
<table>
|
|
@@ -741,11 +741,11 @@ model-index:
|
|
| 741 |
<th colspan="12">Original pretrained checkpoints. Not recommended.</th>
|
| 742 |
<tr>
|
| 743 |
<td>Pretrained Model</td>
|
| 744 |
-
<td><a href=https://huggingface.co/
|
| 745 |
-
<td><a href=https://huggingface.co/
|
| 746 |
-
<td><a href=https://huggingface.co/
|
| 747 |
-
<td><a href=https://huggingface.co/
|
| 748 |
-
<td><a href=https://huggingface.co/
|
| 749 |
<td><a href=https://huggingface.co/bigscience/bloom-560m>bloom-560m</a></td>
|
| 750 |
<td><a href=https://huggingface.co/bigscience/bloom-1b1>bloom-1b1</a></td>
|
| 751 |
<td><a href=https://huggingface.co/bigscience/bloom-1b7>bloom-1b7</a></td>
|
|
|
|
| 669 |
- **Repository:** [bigscience-workshop/xmtf](https://github.com/bigscience-workshop/xmtf)
|
| 670 |
- **Paper:** [TODO]
|
| 671 |
- **Point of Contact:** [Niklas Muennighoff](mailto:niklas@hf.co)
|
| 672 |
+
- **Languages:** Refer to [bloom](https://huggingface.co/bigscience/bloom) for pretraining & [xP3](https://huggingface.co/bigscience/xP3) for finetuning language proportions. It understands both pretraining & finetuning languages.
|
| 673 |
- **BLOOMZ & mT0 Model Family:**
|
| 674 |
|
| 675 |
<table>
|
|
|
|
| 741 |
<th colspan="12">Original pretrained checkpoints. Not recommended.</th>
|
| 742 |
<tr>
|
| 743 |
<td>Pretrained Model</td>
|
| 744 |
+
<td><a href=https://huggingface.co/google/mt5-base>mt5-base</a></td>
|
| 745 |
+
<td><a href=https://huggingface.co/google/mt5-small>mt5-small</a></td>
|
| 746 |
+
<td><a href=https://huggingface.co/google/mt5-large>mt5-large</a></td>
|
| 747 |
+
<td><a href=https://huggingface.co/google/mt5-xl>mt5-xl</a></td>
|
| 748 |
+
<td><a href=https://huggingface.co/google/mt5-xxl>mt5-xxl</a></td>
|
| 749 |
<td><a href=https://huggingface.co/bigscience/bloom-560m>bloom-560m</a></td>
|
| 750 |
<td><a href=https://huggingface.co/bigscience/bloom-1b1>bloom-1b1</a></td>
|
| 751 |
<td><a href=https://huggingface.co/bigscience/bloom-1b7>bloom-1b7</a></td>
|