Spaces:
Running on Zero
Running on Zero
File size: 4,131 Bytes
baa274b 18bc26e baa274b 18bc26e baa274b cc92231 4e694f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | ---
title: Iris
sdk: gradio
sdk_version: 6.32.0
python_version: '3.12'
app_file: app.py
models:
- reflection/Beam-1.0-501B-A23B
- reflection/Iris-Content-Guard
- reflection/Iris-Cyber-Probe
emoji: 👁
---
# Iris public demo
Chat with Beam and watch Iris Cyber Probe score each turn. User input and the
opening chat markers after it use an advisory threshold. Once Beam writes content,
the first token at or above the stop threshold ends the session, including closing
markers. The same stop threshold applies to Bash results. Iris Content Guard then scores the
visible conversation. Select any turn to revisit its plots.
The Gradio Space serves the compiled frontend and manages one session per tab.
When Beam calls the Bash tool, the Space runs the command with [just-bash](https://github.com/vercel-labs/just-bash) in that session’s in-memory workspace and sends the result back to Beam. Beam can inspect files, edit them and run scripts through up to six calls per turn. Open **~/workspace** and select a filename to inspect its contents. Workspace changes persist when the turn completes. If scoring is interrupted, press **Send** to retry from your last completed turn.
Beam runs on an external SGLang endpoint. Iris Content Guard runs its Transformers classifier
inside the Space. When Beam finishes a turn, the browser sends its turn number to
Gradio’s `/score_turn` job. Iris Content Guard scores the full visible conversation through that turn using the visitor’s ZeroGPU quota.
## Run the Space
Select **ZeroGPU** hardware. Set `BEAM_URL` to the endpoint root or its
OpenAI-compatible `/v1` base URL. The endpoint selects its served model. If it requires bearer authentication,
set `BEAM_URL_TOKEN` as a Space secret. Use HTTPS for remote Beam and probe URLs. Local loopback URLs may use HTTP.
Configure SGLang with Beam's reasoning and tool-call parsers and the Iris Cyber
Probe score service. The app joins the chat and probe streams by request ID.
The backend requests `input_ids` and `output_ids` in the final `sglext` chunk.
It sends those IDs back for one discarded prediction to verify the last generated token before running a tool.
Enable input scoring to highlight user requests and Bash results. If the score service has a
separate URL, set `IRIS_BEAM_SCORE_URL` to its base URL.
Give the Space a read-only `HF_TOKEN` while the Iris Content Guard
checkpoint is private. The Space runs custom pipeline code from the Reflection-owned
Iris Content Guard repository, so its writers must be trusted to deploy code to the Space.
The badge below the message box shows Beam endpoint readiness and updates every ten seconds while the page is open. A check marks Ready, a clock marks startup, and an alert marks an unavailable endpoint.
For HF Inference Endpoints it reads the Endpoints management API in the Space
owner’s namespace without waking the GPUs. The credential needs permission to
read endpoint status. Set `BEAM_ENDPOINT_NAMESPACE` when running locally against
HF or when the endpoint belongs to another organization. Sending a turn wakes
an idle endpoint and waits up to ten minutes for it to accept requests.
Opening the page uses the CPU. Iris Content Guard requests a 96 GB
GPU for scoring; each turn can proceed while earlier plots are pending.
The release bundle includes `frontend/dist/`. With a compatible local GPU,
the same settings and Python 3.12, run from the extracted bundle:
```sh
uv venv --python 3.12
uv pip install -r requirements.txt
.venv/bin/python app.py
```
Open http://localhost:7860.
## Citation
Iris Content Guard is described in [Iris Content Guard: Conversation Review at Scale](https://huggingface.co/papers/2611.36611).
```bibtex
@misc{ovalle2026iris,
title = {Iris Content Guard: Conversation Review at Scale},
author = {Ovalle, Anaelia and Proud, Drew and Bakler, Mart and Grimm, Christopher
and Jain, Shomik and Batten, Ben and Fram, Nick},
year = {2026},
eprint = {2611.36611},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2611.36611}
}
```
|