Article·huggingface.co
foundationalbigsciencemultilingualopen-sourcecollaborativenlptransformerstext-generationhugging-face
BLOOM
BLOOM is a 176B parameter multilingual LLM created through open collaboration, trained on 46 natural and 13 programming languages, offering open access at GPT-3 scale.
intermediate30-60 minutes3 steps
The play
- Explore BLOOM's CapabilitiesVisit the Hugging Face BLOOM demo to interact with the model and test its multilingual capabilities. Experiment with different prompts in various languages to observe its responses.
- Access BLOOM via Hugging Face TransformersUse the Hugging Face Transformers library to load and run BLOOM. Install the library if you haven't already, then use the `AutoModelForCausalLM` and `AutoTokenizer` classes to load the model and tokenizer.
- Generate Text with BLOOMUse the loaded model and tokenizer to generate text. Encode your input prompt using the tokenizer, pass it to the model, and decode the output to get the generated text.
Starter code
This Action Pack introduces you to BLOOM, a large open-access multilingual language model. You'll explore its capabilities and learn how to use it for text generation.
Source