Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
bloom
Eval Results (legacy)
text-generation-inference
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 AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom") - 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
Merge branch 'main' of https://huggingface.co/bigscience/bloom into main
Browse files
README.md
CHANGED
|
@@ -52,11 +52,13 @@ language:
|
|
| 52 |
pipeline_tag: text-generation
|
| 53 |
---
|
| 54 |
|
|
|
|
|
|
|
| 55 |
# <p>BLOOM LM<br/> _BigScience Large Open-science Open-access Multilingual Language Model_ <br/>Model Card</p>
|
| 56 |
<img src="https://assets.website-files.com/6139f3cdcbbff3a68486761d/613cd8997b270da063e230c5_Tekengebied%201-p-500.png" alt="BigScience Logo" width="200"/>
|
| 57 |
|
| 58 |
|
| 59 |
-
Version 1.
|
| 60 |
|
| 61 |
## Table of Contents
|
| 62 |
1. [Model Details](#model-details)
|
|
@@ -253,7 +255,7 @@ See the [BLOOM License](https://huggingface.co/spaces/bigscience/license), Attac
|
|
| 253 |
|
| 254 |
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 is not correct.
|
| 255 |
|
| 256 |
-
|
| 257 |
|
| 258 |
- Usage in biomedical domains, political and legal domains, or finance domains
|
| 259 |
|
|
|
|
| 52 |
pipeline_tag: text-generation
|
| 53 |
---
|
| 54 |
|
| 55 |
+
# <span style="color:red"><b>WARNING:</b> Intermediary checkpoint at global step 80100. This checkpoint is not a fully trained model. Evaluations of intermediary checkpoints and the final model will be added when conducted (see below).</span>
|
| 56 |
+
|
| 57 |
# <p>BLOOM LM<br/> _BigScience Large Open-science Open-access Multilingual Language Model_ <br/>Model Card</p>
|
| 58 |
<img src="https://assets.website-files.com/6139f3cdcbbff3a68486761d/613cd8997b270da063e230c5_Tekengebied%201-p-500.png" alt="BigScience Logo" width="200"/>
|
| 59 |
|
| 60 |
|
| 61 |
+
Version 1.2 / 17.Jun.2022 - Current latest checkpoint: **Global step 80100**
|
| 62 |
|
| 63 |
## Table of Contents
|
| 64 |
1. [Model Details](#model-details)
|
|
|
|
| 255 |
|
| 256 |
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 is not correct.
|
| 257 |
|
| 258 |
+
Out-of-scope Uses Include:
|
| 259 |
|
| 260 |
- Usage in biomedical domains, political and legal domains, or finance domains
|
| 261 |
|