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-medium | mamba-370m-hf | |
|---|---|---|
| Developer | openai-community | state-spaces |
| Parameters | 380M | 370M |
| Weights | F32 | F32 |
| License | mit | — |
| GPU memory needed | ≈ 2 GB | ≈ 2 GB |
| Memory at 4-bit | ≈ 2 GB | ≈ 2 GB |
| Cheapest GPU that fits | Quadro P2000 · $0.07 | Quadro P2000 · $0.07 |
| Speed (est.) | ≈ 108 tok/s · $0.18/1M | ≈ 111 tok/s · $0.18/1M |
| Downloads | 150,654 | 3,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.