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
Commit ·
2a3d62e
1
Parent(s): 483e9e2
Add Lingala (#60)
Browse files- Add Lingala (0bed9c64c743c4272a01f0e37a950aa2d91fa705)
Co-authored-by: Niklas Muennighoff <Muennighoff@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1917,7 +1917,7 @@ The following tables shows the further distribution of Niger-Congo & Indic langu
|
|
| 1917 |
Distribution of Niger Congo and Indic languages.
|
| 1918 |
|
| 1919 |
| Niger Congo | Percentage | | Indic | Percentage |
|
| 1920 |
-
|----------------|------------
|
| 1921 |
| Chi Tumbuka | 0.00002 | | Assamese | 0.01 |
|
| 1922 |
| Kikuyu | 0.00004 | | Odia | 0.04 |
|
| 1923 |
| Bambara | 0.00004 | | Gujarati | 0.04 |
|
|
@@ -1926,11 +1926,12 @@ Distribution of Niger Congo and Indic languages.
|
|
| 1926 |
| Sesotho | 0.00007 | | Kannada | 0.06 |
|
| 1927 |
| Chi Chewa | 0.0001 | | Nepali | 0.07 |
|
| 1928 |
| Setswana | 0.0002 | | Telugu | 0.09 |
|
| 1929 |
-
|
|
| 1930 |
-
|
|
| 1931 |
-
|
|
| 1932 |
-
|
|
| 1933 |
-
|
|
|
|
|
| 1934 |
| Chi Shona | 0.001 |
|
| 1935 |
| Isi Zulu | 0.001 |
|
| 1936 |
| Igbo | 0.001 |
|
|
|
|
| 1917 |
Distribution of Niger Congo and Indic languages.
|
| 1918 |
|
| 1919 |
| Niger Congo | Percentage | | Indic | Percentage |
|
| 1920 |
+
|----------------|------------| ------ |-----------|------------|
|
| 1921 |
| Chi Tumbuka | 0.00002 | | Assamese | 0.01 |
|
| 1922 |
| Kikuyu | 0.00004 | | Odia | 0.04 |
|
| 1923 |
| Bambara | 0.00004 | | Gujarati | 0.04 |
|
|
|
|
| 1926 |
| Sesotho | 0.00007 | | Kannada | 0.06 |
|
| 1927 |
| Chi Chewa | 0.0001 | | Nepali | 0.07 |
|
| 1928 |
| Setswana | 0.0002 | | Telugu | 0.09 |
|
| 1929 |
+
| Lingala | 0.0002 | | Malayalam | 0.10 |
|
| 1930 |
+
| Northern Sotho | 0.0002 | | Urdu | 0.10 |
|
| 1931 |
+
| Fon | 0.0002 | | Tamil | 0.20 |
|
| 1932 |
+
| Kirundi | 0.0003 | | Bengali | 0.50 |
|
| 1933 |
+
| Wolof | 0.0004 | | Hindi | 0.70 |
|
| 1934 |
+
| Luganda | 0.0004 |
|
| 1935 |
| Chi Shona | 0.001 |
|
| 1936 |
| Isi Zulu | 0.001 |
|
| 1937 |
| Igbo | 0.001 |
|