Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
bloom
Eval Results (legacy)
text-generation-inference
Instructions to use bigscience/bloomz-mt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloomz-mt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloomz-mt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloomz-mt") model = AutoModelForCausalLM.from_pretrained("bigscience/bloomz-mt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloomz-mt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloomz-mt" # 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-mt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloomz-mt
- SGLang
How to use bigscience/bloomz-mt 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-mt" \ --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-mt", "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-mt" \ --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-mt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloomz-mt with Docker Model Runner:
docker model run hf.co/bigscience/bloomz-mt
Commit History
-
Upload model_00066-of-00072.safetensors with huggingface_hub
dc7fbd4 -
Upload model_00036-of-00072.safetensors with huggingface_hub
fda198d -
Upload model_00040-of-00072.safetensors with huggingface_hub
d560d9e -
Upload model_00012-of-00072.safetensors with huggingface_hub
1ab0c29 -
Upload model_00026-of-00072.safetensors with huggingface_hub
94f6da9 -
Upload model_00007-of-00072.safetensors with huggingface_hub
5507f32 -
Upload model_00009-of-00072.safetensors with huggingface_hub
e1a5ca3 -
Upload model_00071-of-00072.safetensors with huggingface_hub
28df01e -
Upload model_00039-of-00072.safetensors with huggingface_hub
b626389 -
Upload model_00029-of-00072.safetensors with huggingface_hub
2e5ad04 -
Upload model_00064-of-00072.safetensors with huggingface_hub
696f2eb -
Upload model_00024-of-00072.safetensors with huggingface_hub
121cfce -
Upload model_00051-of-00072.safetensors with huggingface_hub
ab0189f -
Upload model_00028-of-00072.safetensors with huggingface_hub
ef754ec -
Upload model_00057-of-00072.safetensors with huggingface_hub
a696209 -
Upload model_00035-of-00072.safetensors with huggingface_hub
18a86ed -
Upload model_00044-of-00072.safetensors with huggingface_hub
ff774d3 -
Upload model_00018-of-00072.safetensors with huggingface_hub
d0d3f97 -
Upload model_00049-of-00072.safetensors with huggingface_hub
1ea9358 -
Upload model_00023-of-00072.safetensors with huggingface_hub
bf8384c -
Upload model_00067-of-00072.safetensors with huggingface_hub
37f0505 -
Upload model_00052-of-00072.safetensors with huggingface_hub
40115ec -
Upload model_00059-of-00072.safetensors with huggingface_hub
6f4fb92 -
Upload model_00014-of-00072.safetensors with huggingface_hub
3c0011e -
Upload model_00063-of-00072.safetensors with huggingface_hub
f8a6401 -
Upload model_00010-of-00072.safetensors with huggingface_hub
446afa2 -
Upload model_00050-of-00072.safetensors with huggingface_hub
75d8ce6 -
Upload model_00069-of-00072.safetensors with huggingface_hub
b2ad707 -
Upload model_00054-of-00072.safetensors with huggingface_hub
4cfed7e -
Upload model_00030-of-00072.safetensors with huggingface_hub
f9b0346 -
Upload model_00002-of-00072.safetensors with huggingface_hub
05d33ca -
Upload model_00048-of-00072.safetensors with huggingface_hub
e9d8be3 -
Upload model_00017-of-00072.safetensors with huggingface_hub
b5c717e -
Upload model_00068-of-00072.safetensors with huggingface_hub
ec459d5 -
Upload model_00008-of-00072.safetensors with huggingface_hub
039c3d6 -
Upload model_00042-of-00072.safetensors with huggingface_hub
e92feee -
Upload model_00001-of-00072.safetensors with huggingface_hub
d663673 -
Upload model_00013-of-00072.safetensors with huggingface_hub
beabbbd -
Upload model_00046-of-00072.safetensors with huggingface_hub
e737418 -
Upload model_00032-of-00072.safetensors with huggingface_hub
511267c -
Upload model_00011-of-00072.safetensors with huggingface_hub
68df688 -
Upload model_00041-of-00072.safetensors with huggingface_hub
49bad28 -
Upload model_00061-of-00072.safetensors with huggingface_hub
da1d285 -
Upload model_00055-of-00072.safetensors with huggingface_hub
bca41d3 -
Upload model_00047-of-00072.safetensors with huggingface_hub
515cf68 -
Upload model_00058-of-00072.safetensors with huggingface_hub
4e8d6cf -
Upload model_00053-of-00072.safetensors with huggingface_hub
6326f7f -
Upload model_00004-of-00072.safetensors with huggingface_hub
34fc197 -
Upload model_00056-of-00072.safetensors with huggingface_hub
990e2cd
-
Upload model_00016-of-00072.safetensors with huggingface_hub
cbff922