Run this model with HF Jobs

Run google-bert/bert-base-cased 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 to fine-tune https://huggingface.co/google-bert/bert-base-cased. 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/google-bert/bert-base-cased 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.

[AUTOMATED] Model Memory Requirements

#39
by model-sizer-bot - opened

Model Memory Requirements

You will need about {'dtype': 'float16/bfloat16', 'Largest Layer or Residual Group': '42.47 MB', 'Total Size': '206.59 MB', 'Training using Adam (Peak vRAM)': {'model': 433249280, 'optimizer': 866498560, 'gradients': 649873920, 'step': 866498560}} VRAM to load this model for inference, and {'dtype': 'int4', 'Largest Layer or Residual Group': '10.62 MB', 'Total Size': '51.65 MB', 'Training using Adam (Peak vRAM)': {'model': -1, 'optimizer': -1, 'gradients': -1, 'step': -1}} VRAM to train it using Adam.

These calculations were measured from the Model Memory Utility Space on the Hub.

The minimum recommended vRAM needed for this model assumes using Accelerate or device_map="auto" and is denoted by the size of the "largest layer".
When performing inference, expect to add up to an additional 20% to this, as found by EleutherAI. More tests will be performed in the future to get a more accurate benchmark for each model.

When training with Adam, you can expect roughly 4x the reported results to be used. (1x for the model, 1x for the gradients, and 2x for the optimizer).

Results:

dtype Largest Layer or Residual Group Total Size Training using Adam (Peak vRAM)
float32 84.95 MB 413.18 MB {'model': 433249280, 'optimizer': 866498560, 'gradients': 433249280, 'step': 1732997120}
float16/bfloat16 42.47 MB 206.59 MB {'model': 433249280, 'optimizer': 866498560, 'gradients': 649873920, 'step': 866498560}
int8 21.24 MB 103.29 MB {'model': -1, 'optimizer': -1, 'gradients': -1, 'step': -1}
int4 10.62 MB 51.65 MB {'model': -1, 'optimizer': -1, 'gradients': -1, 'step': -1}

Sign up or log in to comment