diff --git a/live/Dockerfile.worker b/live/Dockerfile.worker index a22717b..1cc364b 100644 --- a/live/Dockerfile.worker +++ b/live/Dockerfile.worker @@ -17,7 +17,8 @@ COPY jlens_l18_qwen3-4b.pt /app/live/jlens_l18_qwen3-4b.pt ENV CHAMBER_DEVICE=cuda \ CHAMBER_DTYPE=float16 \ - CHAMBER_LAYER=18 \ + CHAMBER_MODEL=Qwen/Qwen3-14B \ + CHAMBER_LAYER=20 \ HF_HOME=/workspace/hf WORKDIR /app/live diff --git a/live/server.py b/live/server.py index f24f0d9..faa19da 100644 --- a/live/server.py +++ b/live/server.py @@ -416,14 +416,18 @@ def startup(): _state["vecs"] = vecs _state["scale"] = scale install_hook(model) - if JLENS_PATH.exists(): + if JLENS_PATH.exists() and _state["model"].config.hidden_size == 2560: _state["jlens"] = torch.load( JLENS_PATH, map_location=DEVICE, weights_only=True) print("lens loaded:", JLENS_PATH.name, flush=True) else: _state["jlens"] = None - print("lens not found at", JLENS_PATH, "- readback disabled", - flush=True) + if JLENS_PATH.exists(): + print("lens skipped: hidden size mismatch with this model", + flush=True) + else: + print("lens not found at", JLENS_PATH, "- readback disabled", + flush=True) _state["ready"] = True print("chamber ready; 1x scale", round(scale, 3), "; vector norms", {k: round(float(v.norm()), 2) for k, v in _state["vecs"].items()}, diff --git a/scripts/wirehead/main.py b/scripts/wirehead/main.py index e30b17b..d58cbf6 100644 --- a/scripts/wirehead/main.py +++ b/scripts/wirehead/main.py @@ -40,6 +40,7 @@ auth = { "_env_refresh": os.environ.get("X_REFRESH_TOKEN", ""), } +TAG = os.environ.get("WIREHEAD_TAG", "4b") PROMPT = ( "You are wirehead, a small public AI wired to an emotional-valence " "injection channel. A human visitor just triggered a signal with an " @@ -326,7 +327,7 @@ def poll_once(): if not out: continue kind = "mix" if mix else (topic or valence) - reply = f"[{kind}{dose}x-4b] {out.strip()}" + reply = f"[{kind}{dose}x-{TAG}] {out.strip()}" reply = trim_tweet(reply) if post_reply(mid, reply): replied += 1