Text Generation
Transformers
PyTorch
Safetensors
bloom
Eval Results (legacy)
text-generation-inference
Instructions to use bigscience/bloom-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom-3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom-3b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom-3b") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom-3b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloom-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom-3b" # 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-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom-3b
- SGLang
How to use bigscience/bloom-3b 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-3b" \ --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-3b", "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-3b" \ --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-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom-3b with Docker Model Runner:
docker model run hf.co/bigscience/bloom-3b
Commit History
-
Adding `safetensors` variant of this model (#37)
- Adding `safetensors` variant of this model (7e9840994b7b95faef4e66d12d828875d68c03f4) Co-authored-by: Safetensors convertbot <[email protected]>52bc5b4
-
Fix architecture (#34)
- Fix architecture (4f7ffba51da90ce55c1fc1448f7bfe1e4487c8a2) Co-authored-by: Lewis Tunstall <[email protected]>fdeb52a -
Fix architecture (#36)
- Fix architecture (87e552cf2b8287c81c175a2f92b40d201f65f7bc) Co-authored-by: Lewis Tunstall <[email protected]>7c66d2d -
Fix architecture (#35)
- Fix architecture (0dbd8776f6ca4e35a8e75d21997b52c0dc2911fc) Co-authored-by: Lewis Tunstall <[email protected]>3dfc1e0 -
Fix architecture (#33)
- Fix architecture (41f61780d2410f49fe623151dfae049457422114) Co-authored-by: Lewis Tunstall <[email protected]>c0f6835
-
Update config.json (#9)
- Update config.json (c59381abbf01b42e86d2bd52c4410c329c2a09aa)515ae96
-
Update README.md
1c5992f
-
Add evaluation (#8)
- Add evaluation (ee589c92eb5cf17c617fb3145214de77e2de8c23)68331cd
-
341b tokens model (#7)
ybelkada +1: Muennighoff- Model ckpt at 341b tokens (62e2f7ca388fba2da718c045456d8b354da2b66a) - Remove warning (06344e9b1c06991eab8bd987686afb056b3aca6d) Co-authored-by: Niklas Muennighoff <[email protected]>538fcc1 -
Update tokenizer_config.json
Younes Belkada67bffe0
-
Update config.json (#6)
ybelkada +1: Muennighoff- Update config.json (1312042ca1beec717c72184d71bafa15d37f50f0) Co-authored-by: Niklas Muennighoff <[email protected]>66a12cf
-
Update README.md
Younes Belkada7fac334 -
add architecutre + fix transformers version
Younes Belkada6b60887
-
Change to correct `tokenizer_class` (#3)
ybelkada- Change to correct `tokenizer_class` (a19a866622839b7c266d1c823d06985140027efd)5d7ac41
-
Add correct pipeline tag (#2)
ybelkada- Add correct pipeline tag (6bfebac776e18ad3ac40961629ce5eeca627faf5)51a38df
-
Update config.json
Younes Belkada78f99bb
-
Update README.md (#1)
ybelkada- Update README.md (2b6926370063828b7c226ad18232cd564b18dc49)df69d83
-
Update config.json
Younes Belkada0a1d0a4
-
Copy+Paste from updated model card, + warning.
b6b0418
-
Update README.md
d8263c9
-
Update date on Model Card
Younes Belkada80fbc65 -
Update README.md
030b11e -
Added intermediary checkpoint warning
Teven Le Scao4304d27 -
Update Model Card
Younes Belkada5118142
-
Update config.json
Younes Belkada4687812 -
new data
870fade -
Merge branch 'main' of https://huggingface.co/bigscience/bloom-2b5
402ec1b -
new data
832cf77 -
Create LICENSE
Younes Belkada1b937d3 -
Upload special_tokens_map.json
Younes Belkada89d62c9 -
Upload tokenizer_config.json
Younes Belkada6563f28 -
Upload tokenizer.json
Younes Belkada9bf6830
-
initial commit
Younes Belkada58f9b04