Can I run gpt2 on a Radeon RX 7900 XTX?
Yes
Its published weights (548 MB) fit in the 21.6 GB a Radeon RX 7900 XTX can use, with room for ≈ 1K tokens of context.
hf download openai-community/gpt2Files and context on Radeon RX 7900 XTX
Each file of gpt2 (and of GGUF versions the site has analyzed), and how much context fits next to it, with the context cache in 16-bit or 8-bit.
| File | Size | On Radeon RX 7900 XTX | Context (16-bit) | Context (8-bit) |
|---|---|---|---|---|
| As published | 548 MB | Fits | 1K | 1K |
| 4-bit (estimate) | 77.1 MB | Fits | 1K | 1K |