exo-explore/exo · error · ValueError
Invalid endpoint {endpoint}
Error message
Invalid endpoint {endpoint} What it means
Error "Invalid endpoint {endpoint}" thrown in exo-explore/exo.
Source
Thrown at src/exo/worker/engines/mlx/disaggregated/client.py:48
@dataclass
class PrefillResult:
header: Header
kv_chunks: dict[int, list[KVChunk]] = field(
default_factory=dict[int, list[KVChunk]]
)
arrays: dict[int, list[TensorBlob]] = field(
default_factory=dict[int, list[TensorBlob]]
)
total_tokens: int = 0
def _parse_endpoint(endpoint: str) -> tuple[str, int]:
if ":" in endpoint:
host, port_str = endpoint.rsplit(":", 1)
return host, int(port_str)
raise ValueError(f"Invalid endpoint {endpoint}")
def remote_prefill_fetch(
endpoint: str,
request: PrefillRequest,
on_header: Callable[[Header], None] | None = None,
on_kv_chunk: Callable[[KVChunk, int], None] | None = None,
timeout_secs: float = _SOCKET_TIMEOUT_SECS,
) -> PrefillResult:
host, port = _parse_endpoint(endpoint)
logger.info(
f"Connecting to prefill server at {host}:{port} "
f"({len(request.token_ids)} tokens, start_pos={request.start_pos})"
)
sock = socket.create_connection((host, port), timeout=timeout_secs)
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, _RECV_BUFFER_BYTES)View on GitHub (pinned to 21a54c5ea0)
When it happens
Trigger: Thrown at src/exo/worker/engines/mlx/disaggregated/client.py:48 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of exo-explore/exo@21a54c5ea0 (2026-08-26).
Data as JSON: /api/errors/5092a545e379509f.
Report an issue: GitHub.