Files
ai-torture-chamber/.github/workflows/build-worker70.yml
T
EandClaude Opus 5.5 9f60f71a6d 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
2026-10-02 22:07:28 -04:00

42 lines
1.1 KiB
YAML

name: build-worker70
# Cloud build for the 70B GPTQ worker (Samantha meme arm) — no local docker.
# Builds live/Dockerfile.worker70 and pushes to ghcr.
on:
push:
branches: [master]
paths: ["live/Dockerfile.worker70", "live/worker.py", "live/server.py",
"live/requirements.txt"]
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./live
file: ./live/Dockerfile.worker70
push: true
tags: |
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