70B worker: Hermes-3-70B bnb-4bit on exp50's stack; Llama-safe startup; relay cancels abandoned GPU jobs

- 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
This commit is contained in:
EandClaude Opus 5.5 committed 2026-10-02 22:07:28 -04:00
1 parent 3a3d02e9ec
commit 9f60f71a6d
4 files changed
+164 -38

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
file: ./live/Dockerfile.worker70
push: true
tags: |
ghcr.io/terrafying/saw-chamber-worker-70b:v2
ghcr.io/terrafying/saw-chamber-worker-70b:v3
ghcr.io/terrafying/saw-chamber-worker-70b:latest
cache-from: type=gha
cache-to: type=gha,mode=max