{"record":{"id":"f083d6ec25ef4b54","repo":"vllm-project/vllm","slug":"input-list-lengths-mismatch","errorCode":null,"errorMessage":"Input list lengths mismatch","messagePattern":"Input list lengths mismatch","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py","lineNumber":2423,"sourceCode":"            remote_block_ids=meta.remote_block_ids,\n            layer_name=layer_name,\n            kv_layer=kv_layer,\n            remote_notify_port=meta.remote_notify_port,\n            remote_ip=meta.remote_host,\n        )\n\n    def merge_contiguous_blocks(\n        self,\n        offsets_local: list[int],\n        offsets_remote: list[int],\n        sizes: list[int],\n        assume_sorted: bool = False,\n    ) -> tuple[list[int], list[int], list[int]]:\n        n = len(offsets_local)\n        if n == 0:\n            return [], [], []\n        if not (n == len(offsets_remote) == len(sizes)):\n            raise ValueError(\"Input list lengths mismatch\")\n        local_arr = np.fromiter(offsets_local, dtype=np.int64, count=n)\n        remote_arr = np.fromiter(offsets_remote, dtype=np.int64, count=n)\n        sizes_arr = np.fromiter(sizes, dtype=np.int64, count=n)\n\n        if assume_sorted:\n            local_sorted = local_arr\n            remote_sorted = remote_arr\n            sizes_sorted = sizes_arr\n        else:\n            if np.all(local_arr[:-1] <= local_arr[1:]):\n                local_sorted = local_arr\n                remote_sorted = remote_arr\n                sizes_sorted = sizes_arr\n            else:\n                sort_idx = np.argsort(local_arr, kind=\"stable\")\n                local_sorted = local_arr[sort_idx]\n                remote_sorted = remote_arr[sort_idx]\n                sizes_sorted = sizes_arr[sort_idx]","sourceCodeStart":2405,"sourceCodeEnd":2441,"githubUrl":"https://github.com/vllm-project/vllm/blob/c794754062d49a8fdb63ab3c5215b488b865030c/vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py#L2405-L2441","documentation":"Error \"Input list lengths mismatch\" thrown in vllm-project/vllm.","triggerScenarios":"Raised at vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py:2423 when validation fails: Input list lengths mismatch. Typically triggered by an incompatible or incomplete vLLM configuration, an unsupported platform/backend combination, or a runtime resource/dependency that is missing.","commonSituations":"Commonly encountered at vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py:2423 during vLLM startup/config validation or runtime setup when: (1) conflicting CLI flags or config fields are combined, (2) the current platform (CUDA/ROCm/CPU/XPU) or installed optional packages do not support the requested feature, or (3) a required value is absent or out of range. Resolve by correcting the configuration as described in the message, or by selecting a supported alternative.","solutions":["Ensure all input lists passed to the MoRIIO transfer have equal lengths."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c794754062d49a8fdb63ab3c5215b488b865030c","analyzedAt":"2026-08-14T21:17:39.825Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}