Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /InferiaAI_InferiaLLM /src /orchestration /constants.py
| from enum import Enum | |
| class NodeState(str, Enum): | |
| """Valid node states in compute_inventory.""" | |
| ORDERED = "ordered" | |
| PROVISIONING = "provisioning" | |
| READY = "ready" | |
| BUSY = "busy" | |
| UNHEALTHY = "unhealthy" | |
| TERMINATED = "terminated" | |
| OFFLINE = "offline" | |
| def from_incoming(cls, state: str) -> str: | |
| """Map incoming states to valid DB enum values.""" | |
| mapping = { | |
| "failed": cls.UNHEALTHY.value, | |
| "completed": cls.TERMINATED.value, | |
| } | |
| return mapping.get(state.lower(), state) | |
| class DeploymentState(str, Enum): | |
| """Valid deployment states.""" | |
| PENDING = "PENDING" | |
| PROVISIONING = "PROVISIONING" | |
| SCHEDULING = "SCHEDULING" | |
| DEPLOYING = "DEPLOYING" | |
| RUNNING = "RUNNING" | |
| STOPPED = "STOPPED" | |
| FAILED = "FAILED" | |
| TERMINATING = "TERMINATING" | |
| TERMINATED = "TERMINATED" | |
Xet Storage Details
- Size:
- 894 Bytes
- Xet hash:
- 9db6d14c831ab73afd9be8b3bcca4b3190d88b111e1a26d7f7f97f3ebe3ff997
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.