[docs] PAN2: point the guardrail install at MBZUAI-IFM/PAN2-guardrail
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b466e3cde4
commit
7490986ec8
@@ -17,7 +17,7 @@ with its prompt and video guardrails by default, so install them first (see
|
||||
[Guardrails](../inference/pan2.md#guardrails)):
|
||||
|
||||
```bash
|
||||
pip install git+https://github.com/ifm-ai/pan2-guardrail
|
||||
pip install git+https://github.com/MBZUAI-IFM/PAN2-guardrail
|
||||
python examples/inference/basic/basic_pan2.py
|
||||
```
|
||||
|
||||
|
||||
@@ -54,12 +54,12 @@ VAE into the first latent frame of the conditioning input.
|
||||
## Guardrails
|
||||
|
||||
PAN 2 runs with guardrails by default, as in its vLLM-Omni and Diffusers integrations. The
|
||||
[`pan2-guardrail`](https://github.com/ifm-ai/pan2-guardrail) package checks every prompt before any compute and every
|
||||
[`pan2-guardrail`](https://github.com/MBZUAI-IFM/PAN2-guardrail) package checks every prompt before any compute and every
|
||||
generated video after decoding. A blocked prompt or video raises `PAN2GuardrailViolationError`. Install the package
|
||||
before loading the pipeline:
|
||||
|
||||
```bash
|
||||
pip install git+https://github.com/ifm-ai/pan2-guardrail
|
||||
pip install git+https://github.com/MBZUAI-IFM/PAN2-guardrail
|
||||
```
|
||||
|
||||
| Setting | Default | What it does |
|
||||
|
||||
@@ -48,7 +48,7 @@ class PAN2Guardrails:
|
||||
def __init__(self, offload_to_cpu: bool = False) -> None:
|
||||
if importlib.util.find_spec("pan2_guardrail") is None:
|
||||
raise ImportError("PAN 2 runs with guardrails by default, but the pan2-guardrail package is not installed. "
|
||||
"Install it with `pip install git+https://github.com/ifm-ai/pan2-guardrail`, " +
|
||||
"Install it with `pip install git+https://github.com/MBZUAI-IFM/PAN2-guardrail`, " +
|
||||
_DISABLE_HINT)
|
||||
self.offload_to_cpu = offload_to_cpu
|
||||
self.checker = None
|
||||
|
||||
Reference in New Issue
Block a user