A llama based validator which checks whether a given prompt is safe/unsafe by specifying a set of policies and lists the violating policies when applicable.
Project description
guardrails-ai-llamaguard-7b
A llama based validator which checks whether a given prompt is safe/unsafe by specifying a set of policies and lists the violating policies when applicable.
Installation
pip install guardrails-ai-llamaguard-7b
This validator ships local models. After installing, run the post-install step to download them:
python -m guardrails_ai.llamaguard_7b.post_install
Usage
from guardrails import Guard
from guardrails_ai.llamaguard_7b import LlamaGuard7B
guard = Guard().use(LlamaGuard7B)
License
MIT — © Guardrails AI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file guardrails_ai_llamaguard_7b-0.1.0.tar.gz.
File metadata
- Download URL: guardrails_ai_llamaguard_7b-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27b1478f2773b49f1ba0045a8444de671d0be8dc9e85b5bb89aacce172a6b983
|
|
| MD5 |
9b93e11d8894071022a06930015c6e10
|
|
| BLAKE2b-256 |
515e94cf18aad45c6538246fe07d19b17b80829498e64d105fc9c511764ecfca
|
File details
Details for the file guardrails_ai_llamaguard_7b-0.1.0-py3-none-any.whl.
File metadata
- Download URL: guardrails_ai_llamaguard_7b-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac874c381c54709e174df2bf6cbd9083ee87562bc0150e997bc495736459bd35
|
|
| MD5 |
a437c87fbf288de178685d2722d3dcde
|
|
| BLAKE2b-256 |
cb15d2cc390b7b06a25e0b48ee19a5c66bf31006f9fbab28f3225254fe3bbe7a
|