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
Attempts to fill out the 1B3 model details that diverge from the main one. (#1)
Browse files- Attempts to fill out the 1B3 model details that diverge from the main one. (2e65771c1edd81f6668220981f1264cd52e4b82e)
- Update hardware info (006a5e8a8f3f0152c00f40a630add316575fe6fc)
- Update hardware info (3be67070e2beeda3245efa61558c661eea2f52f1)
119 unmodified lines1201211221231241251261271281291301 unmodified line13213313413513613713813914014114214314414514614714814 unmodified lines163164165166167168169170171172173174175176177178179180181182183184185186187188189190119 unmodified lines* ALiBI positional encodings (see [paper](https://arxiv.org/pdf/2108.12409.pdf)), with GeLU activation functions* 176 billion parameters:* 70 layers, 112 attention heads* Hidden layers are 14336-dimensional* Sequence length of 2048 tokens used (see [BLOOM tokenizer](https://huggingface.co/bigscience/tokenizer), [tokenizer description](#tokenization))1 unmodified line**Compute infrastructure:** Jean Zay Public Supercomputer, provided by the French government (see [announcement](https://www.enseignementsup-recherche.gouv.fr/fr/signature-du-marche-d-acquisition-de-l-un-des-supercalculateurs-les-plus-puissants-d-europe-46733)).* Hardware: 384 A100 80GB GPUs (48 nodes):* Additional 32 A100 80GB GPUs (4 nodes) in reserve* 8 GPUs per node Using NVLink 4 inter-gpu connects, 4 OmniPath links* CPU: AMD* CPU memory: 512GB per node* GPU memory: 640GB per node* Inter-node connect: Omni-Path Architecture (OPA)14 unmodified lines#### **Training**_In progress._Current training logs: [Tensorboard link](https://huggingface.co/tensorboard/bigscience/tr11-176B-ml-logs/)- Checkpoint size:- Bf16 weights: 329GB- Full checkpoint with optimizer states: 2.3TB- Training throughput: About 150 TFLOP per GPU per second- Number of epochs: 1 (*current target*)- Dates:- Started 11th March, 2022 11:42am PST- Estimated end: 5th July, 2022- Estimated cost of training: Equivalent of $2-5M in cloud computing (including preliminary experiments)- Server training location: Île-de-France, France119 unmodified lines1201211221231241251261271281291301 unmodified line13213313413513613713813914014114214314414514614714814915014 unmodified lines165166167168169170171172173174175176177178179180181182183184185119 unmodified lines* ALiBI positional encodings (see [paper](https://arxiv.org/pdf/2108.12409.pdf)), with GeLU activation functions* 1.3 billion parameters:* 24 layers, 16 attention heads* Hidden layers are 2048-dimensional* Sequence length of 2048 tokens used (see [BLOOM tokenizer](https://huggingface.co/bigscience/tokenizer), [tokenizer description](#tokenization))1 unmodified line**Compute infrastructure:** Jean Zay Public Supercomputer, provided by the French government (see [announcement](https://www.enseignementsup-recherche.gouv.fr/fr/signature-du-marche-d-acquisition-de-l-un-des-supercalculateurs-les-plus-puissants-d-europe-46733)).* Hardware: 64 V100 16/32GB GPUs (16 nodes):* 4 GPUs per node* 40 CPUs per task* 1 task per node* CPU: AMD* CPU memory: 160GB per node* GPU memory: 64GB or 128GB (depending on node availability during training) per node* Inter-node connect: Omni-Path Architecture (OPA)14 unmodified lines#### **Training**- Checkpoint size:- Fp16 weights: 2.6GB (# params * 2)- Full checkpoint with optimizer states: --- Training throughput: --- Number of epochs: 1- Dates:- Start: 11th March, 2022 11:42am PST- End: 20 May, 2022- Server training location: Île-de-France, France
README.md+18-23