Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
bloom
Eval Results (legacy)
text-generation-inference

Run this model with HF Jobs

Run bigscience/bloom on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/bigscience/bloom. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/bigscience/bloom on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/bigscience/bloom. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/bigscience/bloom. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

How large is Bloom exactly to load all the checkpoints into gpu ram?

#127
by mishavee - opened
  1. How large is Bloom exactly to load all the checkpoints into gpu ram?

  2. How large of gpu ram would be needed to load all the checkpoints and fine tune it?

BigScience Workshop org

How large is Bloom exactly to load all the checkpoints into gpu ram?

You need 352G of GPU ram to load the weights in bfloat16 in GPUs.

How large of gpu ram would be needed to load all the checkpoints and fine tune it?

You never need to load all the checkpoints at once ... if you want to finetune you have to take in account optimizer states. Luckily you can try using DeepSpeed zero offload, it essentially moves the memory footprint to other spaces (either CPU RAM or Disk). @stas has written a great documentation about how to use it in transformers https://huggingface.co/docs/transformers/main_classes/deepspeed

so what is the least amount of A100 80gb gpus I need if I use deepspeed zero offload?

BigScience Workshop org

so what is the least amount of A100 80gb gpus I need if I use deepspeed zero offload?

The very minimum is probably going to be 1 A100. It's going to be very slow, but it's going to run. Offloading just means that it's going to use the CPU memory / disk space as additional memory so that you're not going to go out of memory.

Sign up or log in to comment