Instructions to use bigscience/bloom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bigscience/bloom", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use bigscience/bloom with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom
- SGLang
How to use bigscience/bloom 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/bloom" \ --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/bloom", "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/bloom" \ --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/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom with Docker Model Runner:
docker model run hf.co/bigscience/bloom
Commit ·
dc534f6
1
Parent(s): 9d151d5
Adding blurb about mistaking sentience. (#12)
Browse files- Adding blurb about mistaking sentience. (64cee78cfab83e9f9a6a4ba68e90ab56eba707bf)
- Adding sentience blurb. (09a4f1c6d307f8a080636b355b20da067d06e243)
Co-authored-by: Margaret Mitchell <meg@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -341,7 +341,7 @@ See the [BLOOM License](https://huggingface.co/spaces/bigscience/license), Attac
|
|
| 341 |
|
| 342 |
#### Out-of-scope Uses
|
| 343 |
|
| 344 |
-
Using the model in [high-stakes](#high-stakes) settings is out of scope for this model. The model is not designed for [critical decisions](#critical-decisions) nor uses with any material consequences on an individual's livelihood or wellbeing. The model outputs content that appears factual but
|
| 345 |
|
| 346 |
Out-of-scope Uses Include:
|
| 347 |
|
|
@@ -433,6 +433,8 @@ Model may:
|
|
| 433 |
|
| 434 |
- Generate irrelevant or repetitive outputs
|
| 435 |
|
|
|
|
|
|
|
| 436 |
</details>
|
| 437 |
|
| 438 |
---
|
|
|
|
| 341 |
|
| 342 |
#### Out-of-scope Uses
|
| 343 |
|
| 344 |
+
Using the model in [high-stakes](#high-stakes) settings is out of scope for this model. The model is not designed for [critical decisions](#critical-decisions) nor uses with any material consequences on an individual's livelihood or wellbeing. The model outputs content that appears factual but may not be correct.
|
| 345 |
|
| 346 |
Out-of-scope Uses Include:
|
| 347 |
|
|
|
|
| 433 |
|
| 434 |
- Generate irrelevant or repetitive outputs
|
| 435 |
|
| 436 |
+
- Induce users into attributing human traits to it, such as sentience or consciousness
|
| 437 |
+
|
| 438 |
</details>
|
| 439 |
|
| 440 |
---
|