mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-17 22:35:01 +08:00
[Misc] Avoid "PyTorch non-writable tensors" warning in RayPPCommunicator (#27443)
Signed-off-by: Rui Qiao <ruisearch42@gmail.com>
This commit is contained in:
parent
074475541a
commit
09a6a49eaf
@ -99,7 +99,7 @@ class RayPPCommunicator(Communicator):
|
|||||||
|
|
||||||
# Ray actor IDs are 32-character hex strings (128 bits)
|
# Ray actor IDs are 32-character hex strings (128 bits)
|
||||||
ACTOR_ID_LEN = 32
|
ACTOR_ID_LEN = 32
|
||||||
actor_id_bytes = actor_id_str.encode("utf-8")
|
actor_id_bytes = bytearray(actor_id_str.encode("utf-8"))
|
||||||
assert len(actor_id_bytes) == ACTOR_ID_LEN, (
|
assert len(actor_id_bytes) == ACTOR_ID_LEN, (
|
||||||
f"Unexpected actor ID length: {len(actor_id_bytes)}"
|
f"Unexpected actor ID length: {len(actor_id_bytes)}"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user