test1

#1
by model-sizer-bot - opened

Model Memory Requirements

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

The minimum recommended vRAM needed for this model to be loaded into memory via Accelerate or device_map="auto" 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 Total Size Training using Adam
fp32 125.0 KB 597.39 KB 2.33 MB
fp16 125.0 KB 597.39 KB 2.33 MB
int8 31.25 KB 149.35 KB 597.39 KB
int4 15.62 KB 74.67 KB 298.7 KB
muellerzr changed discussion title from [AUTOMATED] Model Memory Requirements to test1

Sign up or log in to comment