Downloads · 30 days
0
sadisylarq/llama-guard-3-8b-custom
llama-guard-3-8b-custom is a machine learning model from sadisylarq. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a custom handler for deploying the meta-llama/Llama-Guard-3-8B model as a HuggingFace Inference Endpoint.
Downloads · 30 days
0
Access
Public
Updated Nov 28, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py2.5 KB · 41%
From the Hugging Face model README
This repository contains a custom handler for deploying the meta-llama/Llama-Guard-3-8B model as a HuggingFace Inference Endpoint.
{
"inputs": "Text to classify for safety"
}
Or for batch processing:
{
"inputs": ["Text 1", "Text 2", "Text 3"]
}
[
{
"label": "safe",
"score": 0.95
}
]
sadisylarq/llama-guard-3-8b-customdx24-llama-guardus-east-1nvidia-l4 or nvidia-a10g011800 secondsOnce deployed, test with:
import requests
API_URL = "https://your-endpoint-url.aws.endpoints.huggingface.cloud"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
data = {"inputs": "Is this content safe?"}
response = requests.post(API_URL, headers=headers, json=data)
print(response.json())
Follows the license of the base model: meta-llama/Llama-Guard-3-8B