Run this model with HF Jobs
Run bigscience/bloom-1b7 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/bigscience/bloom-1b7. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/bigscience/bloom-1b7 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/bigscience/bloom-1b7. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/bigscience/bloom-1b7. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
-
Fix architecture
4826951
-
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