Instructions to use bigscience/bloom-1b1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom-1b1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom-1b1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom-1b1") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom-1b1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloom-1b1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom-1b1" # 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-1b1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom-1b1
- SGLang
How to use bigscience/bloom-1b1 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-1b1" \ --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-1b1", "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-1b1" \ --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-1b1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom-1b1 with Docker Model Runner:
docker model run hf.co/bigscience/bloom-1b1
Commit History
-
Adding ONNX file of this model (#40)
- Adding ONNX file of this model (b7f7e47be15adbc85b6d52780d0de1d1c3ca49f4) Co-authored-by: i <Gidz@users.noreply.huggingface.co>eb3dd73
-
Adding `safetensors` variant of this model (#39)
- Adding `safetensors` variant of this model (fbf46a965ab8cea89c40ad6de96a83842b02023a) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>6f41955
-
Fix architecture (#35)
- Fix architecture (2926fb0794e52582610d19862689f830a01b0ca8) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>1edd2e3 -
Fix architecture (#34)
- Fix architecture (05c2ef2e94870a5489c3e5e82e87fc95247657cb) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>ad7f330 -
Fix architecture (#37)
- Fix architecture (73caecc3f28649b6302faf59265eacea993d3698) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>9849e3c -
Fix architecture (#36)
- Fix architecture (969bcd1df9947295f1293b907b977e601d4f8fbd) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>9a246b2 -
Fix architecture (#33)
- Fix architecture (37f97283186a4b6d45d0dddb22b31eb7f5a63762) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>0203c5c
-
Update config.json
Discussed here: https://huggingface.co/bigscience/bloom/discussions/77#63331c7266b27c4ad1957d521e718be
-
Update README.md
ef8385a
-
341b tokens model (#8)
ybelkada +1: Muennighoff- Update to 341b tokens model (6a8e173a4090325a5767777454961e757bc35e89) - Update README.md (3b418bceb8f965a83d93538583babba15934e7ab) Co-authored-by: Niklas Muennighoff <Muennighoff@users.noreply.huggingface.co>ae3a5ff
-
Update tokenizer_config.json
Younes Belkadadef5ca0
-
Update config.json (#7)
ybelkada +1: Muennighoff- Update config.json (3c348a290c62f107402f7746a144f44bafb276fe) Co-authored-by: Niklas Muennighoff <Muennighoff@users.noreply.huggingface.co>870e49b
-
Update README.md
Younes Belkada6051fad -
Remove .dev from transformers version (#6)
ybelkada- Remove .dev from transformers version (9b0b0570e96bd0c438d2b9498418a388662f3393) - add architecture (c33bc30102e98b62b8f1308af1904178b43e2e29)f68158c
-
Add Flax weights (#5)
- Add Flax weights (1842edba7fac470598ebc1e60127810b0efe0875) Co-authored-by: Arthur Zucker <ArthurZ@users.noreply.huggingface.co>a2243a4
-
Change to correct `tokenizer_class` (#4)
ybelkada- Change to correct `tokenizer_class` (6f6a03e5ac2dc8ae7f788081d2cc19b0d90d1178)66f9eb8
-
Update README.md (#3)
ybelkada- Update README.md (40ccbbcfb06222ef1656e570b34fc9becc51af81)ba1db08
-
Update config.json
Younes Belkada9e7b24d
-
Update README.md (#2)
ybelkada- Update README.md (7d38e96b5b320c75f4195d4f9a7c537760dd82f1)a3da4bf
-
Update special tokens (#1)
ybelkada +1: TimeRobber- Update special tokens (8d05891957886d7b70659308a58eff5ef13d386e) Co-authored-by: Thomas Wang <TimeRobber@users.noreply.huggingface.co>20dcd04
-
Copy+paste main BLOOM model card, +warning.
04f1494
-
Update README.md
8db4163
-
Update Date on Model Card
Younes Belkada4ec1d87 -
Update README.md
01f0177 -
Added intermediary checkpoint warning
Teven Le Scao004a5c6 -
Update Model Card
Younes Belkadab40c96f
-
Update config.json
Younes Belkada5976ec9 -
Create LICENSE
Younes Belkada703edba -
new data
052e685 -
Merge branch 'main' of https://huggingface.co/bigscience/bloom-760m
71d96ed -
new data
61194ca -
Upload special_tokens_map.json
Younes Belkada795a1a9 -
Upload tokenizer_config.json
Younes Belkadada569bc -
Upload tokenizer.json
Younes Belkadaedd1172
-
initial commit
Younes Belkadab223e71