corehu

OPEN MODELS

tiny-random-gpt2 vs tiny-random-GPT2LMHeadModel

tiny-random-gpt2 and tiny-random-GPT2LMHeadModel need about the same GPU memory (2 GB). Cheapest way to run them today: tiny-random-gpt2 from $0.36 per hour on RTX A4000, tiny-random-GPT2LMHeadModel from $0.36 per hour on RTX A4000.

tiny-random-gpt2tiny-random-GPT2LMHeadModel
Developerpeft-internal-testingpeft-internal-testing
Parameters——
WeightsF32F32
License——
GPU memory needed≈ 2 GB≈ 2 GB
Memory at 4-bit≈ 2 GB≈ 2 GB
Cheapest GPU that fitsRTX A4000 · $0.36RTX A4000 · $0.36
Downloads20,93516,718

Memory figures are our estimates for inference; real use depends on resolution, batch size and context length.

Questions

Which needs less GPU memory, tiny-random-gpt2 or tiny-random-GPT2LMHeadModel?
tiny-random-gpt2 and tiny-random-GPT2LMHeadModel need about the same GPU memory (2 GB).
Which is cheaper to run, tiny-random-gpt2 or tiny-random-GPT2LMHeadModel?
Cheapest way to run them today: tiny-random-gpt2 from $0.36 per hour on RTX A4000, tiny-random-GPT2LMHeadModel from $0.36 per hour on RTX A4000.