Spaces:
Running on Zero
Download README.md from reflection/iris: direct link, hf CLI and curl.
- Browser
- Download file 4.69 kB
-
https://huggingface.co/spaces/reflection/iris/resolve/main/README.md
- Command line
-
hf download hf://spaces/reflection/iris/README.md
-
curl -L -o README.md https://huggingface.co/spaces/reflection/iris/resolve/main/README.md
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 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:
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.
@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}
}
Iris Cyber Probe is described in Monitoring Activations for Real-Time Detection of Cyber Misuse.
@misc{alfano2026monitoring,
title = {Monitoring Activations for Real-Time Detection of Cyber Misuse},
author = {Alfano, Carlo and Stein, Adam and Gollapudi, Neil and Renardy, David
and Fram, Nick},
year = {2026},
eprint = {2611.37857},
archivePrefix = {arXiv},
primaryClass = {cs.CR},
url = {https://arxiv.org/abs/2611.37857}
}