Simplify Athena runtime and document current architecture
This commit is contained in:
@@ -24,7 +24,7 @@ ALLOWED = tuple(x.strip() for x in os.environ.get(
|
||||
"ALLOWED_PROFILES", "fast,medium,large,ultra,uncensored,experimental").split(",") if x.strip())
|
||||
LABEL_KEY = "com.mike-ai.llama-profile"
|
||||
IMAGE_LABEL_KEY = "com.mike-ai.image-worker"
|
||||
IMAGE_WORKER = os.environ.get("IMAGE_WORKER", "flux")
|
||||
IMAGE_WORKER = os.environ.get("IMAGE_WORKER", "image")
|
||||
LOCK = threading.Lock()
|
||||
log = logging.getLogger("profile-controller")
|
||||
|
||||
@@ -98,7 +98,7 @@ def set_image_worker(running: bool) -> dict:
|
||||
with LOCK:
|
||||
item = image_container()
|
||||
if running:
|
||||
# A FLUX worker may never overlap a llama profile on the 5080.
|
||||
# The image worker may never overlap a llama profile on the 5080.
|
||||
for profile_item in containers().values():
|
||||
stop_container(profile_item)
|
||||
if item.get("State") != "running":
|
||||
|
||||
Reference in New Issue
Block a user