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-1b1"
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-1b1
, 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
@article{muennighoff2022crosslingual,
title={Crosslingual generalization through multitask finetuning},
author={Muennighoff, Niklas and Wang, Thomas and Sutawika, Lintang and Roberts, Adam and Biderman, Stella and Scao, Teven Le and Bari, M Saiful and Shen, Sheng and Yong, Zheng-Xin and Schoelkopf, Hailey and others},
journal={arXiv preprint arXiv:2211.01786},
year={2022}
}
Runs of bigscience bloomz-1b1 on huggingface.co
3.9K
Total runs
23
24-hour runs
222
3-day runs
539
7-day runs
2.9K
30-day runs
More Information About bloomz-1b1 huggingface.co Model
bloomz-1b1 huggingface.co is an AI model on huggingface.co that provides bloomz-1b1's model effect (), which can be used instantly with this bigscience bloomz-1b1 model. huggingface.co supports a free trial of the bloomz-1b1 model, and also provides paid use of the bloomz-1b1. Support call bloomz-1b1 model through api, including Node.js, Python, http.
bloomz-1b1 huggingface.co is an online trial and call api platform, which integrates bloomz-1b1's modeling effects, including api services, and provides a free online trial of bloomz-1b1, you can try bloomz-1b1 online for free by clicking the link below.
bigscience bloomz-1b1 online free url in huggingface.co:
bloomz-1b1 is an open source model from GitHub that offers a free installation service, and any user can find bloomz-1b1 on GitHub to install. At the same time, huggingface.co provides the effect of bloomz-1b1 install, users can directly use bloomz-1b1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.