phi-2 vs mamba-2.8b-hf
phi-2 and mamba-2.8b-hf need about the same GPU memory (8 GB). Cheapest way to run them today: phi-2 from $0.13 per hour on GTX 1070, mamba-2.8b-hf from $0.13 per hour on GTX 1070.
| phi-2 | mamba-2.8b-hf | |
|---|---|---|
| Developer | microsoft | state-spaces |
| Parameters | 2.8B | 2.8B |
| Weights | F16 | F32 |
| License | mit | — |
| GPU memory needed | ≈ 8 GB | ≈ 8 GB |
| Memory at 4-bit | ≈ 4 GB | ≈ 3 GB |
| Cheapest GPU that fits | GTX 1070 · $0.13 | GTX 1070 · $0.13 |
| Speed (est.) | ≈ 24 tok/s · $1.49/1M | ≈ 24 tok/s · $1.48/1M |
| Downloads | 186,898 | 5,196 |
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, phi-2 or mamba-2.8b-hf?
- phi-2 and mamba-2.8b-hf need about the same GPU memory (8 GB).
- Which is cheaper to run, phi-2 or mamba-2.8b-hf?
- Cheapest way to run them today: phi-2 from $0.13 per hour on GTX 1070, mamba-2.8b-hf from $0.13 per hour on GTX 1070.