]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml-rpc: chunk send()/recv() to avoid EINVAL for very large tensors over RPC (macOS...
authorTak-RS <redacted>
Wed, 13 Aug 2025 05:54:30 +0000 (14:54 +0900)
committerGeorgi Gerganov <redacted>
Mon, 18 Aug 2025 17:30:45 +0000 (20:30 +0300)
commit4e234ac01323fa74aed4f7a2600e8f8cc444ac61
treeb9deeb0a57e1d59e0547bea840ee56d7b911cfba
parent8df931b608951b9e4ec00af886c901de623f78c5
ggml-rpc: chunk send()/recv() to avoid EINVAL for very large tensors over RPC (macOS & others) (llama/15188)

* ggml-rpc: chunk send()/recv() to avoid EINVAL for very large tensors over RPC (macOS & others). Fixes #15055

* ggml-rpc: rename RPC_IO_CHUNK->MAX_CHUNK_SIZE, use std::min() for cap, switch to GGML_LOG_ERROR, handle 0-length send/recv

* rpc: drop n==0 special case in send_data(); retry in loop per review

* rpc: remove trailing whitespace in send_data()

---------

Co-authored-by: Shinnosuke Takagi <redacted>
ggml/src/ggml-rpc/ggml-rpc.cpp