Metadata-Version: 2.4
Name: guardrails-ai-shieldgemma-2b
Version: 0.2.1a1
Summary: A Gemma based validator for moderating user prompts to guard against harmful content by specifying a policy.
Author: Guardrails AI
License-Expression: MIT
Project-URL: Homepage, https://guardrailsai.com
Project-URL: Repository, https://github.com/guardrails-ai/guardrails-hub-monorepo/tree/main/shieldgemma_2b/py
Project-URL: Documentation, https://github.com/guardrails-ai/guardrails-hub-monorepo/blob/main/shieldgemma_2b/py/README.md
Requires-Python: <4,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: guardrails-ai>=0.4.0
Requires-Dist: torch>=2.1
Requires-Dist: transformers>=4.44
Requires-Dist: accelerate>=0.30
Provides-Extra: dev
Requires-Dist: ruff; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: coverage>=7.6.12; extra == "dev"
Requires-Dist: pyright[nodejs]>=1.1.396; extra == "dev"
Dynamic: license-file

# guardrails-ai-shieldgemma-2b

A Gemma based validator for moderating user prompts to guard against harmful content by specifying a policy.

## Installation

```bash
pip install guardrails-ai-shieldgemma-2b
```

## Usage

```python
from guardrails import Guard
from guardrails_ai.shieldgemma_2b import ShieldGemma2B

guard = Guard().use(ShieldGemma2B)
```

## License

MIT — © Guardrails AI.
