Downloads · 30 days
11
25% of all-time downloads
pillarsecurity/llamaguard_3_8b_w8a8
llamaguard_3_8b_w8a8 is a machine learning model from pillarsecurity. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
--- license: llama3 language: - en pipelinetag: text-generation tags: - meta - llama-guard - safety - llmcompressor - w8a8 - int8 - vllm - latency - ttft ---
Downloads · 30 days
11
25% of all-time downloads
All-time downloads
44
Public
Parameters
8B
9.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.1 GB · 100%
How the weights are stored.
I87B · 87%
From the Hugging Face model README
license: llama3
language:
- en
pipeline_tag: text-generation
tags:
- meta
- llama-guard
- safety
- llmcompressor
- w8a8
- int8
- vllm
- latency
- ttft
---
# Llama-Guard-3-8B — W8A8 (llmcompressor, vLLM-ready)
Quantized with llmcompressor using SmoothQuant + GPTQ (W8A8).
## Use with vLLM
Python:
```python
from vllm import LLM, SamplingParams
llm = LLM(model="pillarsecurity/llamaguard_3_8b_w8a8") # vLLM auto-detects quantization
# Alternatively: llm = LLM(model="pillarsecurity/llamaguard_3_8b_w8a8", quantization="w8a8")
out = llm.generate(["<formatted Llama-Guard prompt>"], SamplingParams(max_tokens=64, temperature=0.0))
print(out[0].outputs[0].text)
```
Server:
```bash
vllm serve pillarsecurity/llamaguard_3_8b_w8a8
# Or explicitly:
# vllm serve pillarsecurity/llamaguard_3_8b_w8a8 --quantization w8a8
```
Notes:
- Calibrated on a small wikitext sample by default. For best fidelity, quantize with your moderation prompts/logs.
- Tokenizer is included and must be loaded from this repo.