corehu

OPEN MODELS

gpt2-medium vs mamba-370m-hf

gpt2-medium and mamba-370m-hf need about the same GPU memory (2 GB). Cheapest way to run them today: gpt2-medium from $0.07 per hour on Quadro P2000, mamba-370m-hf from $0.07 per hour on Quadro P2000.

gpt2-mediummamba-370m-hf
Developeropenai-communitystate-spaces
Parameters380M370M
WeightsF32F32
Licensemit—
GPU memory needed≈ 2 GB≈ 2 GB
Memory at 4-bit≈ 2 GB≈ 2 GB
Cheapest GPU that fitsQuadro P2000 · $0.07Quadro P2000 · $0.07
Speed (est.)≈ 108 tok/s · $0.18/1M≈ 111 tok/s · $0.18/1M
Downloads150,6543,236

Memory figures are our estimates for inference; real use depends on resolution, batch size and context length. Speed is an estimate for one request at a time from the GPU's memory bandwidth; serving many requests at once raises total throughput and lowers the cost per token.

Questions

Which needs less GPU memory, gpt2-medium or mamba-370m-hf?
gpt2-medium and mamba-370m-hf need about the same GPU memory (2 GB).
Which is cheaper to run, gpt2-medium or mamba-370m-hf?
Cheapest way to run them today: gpt2-medium from $0.07 per hour on Quadro P2000, mamba-370m-hf from $0.07 per hour on Quadro P2000.