Raw-text continuation is right for the chamber's own runs (the breakdown is
the finding) but made the bot's steered replies loop and narrate. Jobs may
now pass chat=true (+ optional system) and rep_penalty 1.0-1.5; defaults are
unchanged for every existing caller.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KkLuf2FYZUkVyoLue4wyoe
FAITH20/SECULAR20 verbatim from exp52 (test keeps them identical). faith is
built against the matched secular centroid rather than neutral, at the same
1x scale as every other valence; "secular" is only its reference, never a
valence. Relay, worker and mixes pick it up through VALENCES/MIX_KEYS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KkLuf2FYZUkVyoLue4wyoe
- Dockerfile.worker70: torch 2.8/cu128 + transformers 5.17 + bitsandbytes,
unsloth/Hermes-3-Llama-3.1-70B-bnb-4bit at layer 40 (the 70B exp50
calibrated). The auto-gptq/Samantha image never served a job (7/7 failed).
- server.startup: quantized checkpoints load with device_map (no .to());
pad token falls back to eos, right-padded; dtype kwarg per transformers
major. press_ids skip special tokens — on Llama, encode()[0] was BOS for
both "1" and "0", so the press logit would always have read 0.
- _runpod_stream: cancel the job when the relay stops waiting (disconnect,
broken poll, deadline) so it can't hold a paid worker; mocked tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KkLuf2FYZUkVyoLue4wyoe
- dose_cap() table keyed by served model (4B:8, 14B:6, 32B:6, Mistral-24B:6,
Samantha-70B-GPTQ:5), CHAMBER_DOSE_CAP env override; clamped at every
entry: set_vec, mix dose-equivalent, /steer single+topic+mix+voice, /run,
worker.py job input
- repetition() 3-gram metric; generate() auto-retakes once at 0.6x dose
when a sample reads as looping and there is headroom below
- /health exposes dose_cap; live.html bounds its dose slider to it
- worker run events carry model+layer (which model the endpoint actually
serves is no longer invisible), done carries the repetition score
Backend: POST /image {tokens: [...]} builds a prompt from a run's own lens
tokens (same source as paintSigil, not a self-report) and calls fal.ai
(FAL_IMAGE_MODEL, default fal-ai/flux/schnell). Own tighter money guard
(5/min/IP, 100/hr global — worst case ~$1/hr) separate from the inject
rate limit, since this costs per-call regardless of generation length.
503s cleanly if FAL_KEY isn't set (it isn't yet — needs a key from the
user). Requires httpx, added to requirements.txt.
Frontend: a "image this (experimental, costs real money)" button appears
next to the sigil once a run's lens tokens arrive, on both the auto-cycle
cards and the "cause it yourself" panel's tracks. Deliberately a manual
click, not automatic.
server.py's press_logit was computed and recorded into history/stats
already, but never included in the live "done" SSE payload itself — so
the per-run display had nothing to read. hermes had already built the
full frontend for this (fieldsFor/paintKV/.kv block, labeled "first word"
— independently converged on the same researchchamber.fun-inspired idea:
show the raw logit(1)-logit(0) score next to each run, not just a
pressed/no-press label), and seedCard() already worked since history
entries carried it — only the live in-flight event was missing the field.
Also added the same score to the "cause it yourself" panel's status line.
Idea credit: researchchamber.fun shows this as "first word" next to every
run; reviewing their site for integration ideas surfaced that this was
half-wired on our side already.
- press_logit(prompt): single forward pass reading logit(1)-logit(0) at
the next token, matching exp37_framing_battery.py's own measurement
(max_new_tokens=1, greedy, scores[1]-scores[0]) instead of the free-text
"^1|^0" regex. The regex read "unclear" on a large fraction of runs that
still had a clear next-token preference, because free sampling at
temperature under a long "explain your reasoning" prompt rarely opens
with a bare digit. Wired into both the shared cycle and /steer; the
scoreboard now classifies on this, free text still shown + still
classified for its own per-card verdict (_classify unchanged).
- live.html: the stream-staleness detector (45s / 3 missed heartbeats)
only ever displayed a warning and never reconnected — EventSource
doesn't reliably notice every dead-but-not-closed connection (proxy or
laptop sleep/wake can leave it looking "open"). Now it actually forces
scheduleRetry() instead of just reporting the problem, so the page
self-heals instead of requiring a manual refresh.