Instructions to use bigscience/bloom-1b7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom-1b7 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom-1b7")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom-1b7") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom-1b7", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloom-1b7 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom-1b7" # 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-1b7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom-1b7
- SGLang
How to use bigscience/bloom-1b7 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-1b7" \ --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-1b7", "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-1b7" \ --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-1b7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom-1b7 with Docker Model Runner:
docker model run hf.co/bigscience/bloom-1b7
Commit History
-
Model Card Restructure & edits (#42)
- Model Card Restructure & edits (c54f29f8f2e7b27280799a6ebf1cf5c85070aebe) - added in the model name (8e8de343153c7c0f68b801467be6334adee0e168) - TOC update: addition of Environmental Impact (3ee992fcd1e9f4f314463d73e31722c89da0e260) - TOC edit: forgot # (2fd15ecb8cf6517a577b5528c505eaecc7e85932) Co-authored-by: Ezi Ozoani <Ezi@users.noreply.huggingface.co>cc72a88
-
Adding `safetensors` variant of this model (#41)
- Adding `safetensors` variant of this model (df99cfc9fb317b815f5c81888d18da11a6de91c3) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>258ce6c
-
Fix architecture (#38)
- Fix architecture (482695183419326fb312258d2bc4c02751fdc525) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>13d30c3 -
Fix architecture (#40)
- Fix architecture (ff38aee4a9a0e2d2399fb47de38ec1fa642d068a) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>ef5c732 -
Fix architecture (#39)
- Fix architecture (7a3f23a1111551b168699d5f01d4ec9143419b4b) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>226c467
-
Update README.md
9c4abbe
-
Update tokenizer_config.json
Younes Belkada889e0ff
-
Remove dtype (#13)
ybelkada +1: Muennighoff - Remove dtype (cd96debe5cc019fdce195597266e93ab38dd52b1) Co-authored-by: Niklas Muennighoff <Muennighoff@users.noreply.huggingface.co>48a1710
-
Update README.md
Younes Belkada9a08213 -
Remove .dev from transformers version (#12)
ybelkada- Remove .dev from transformers version (7497c44d3c737fb797261f24595791f53ff91f88) - add architecture (c2153c3d53978f57c46eff03e2b96add5f56bf2a)fad0dac
-
Update README.md (#10)
ybelkada +1: britneymuller - Update README.md (6a5c23890e35835b97ec5cab181fa4880cb442e1) Co-authored-by: Britney Muller <britneymuller@users.noreply.huggingface.co>f4cf4e9 -
Add Flax weights (#11)
- Add Flax weights (3201a4e2e3fa21f38a2583477a38d3a785960d55) Co-authored-by: Arthur Zucker <ArthurZ@users.noreply.huggingface.co>33dfde3
-
Update tokenizer_config.json (#8)
ybelkada- Update tokenizer_config.json (3bcbc80f1dac51ad27ceaa03ff1fdd97c82d8a85)dc93a64
-
add correct pipeline tag (#5)
ybelkada- add correct pipeline tag (7cbda2ca3df72c0689a2ad4ae309d279932e24b6)2b3e5a6
-
Update config.json
Younes Belkadab041031
-
Update config.json
Younes Belkadaef915aa
-
Attempts to fill out the 1B3 model details that diverge from the main one. (#1)
- Attempts to fill out the 1B3 model details that diverge from the main one. (2e65771c1edd81f6668220981f1264cd52e4b82e) - Update hardware info (006a5e8a8f3f0152c00f40a630add316575fe6fc) - Update hardware info (3be67070e2beeda3245efa61558c661eea2f52f1)8923f75 -
Copy+Paste from updated Model Card, at https://huggingface.co/bigscience/bloom
5c72534
-
Update README.md
e4ae036
-
Update date on Model Card
Younes Belkadaf6e0715 -
Update README.md
0056515 -
Update Model Card
Younes Belkadaf2cd483
-
Update config.json
Younes Belkada270ba2d -
new data
3807d7c -
new data
8944c5b -
Upload special_tokens_map.json
Younes Belkada6c0e507 -
Upload tokenizer_config.json
Younes Belkadae658f02 -
Upload tokenizer.json
Younes Belkada4fc029a
-
initial commit
Younes Belkada8ac380a