Hardware profiles: run trog on arbitrary GPU configurations #27
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cmoriarty/trog#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spun off from the #26 audit. The env-var slice landed there (
SEAT_GPUS_IMAGE/_ANIMATE/_AUDIO+ docs/self-hosting.md); this ticket is the real generalization: trog on hardware that isn't 4x16GB Turing.Problem
Even with card assignment env-driven, the content of the stack assumes the reference rig:
brain/llama-swap.yaml); smaller rigs need a curated smaller roster, and the studio selector should stay honest about what fits.Sketch
A hardware profile = named bundle of: seat->GPU map, per-profile workflow selection, brain roster file, dtype/quant hints. Something like
profiles/trogdor.yaml,profiles/single-24gb.yaml, selected by one stack env var. Workflow selection hooks exist already (pick_workflow,ANIMATE_WORKFLOW); the roster is already a single file.Acceptance
trog test asset --mockAND a real one-item image drain with only stack-env changes.Implemented (
44d33d7) — verified on real hardwareA hardware profile is a named YAML bundle in
server/trog_lib/profiles/: seat→GPU maps, per-lane workflow selection (t2i / t2i_fine / i2i / i2v), and the brain roster the rig is sized for.TROG_PROFILEselects one; layering is defaults < profile <SEAT_GPUS_*env.Shipped profiles
Brain rosters moved to
brain/rosters/<name>.yaml, all baked into the image,BRAIN_ROSTERpicks at runtime (trogdor content unchanged).Acceptance evidence (live, on trogdor)
TROG_PROFILE=single-24gbran a real image one-off — seat container bound toDeviceIDs: ["0"]exactly, Z-Image lane, brain bracketed, 64px gold-key sprite delivered to the file server. Env-only change, no source edits.TROG_PROFILE=trogdor+BRAIN_ROSTER=trogdor— no new Portainer env needed, nothing changes for development or deployment.Hand-off
Images are already built on the GPU host — one
make deployships it (behavior identical under defaults). docs/self-hosting.md documents profiles + how to add one; CLAUDE.md updated for agents.CI green on HEAD (
1d45a59) — pytest + studio jobs both pass with the profiles code. Closing per user direction;make deployships it whenever convenient (identical behavior under the trogdor defaults).