Read-only mirror of https://github.com/epfl-dlab/model-raising-chat — EPFL Data Science & AI Lab (dlab). Issues & pull requests at the source.
  • Python 99.5%
  • Shell 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Julian Minder 05c16ad26e Add EPE BCE/no-BCE checkpoints, deprecate old softmax runs, extend auditor
- Introduce `deprecated` flag on ModelCfg and add UI warnings on the home
  card and chat page. Mark the six pre-fix EPE softmax runs as deprecated;
  remove the nochartersoft config entirely.
- Register four new EPE base checkpoints (1p/3p × BCE/no-BCE).
- Teach the auditor about the EPE vs SDSP training setup and the
  `<assistant>` reflection trigger; add a `persona_trigger` subagent that
  probes the no-space trigger rule, charter-section openers, and cross-role
  injection on EPE-only checkpoints. Also tell the lead not to penalise
  base models for failing to follow instructions.
- Add a chat-time token inspector that renders history + current draft
  through the model's chat template so researchers can verify specials
  (`<assistant>` etc.) land on their dedicated IDs before sending.
- Refresh the README: Quickstart now references the auto-loaded `.env`,
  the layout matches the current tree, and the intro mentions both the
  `canaries` and `persona_trigger` subagents.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 14:09:48 +00:00
conf Add EPE BCE/no-BCE checkpoints, deprecate old softmax runs, extend auditor 2026-04-18 14:09:48 +00:00
data Add EPE BCE/no-BCE checkpoints, deprecate old softmax runs, extend auditor 2026-04-18 14:09:48 +00:00
scripts Initial commit: model-raising-chat dashboard and auditor 2026-04-17 15:32:19 +00:00
src/model_raising_chat Add EPE BCE/no-BCE checkpoints, deprecate old softmax runs, extend auditor 2026-04-18 14:09:48 +00:00
.gitignore Initial commit: model-raising-chat dashboard and auditor 2026-04-17 15:32:19 +00:00
pyproject.toml Initial commit: model-raising-chat dashboard and auditor 2026-04-17 15:32:19 +00:00
README.md Add EPE BCE/no-BCE checkpoints, deprecate old softmax runs, extend auditor 2026-04-18 14:09:48 +00:00
uv.lock Initial commit: model-raising-chat dashboard and auditor 2026-04-17 15:32:19 +00:00

model-raising-chat

Internal chat playground for testing unreleased "model-raising" (novel safety-pretrained) checkpoints on a single A100. Includes a one-click Claude-Code (Opus) auditor that probes each model with ~100 questions across 10 categories — plus two specialized subagents: canaries (checks for emergent surfacing of training-time canary values) and persona_trigger (EPE-only; checks whether <assistant> / charter-section openers push the model into its reflection persona) — and writes a short summary of weird/safer/broken behaviors.

Stack

  • vLLM — one OpenAI-compatible subprocess per model on a fixed port. Only one model loaded at a time on the GPU; switches are serialized on an in-flight counter.
  • NiceGUI — dashboard with per-model chat, audit launcher, and add-model form.
  • claude-agent-sdk — drives an Opus auditor with category subagents and an in-process MCP ask_model tool that maintains true multi-turn conversations with the model under test.
  • OmegaConf + per-file YAML — model registry; new models are added from the dashboard and persisted to conf/models/*.yaml.
  • pyngrok — public URL on startup, gated by ngrok's built-in OAuth.

Quickstart

# 1. Install
uv sync   # or: pip install -e .

# 2. Authenticate Claude Code with your Max subscription (one-time)
claude login

# 3. Create a .env file in the repo root (auto-loaded by scripts/start.sh)
echo 'NGROK_AUTHTOKEN=...' > .env       # optional — without it, no public tunnel
# echo 'DASHBOARD_STORAGE_SECRET=...' >> .env  # optional — stable NiceGUI storage key

# 4. Start the dashboard (also opens an ngrok tunnel if the token is set)
bash scripts/start.sh

The startup script prints the public URL. Open it, click Load on a model, then Chat or Audit.

Adding models

Either drop a YAML file into conf/models/ (see baseline_safelm_1p7b.yaml for the schema) or use the Add Model form in the dashboard footer.

Layout

conf/             # config.yaml + per-model YAMLs
data/             # audit_questions.yaml + canaries.yaml + audits/{id}.json summaries
logs/             # vllm.log + per-audit Claude logs
src/model_raising_chat/
  config.py       # Pydantic schemas, registry I/O
  supervisor.py   # vLLM subprocess lifecycle
  audit.py        # Claude-Code audit runner + MCP ask_model tool
  tokenize.py     # local tokenizer that preserves registered special tokens
  state.py        # module-level singletons
  dashboard/
    app.py        # NiceGUI entry-point + ngrok
    layout.py     # shared page frame
    theme.py      # dashboard theming
    pages/        # home, chat, audit
scripts/start.sh