AI ExplorerAI Explorer
OutilsCatégoriesSitesLLMsComparerQuiz IAAlternativesPremium

—

Outils IA

—

Sites & Blogs

—

LLMs & Modèles

—

Catégories

AI Explorer

Trouvez et comparez les meilleurs outils d'intelligence artificielle pour vos projets.

Fait avecen France

Explorer

  • Tous les outils
  • Sites & Blogs
  • LLMs & Modèles
  • Comparer
  • Chatbots
  • Images IA
  • Code & Dev

Entreprise

  • Premium
  • À propos
  • Contact
  • Blog

Légal

  • Mentions légales
  • Confidentialité
  • CGV

© 2026 AI Explorer. Tous droits réservés.

AccueilLLMsbloomz 560m

bloomz 560m

par bigscience

Open source · 1M downloads · 137 likes

2.7
(137 avis)ChatAPI & Local
À propos

Bloomz 560M est un modèle d'intelligence artificielle conçu pour comprendre et exécuter des instructions en plusieurs langues, même sans entraînement spécifique sur celles-ci. Il excelle dans le traitement de tâches variées comme la traduction, la classification ou la génération de texte, grâce à un apprentissage multitâche sur un large éventail de données multilingues. Ses principaux atouts résident dans sa capacité à généraliser ses compétences à des langues et des tâches inédites, offrant ainsi une grande flexibilité d'utilisation. Idéal pour des applications nécessitant une compréhension contextuelle et une adaptation rapide, il se distingue par son efficacité sur des scénarios multilingues complexes. Ce modèle s'adresse particulièrement aux développeurs et chercheurs cherchant une solution polyvalente pour des projets multilingues.

Documentation

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.

  • Repository: bigscience-workshop/xmtf
  • Paper: Crosslingual Generalization through Multitask Finetuning
  • Point of Contact: Niklas Muennighoff
  • Languages: Refer to bloom for pretraining & xP3 for finetuning language proportions. It understands both pretraining & finetuning languages.
  • BLOOMZ & mT0 Model Family:
Multitask finetuned on xP3. Recommended for prompting in English.
Parameters300M580M1.2B3.7B13B560M1.1B1.7B3B7.1B176B
Finetuned Modelmt0-smallmt0-basemt0-largemt0-xlmt0-xxlbloomz-560mbloomz-1b1bloomz-1b7bloomz-3bbloomz-7b1bloomz
Multitask finetuned on xP3mt. Recommended for prompting in non-English.
Finetuned Modelmt0-xxl-mtbloomz-7b1-mtbloomz-mt
Multitask finetuned on P3. Released for research purposes only. Strictly inferior to above models!
Finetuned Modelmt0-xxl-p3bloomz-7b1-p3bloomz-p3
Original pretrained checkpoints. Not recommended.
Pretrained Modelmt5-smallmt5-basemt5-largemt5-xlmt5-xxlbloom-560mbloom-1b1bloom-1b7bloom-3bbloom-7b1bloom

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
Python
# pip install -q transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "bigscience/bloomz-560m"

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
Python
# pip install -q transformers accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "bigscience/bloomz-560m"

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
Python
# pip install -q transformers accelerate bitsandbytes
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "bigscience/bloomz-560m"

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-560m, also refer to the config.json file
  • Finetuning steps: 1750
  • Finetuning tokens: 3.67 billion
  • Finetuning layout: 1x pipeline parallel, 1x tensor parallel, 1x 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

  • Orchestration: Megatron-DeepSpeed
  • Optimizer & parallelism: DeepSpeed
  • Neural networks: PyTorch (pytorch-1.11 w/ CUDA-11.5)
  • FP16 if applicable: apex

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

Bibtex
@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}
}
Liens & Ressources
Spécifications
CatégorieChat
AccèsAPI & Local
LicenceOpen Source
TarificationOpen Source
Note
2.7

Essayer bloomz 560m

Accédez directement au modèle