Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
bloom
Eval Results (legacy)
text-generation-inference
Instructions to use bigscience/bloom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloom with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom
- SGLang
How to use bigscience/bloom with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "bigscience/bloom" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "bigscience/bloom" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom with Docker Model Runner:
docker model run hf.co/bigscience/bloom
Update README.md
#235
by Petiinoue - opened
46 unmodified lines474849505152539 unmodified lines636465666768697071727374757677787980818242 unmodified lines1251261271281291301311321331341351368 unmodified lines1451461471481491501511521531541551561576 unmodified lines16416516616716816917017117217317417517617717817918018118215 unmodified lines19819920020120220346 unmodified lines- yo- zh- zuprogramming_language:- C- C++- C#9 unmodified lines- TypeScriptpipeline_tag: text-generationwidget:- text: 'A "whatpu" is a small, furry animal native to Tanzania. An example of a sentence that uses the word whatpu is: We were traveling in Africa and we saw these very cute whatpus. | To do a "farduddle" means to jump up and down really fast. An example of a sentence that uses the word farduddle is:'example_title: Imaginary wordgroup: English- text: 'Un "whatpu" est un petit animal à fourrure originaire de Tanzanie. Un exemple de phrase qui utilise le mot whatpu est: Nous étions en Afrique et nous avons vu des whatpus trop mignons. Faire un "farduddle" veut dire sauter sur place vraiment vite. Un exemple de phrase qui utilise le mot farduddle est:'example_title: Imaginary wordgroup: French- text: 'Un "whatpu" es un pequeño animal peludo nativo de Tanzania. Un ejemplo de una oración que usa la palabra whatpu es: Estábamos viajando por África y vimos estos whatpus muy bonitos. Hacer un "farduddle" significa saltar arriba y abajo muy rápido. Un ejemplo de una oración que usa la palabra farduddle es:'example_title: Imaginary wordgroup: Spanish- text: ' ال"واتبو" هو حيوان صغير مكسو بالفراء يعيش في تنزانيا. مثال على جملة تستخدم كلمة واتبو هي: كنا نسافر في افريقيا و رأينا هؤلاء الواتبو اللطفاء. للقيام ب"فاردادل" يعني ان تقفز للأعلى و الأسفل بسرعة كبيرة. مثال على جملة تستخدم كلمة فاردادل هي:'example_title: Imaginary wordgroup: Arabic- text: 'Um "whatpu" é um pequeno animal peludo nativo da Tanzânia. Um exemplo de uma frase que usa a palavra whatpu é: Estávamos a viajar por África e vimos uns whatpus muito queridos. Fazer um "farduddle" significa saltar para cima e para baixo muito rápido. Um exemplo de uma frase que usa a palavra farduddle é:'example : Imaginary wordgroup: Portuguese- text: Pour déguster un ortolan, il faut tout d'abordexample_title: Recipe42 unmodified linesexample_title: Translation from Englishgroup: Hindi- text: 'Poor English: She no went to the market. Corrected English:'example_title: Grammar exercise 1group: English- text: 'استخراج العدد العاملي في لغة بايثون:'example_title: Code generationgroup: Arabic- text: 'Regexp. Here is a regular expression to match a word starting with a number and then having only vowels:'example_title: Regular expressionsgroup: English- text: |-8 unmodified linesShe drove X the bridge. X is the prepositionexample_title: Grammar exercise 2group: English- text: |-Traduction en français: Dans cet essai je vais m'interroger sur la conscience des modèles d'intelligence artificielle récents comme les modèles de langue. Pour commencer, je m'intéresserai à la notion de conscience et à ce qui la caractérise. Ensuite, j'aborderai la question de l'intelligence et de son lien avec le langage. Enfin, dans une dernière partie je me pencherai sur le cas de l'IA et sur sa conscience.Traduction en espagnol:example_title: Translation to Spanishgroup: French- text: |-Traducción al francés: Dans cet essai je vais m'interroger sur la conscience des modèles d'intelligence artificielle récents comme les modèles de langue. Pour commencer, je m'intéresserai à la notion de conscience et à ce qui la caractérise. Ensuite, j'aborderai la question de l'intelligence et de son lien avec le langage. Enfin, dans une dernière partie je me pencherai sur le cas de l'IA et sur sa conscience.Traducción al español:example_title: Translation from Frenchgroup: Spanish6 unmodified lines- text: Il était une fois une licorne qui vivaitexample_title: Fairy talegroup: French- text: |-Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?A: Let's think step by step.example_title: Mathematical reasoninggroup: Englishco2_eq_emissions:emissions: 24_700_000source: "Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Model. https://arxiv.org/abs/2211.02001"training_type: "pre-training"geographical_location: "Orsay, France"hardware_used: "384 A100 80GB GPUs"model-index:- name: bloomresults:15 unmodified linestype: pass@100value: 0.5719815685597749verified: false---<img src="https://s3.amazonaws.com/moonup/production/uploads/1657124309515-5f17f0a0925b9863e28ad517.png" alt="BigScience Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>46 unmodified lines474849505152539 unmodified lines6364656667686970717273747576777879808182838485868788899091929394959697989910010142 unmodified lines1441451461471481491501511521531541551561578 unmodified lines1661671681691701711721731741751761771781791801811821831841851861871881891906 unmodified lines19719819920020120220320420520620720820921021121221321421521621715 unmodified lines23323423523623723823924024124246 unmodified lines- yo- zh- zuprogramming_language:- C- C++- C#9 unmodified lines- TypeScriptpipeline_tag: text-generationwidget:- text: >-A "whatpu" is a small, furry animal native to Tanzania. An example of asentence that uses the word whatpu is: We were traveling in Africa and wesaw these very cute whatpus. | To do a "farduddle" means to jump up and downreally fast. An example of a sentence that uses the word farduddle is:example_title: Imaginary wordgroup: English- text: >-Un "whatpu" est un petit animal à fourrure originaire de Tanzanie. Unexemple de phrase qui utilise le mot whatpu est: Nous étions en Afrique etnous avons vu des whatpus trop mignons. Faire un "farduddle" veut diresauter sur place vraiment vite. Un exemple de phrase qui utilise le motfarduddle est:example_title: Imaginary wordgroup: French- text: >-Un "whatpu" es un pequeño animal peludo nativo de Tanzania. Un ejemplo deuna oración que usa la palabra whatpu es: Estábamos viajando por África yvimos estos whatpus muy bonitos. Hacer un "farduddle" significa saltararriba y abajo muy rápido. Un ejemplo de una oración que usa la palabrafarduddle es:example_title: Imaginary wordgroup: Spanish- text: ' ال"واتبو" هو حيوان صغير مكسو بالفراء يعيش في تنزانيا. مثال على جملة تستخدم كلمة واتبو هي: كنا نسافر في افريقيا و رأينا هؤلاء الواتبو اللطفاء. للقيام ب"فاردادل" يعني ان تقفز للأعلى و الأسفل بسرعة كبيرة. مثال على جملة تستخدم كلمة فاردادل هي:'example_title: Imaginary wordgroup: Arabic- text: >-Um "whatpu" é um pequeno animal peludo nativo da Tanzânia. Um exemplo de umafrase que usa a palavra whatpu é: Estávamos a viajar por África e vimos unswhatpus muito queridos. Fazer um "farduddle" significa saltar para cima epara baixo muito rápido. Um exemplo de uma frase que usa a palavra farduddleé:example: Imaginary wordgroup: Portuguese- text: Pour déguster un ortolan, il faut tout d'abordexample_title: Recipe42 unmodified linesexample_title: Translation from Englishgroup: Hindi- text: 'Poor English: She no went to the market. Corrected English:'example_title: Grammar exercise 1group: English- text: 'استخراج العدد العاملي في لغة بايثون:'example_title: Code generationgroup: Arabic- text: >-Regexp. Here is a regular expression to match a word starting with a numberand then having only vowels:example_title: Regular expressionsgroup: English- text: |-8 unmodified linesShe drove X the bridge. X is the prepositionexample_title: Grammar exercise 2group: English- text: >-Traduction en français: Dans cet essai je vais m'interroger sur laconscience des modèles d'intelligence artificielle récents comme les modèlesde langue. Pour commencer, je m'intéresserai à la notion de conscience et àce qui la caractérise. Ensuite, j'aborderai la question de l'intelligence etde son lien avec le langage. Enfin, dans une dernière partie je me pencheraisur le cas de l'IA et sur sa conscience.Traduction en espagnol:example_title: Translation to Spanishgroup: French- text: >-Traducción al francés: Dans cet essai je vais m'interroger sur la consciencedes modèles d'intelligence artificielle récents comme les modèles de langue.Pour commencer, je m'intéresserai à la notion de conscience et à ce qui lacaractérise. Ensuite, j'aborderai la question de l'intelligence et de sonlien avec le langage. Enfin, dans une dernière partie je me pencherai sur lecas de l'IA et sur sa conscience.Traducción al español:example_title: Translation from Frenchgroup: Spanish6 unmodified lines- text: Il était une fois une licorne qui vivaitexample_title: Fairy talegroup: French- text: >-Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and halfof the golf balls are blue. How many blue golf balls are there?A: Let's think step by step.example_title: Mathematical reasoninggroup: Englishco2_eq_emissions:emissions: 24700000source: >-Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Model.https://arxiv.org/abs/2211.02001training_type: pre-traininggeographical_location: Orsay, Francehardware_used: 384 A100 80GB GPUsmodel-index:- name: bloomresults:15 unmodified linestype: pass@100value: 0.5719815685597749verified: falsetags:- art- fanfic- erotic---<img src="https://s3.amazonaws.com/moonup/production/uploads/1657124309515-5f17f0a0925b9863e28ad517.png" alt="BigScience Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
README.md+60-21