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.
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 transformersfrom 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]))
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
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 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.
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:
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.