bigscience / bloomz-7b1-p3

huggingface.co
Total runs: 4.0K
24-hour runs: 2
7-day runs: 83
30-day runs: 3.8K
Model's Last Updated: January 20 2025
text-generation

Introduction of bloomz-7b1-p3

Model Details of bloomz-7b1-p3

xmtf

Table of Contents

  1. Model Summary
  2. Use
  3. Limitations
  4. Training
  5. Evaluation
  6. Citation

Model Summary

We present BLOOMZ & mT0, a family of models capable of following human instructions in dozens of languages zero-shot. We finetune BLOOM & mT5 pretrained multilingual language models on our crosslingual task mixture (xP3) and find the resulting models capable of crosslingual generalization to unseen tasks & languages.

Multitask finetuned on xP3 . Recommended for prompting in English.
Parameters 300M 580M 1.2B 3.7B 13B 560M 1.1B 1.7B 3B 7.1B 176B
Finetuned Model mt0-small mt0-base mt0-large mt0-xl mt0-xxl bloomz-560m bloomz-1b1 bloomz-1b7 bloomz-3b bloomz-7b1 bloomz
Multitask finetuned on xP3mt . Recommended for prompting in non-English.
Finetuned Model mt0-xxl-mt bloomz-7b1-mt bloomz-mt
Multitask finetuned on P3 . Released for research purposes only. Strictly inferior to above models!
Finetuned Model mt0-xxl-p3 bloomz-7b1-p3 bloomz-p3
Original pretrained checkpoints. Not recommended.
Pretrained Model mt5-small mt5-base mt5-large mt5-xl mt5-xxl bloom-560m bloom-1b1 bloom-1b7 bloom-3b bloom-7b1 bloom

Use

Intended use

We recommend using the model to perform tasks expressed in natural language. For example, given the prompt " Translate to English: Je t’aime. ", the model will most likely answer " I love you. ". Some prompt ideas from our paper:

  • 一个传奇的开端,一个不灭的神话,这不仅仅是一部电影,而是作为一个走进新时代的标签,永远彪炳史册。你认为这句话的立场是赞扬、中立还是批评?
  • Suggest at least five related search terms to "Mạng neural nhân tạo".
  • Write a fairy tale about a troll saving a princess from a dangerous dragon. The fairy tale is a masterpiece that has achieved praise worldwide and its moral is "Heroes Come in All Shapes and Sizes". Story (in Spanish):
  • Explain in a sentence in Telugu what is backpropagation in neural networks.

Feel free to share your generations in the Community tab!

How to use
CPU
Click to expand
# pip install -q transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "bigscience/bloomz-7b1-p3"

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint)

inputs = tokenizer.encode("Translate to English: Je t’aime.", return_tensors="pt")
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
GPU
Click to expand
# pip install -q transformers accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "bigscience/bloomz-7b1-p3"

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint, torch_dtype="auto", device_map="auto")

inputs = tokenizer.encode("Translate to English: Je t’aime.", return_tensors="pt").to("cuda")
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
GPU in 8bit
Click to expand
# pip install -q transformers accelerate bitsandbytes
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "bigscience/bloomz-7b1-p3"

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", load_in_8bit=True)

inputs = tokenizer.encode("Translate to English: Je t’aime.", return_tensors="pt").to("cuda")
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))

Limitations

Prompt Engineering: The performance may vary depending on the prompt. For BLOOMZ models, we recommend making it very clear when the input stops to avoid the model trying to continue it. For example, the prompt " Translate to English: Je t'aime " without the full stop (.) at the end, may result in the model trying to continue the French sentence. Better prompts are e.g. " Translate to English: Je t'aime. ", " Translate to English: Je t'aime. Translation: " " What is "Je t'aime." in English? ", where it is clear for the model when it should answer. Further, we recommend providing the model as much context as possible. For example, if you want it to answer in Telugu, then tell the model, e.g. " Explain in a sentence in Telugu what is backpropagation in neural networks. ".

Training

Model
  • Architecture: Same as bloom-7b1 , also refer to the config.json file
  • Finetuning steps: 1000
  • Finetuning tokens: 4.19 billion
  • Finetuning layout: 1x pipeline parallel, 1x tensor parallel, 64x data parallel
  • Precision: float16
Hardware
  • CPUs: AMD CPUs with 512GB memory per node
  • GPUs: 64 A100 80GB GPUs with 8 GPUs per node (8 nodes) using NVLink 4 inter-gpu connects, 4 OmniPath links
  • Communication: NCCL-communications network with a fully dedicated subnet
Software

Evaluation

We refer to Table 7 from our paper & bigscience/evaluation-results for zero-shot results on unseen tasks. The sidebar reports zero-shot performance of the best prompt per dataset config.

Citation

@misc{muennighoff2022crosslingual,
      title={Crosslingual Generalization through Multitask Finetuning}, 
      author={Niklas Muennighoff and Thomas Wang and Lintang Sutawika and Adam Roberts and Stella Biderman and Teven Le Scao and M Saiful Bari and Sheng Shen and Zheng-Xin Yong and Hailey Schoelkopf and Xiangru Tang and Dragomir Radev and Alham Fikri Aji and Khalid Almubarak and Samuel Albanie and Zaid Alyafeai and Albert Webson and Edward Raff and Colin Raffel},
      year={2022},
      eprint={2211.01786},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Runs of bigscience bloomz-7b1-p3 on huggingface.co

4.0K
Total runs
2
24-hour runs
24
3-day runs
83
7-day runs
3.8K
30-day runs

More Information About bloomz-7b1-p3 huggingface.co Model

bloomz-7b1-p3 huggingface.co

bloomz-7b1-p3 huggingface.co is an AI model on huggingface.co that provides bloomz-7b1-p3's model effect (), which can be used instantly with this bigscience bloomz-7b1-p3 model. huggingface.co supports a free trial of the bloomz-7b1-p3 model, and also provides paid use of the bloomz-7b1-p3. Support call bloomz-7b1-p3 model through api, including Node.js, Python, http.

bigscience bloomz-7b1-p3 online free

bloomz-7b1-p3 huggingface.co is an online trial and call api platform, which integrates bloomz-7b1-p3's modeling effects, including api services, and provides a free online trial of bloomz-7b1-p3, you can try bloomz-7b1-p3 online for free by clicking the link below.

bigscience bloomz-7b1-p3 online free url in huggingface.co:

https://huggingface.co/bigscience/bloomz-7b1-p3

bloomz-7b1-p3 install

bloomz-7b1-p3 is an open source model from GitHub that offers a free installation service, and any user can find bloomz-7b1-p3 on GitHub to install. At the same time, huggingface.co provides the effect of bloomz-7b1-p3 install, users can directly use bloomz-7b1-p3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bloomz-7b1-p3 install url in huggingface.co:

https://huggingface.co/bigscience/bloomz-7b1-p3

Url of bloomz-7b1-p3

bloomz-7b1-p3 huggingface.co Url

Provider of bloomz-7b1-p3 huggingface.co

bigscience
ORGANIZATIONS

Other API from bigscience

huggingface.co

Total runs: 342.5K
Run Growth: 120.8K
Growth Rate: 38.76%
Updated:September 26 2023
huggingface.co

Total runs: 48.3K
Run Growth: -8.8K
Growth Rate: -18.77%
Updated:May 12 2023
huggingface.co

Total runs: 28.8K
Run Growth: -9.7K
Growth Rate: -34.26%
Updated:March 20 2024
huggingface.co

Total runs: 12.8K
Run Growth: 2.7K
Growth Rate: 21.97%
Updated:April 14 2023
huggingface.co

Total runs: 9.9K
Run Growth: -435
Growth Rate: -8.16%
Updated:September 26 2023
huggingface.co

Total runs: 7.2K
Run Growth: -4.6K
Growth Rate: -65.71%
Updated:May 28 2023
huggingface.co

Total runs: 6.7K
Run Growth: -953
Growth Rate: -14.58%
Updated:July 29 2023
huggingface.co

Total runs: 6.7K
Run Growth: -4.2K
Growth Rate: -66.96%
Updated:January 03 2024
huggingface.co

Total runs: 5.0K
Run Growth: 3.0K
Growth Rate: 60.23%
Updated:September 26 2023
huggingface.co

Total runs: 4.8K
Run Growth: 1.9K
Growth Rate: 40.51%
Updated:February 22 2024
huggingface.co

Total runs: 4.8K
Run Growth: 3.4K
Growth Rate: 72.27%
Updated:September 26 2023
huggingface.co

Total runs: 3.9K
Run Growth: 3.0K
Growth Rate: 76.94%
Updated:March 17 2024
huggingface.co

Total runs: 3.9K
Run Growth: 2.0K
Growth Rate: 53.49%
Updated:September 26 2023
huggingface.co

Total runs: 3.7K
Run Growth: 3.4K
Growth Rate: 93.28%
Updated:November 03 2024
huggingface.co

Total runs: 3.6K
Run Growth: 2.0K
Growth Rate: 55.67%
Updated:July 19 2024
huggingface.co

Total runs: 3.5K
Run Growth: 3.2K
Growth Rate: 90.04%
Updated:June 07 2024
huggingface.co

Total runs: 1.8K
Run Growth: -168
Growth Rate: -10.09%
Updated:March 09 2024
huggingface.co

Total runs: 538
Run Growth: 489
Growth Rate: 95.88%
Updated:March 13 2025
huggingface.co

Total runs: 54
Run Growth: -6
Growth Rate: -11.11%
Updated:October 27 2024
huggingface.co

Total runs: 32
Run Growth: 10
Growth Rate: 34.48%
Updated:May 22 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 04 2022