GLiGuard 300M on Apple M4 (16 GB)
Can the Apple M4 (16 GB) run GLiGuard 300M?
Yes, it runs great
Runs great. At F16 it needs about 1.1 GB of 10.7 GB usable and makes one decision in about 54 ms.
- Best precision
F16- Time per decision
- 54 ms
- Decisions per second
- 18/s
- Input assumed
- 512 tokens
- Returns
- Probability or score
Best app to run it on the Apple M4 (16 GB)
On macOS
- Made for this model family: every label is scored in one pass, fast even on a CPU.
pip install gliner2Download GLiGuard 300M
Original weights · Hugging Face
Full-precision files from Fastino, for Transformers, Sentence Transformers, Text Embeddings Inference, Infinity or vLLM.
huggingface.co/fastino/gliguard-LLMGuardrails-300M (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 Apple M4 (16 GB)
| Quant | Memory needed | Available | Time per decision | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q8_0 | 0.9 GB | 10.7 GB | 48 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 | 1.1 GB | 10.7 GB | 54 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 7900 XTX
-
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)
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.