Llama Prompt Guard 2 22M on AMD Radeon RX 7900 XTX
Can the AMD Radeon RX 7900 XTX run Llama Prompt Guard 2 22M?
Yes, it runs great
Runs great. At F16 it needs about 0.8 GB of 24.0 GB usable and makes one decision in about 4.6 ms.
- Best precision
F16- Time per decision
- 4.6 ms
- Decisions per second
- 218/s
- Input assumed
- 512 tokens
- Returns
- Probability or score
Best app to run it on the AMD Radeon RX 7900 XTX
On Windows
- A few lines of Python with Transformers or Sentence Transformers; easiest for scripts and notebooks.
python -c "from transformers import pipeline; print(pipeline('text-classification', model='meta-llama/Llama-Prompt-Guard-2-22M')('text'))"On Linux
- Local API for rerankers and classifiers, including models TEI does not support.
infinity_emb v2 --model-id meta-llama/Llama-Prompt-Guard-2-22MDownload Llama Prompt Guard 2 22M
Original weights · Hugging Face
Full-precision files from Meta, for Transformers, Sentence Transformers, Text Embeddings Inference, Infinity or vLLM.
huggingface.co/meta-llama/Llama-Prompt-Guard-2-22M (opens in a new tab)
How it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Precision | 30.6 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 15.0 / 15 | |
| Clarity | 15.0 / 15 | |
| Match score | 85.6 / 100 |
Every quantization on the AMD Radeon RX 7900 XTX
| Quant | Memory needed | Available | Time per decision | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q8_0 | 0.7 GB | 24.0 GB | 4.5 ms | Runs great | 68Good quality (B) · 68 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking. | All files (opens in a new tab) |
F16 | 0.8 GB | 24.0 GB | 4.6 ms | Runs great | 68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Times are for one request with a 512-token input. Batching servers process many requests at once.
Other hardware that runs it
-
68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 9070 XT
-
68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking.
AMD Ryzen AI Max+ 395 (128 GB)
-
68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking.
Apple M1 (16 GB)
-
68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking.
Apple M1 Max (64 GB)
-
68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking.
Apple M2 Ultra (192 GB)
-
68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 85/100 (quality, fit, speed and memory use) sets the ranking.
Apple M3 Ultra (256 GB)
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.