Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
bloom
Eval Results (legacy)
text-generation-inference
Instructions to use bigscience/bloomz-1b7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloomz-1b7 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloomz-1b7")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloomz-1b7") model = AutoModelForCausalLM.from_pretrained("bigscience/bloomz-1b7", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloomz-1b7 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloomz-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/bloomz-1b7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloomz-1b7
- SGLang
How to use bigscience/bloomz-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/bloomz-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/bloomz-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/bloomz-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/bloomz-1b7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloomz-1b7 with Docker Model Runner:
docker model run hf.co/bigscience/bloomz-1b7
Commit History
-
Fix seq_length to align with the BLOOM paper
Verified signatureThere is an inconsistency between the paper (https://arxiv.org/pdf/2211.05100) and the config for this model. Page 21, Table 3 : Sequence length is 2048 not 4096.56394a1
-
Update README.md
4ea0141
-
Adding `safetensors` variant of this model (#6)
- Adding `safetensors` variant of this model (e66c11abdf9722871eaa9d479b3452754c2447fd) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>c75f4a9
-
Fix architecture (#5)
- Fix architecture (f41d23a0dc49a28bb96b3acd23ee06a5ac8fcb4b) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>414619e
-
Update README.md
3f5edc7
-
Update README.md
ad2b6a7
-
Merge branch 'main' of https://huggingface.co/bigscience/bloomz-1b7
f408c22 -
Remove eval folder (Moved to bigscience/evaluation-results)
fda9d4b
-
Add paper
5578f44 -
Create README.md
2d468fb
-
Add logs
46f725b -
organise
a095406 -
Add fiels
254560d
-
initial commit
5d98487