Profile. Tune. Verify. Reassess.
The stack runs this loop for every model and every GPU. Your traffic and quality limits guide each change, from model settings down to the kernels.
Profile
Find where the time goes in each denoising step and in the decode.
Tune
Adjust precision, attention and memory use in the stack, down to the kernels that run on each GPU.
Verify
Compare each change with the original model's output for quality and real speed on the target GPU.
Reassess
Measure again when traffic, models or hardware change, and tune again.