Skip to content

feat(rpc): Track A dual-Pixel 10 wired TPU cluster (GGML_RPC=ON, ACCEL+CPU fallback, 32B Q4_0 proof) - #12

Open
saariuslystoned wants to merge 26 commits into
mainfrom
feat/track-a-rpc-cluster
Open

saariuslystoned wants to merge 26 commits into
mainfrom
feat/track-a-rpc-cluster

Conversation

@saariuslystoned

Copy link
Copy Markdown
Owner

Summary

Completes Track A of #3 — bare-metal dual-Pixel 10 (2× Tensor G5 buenos_a0) wired TPU cluster inference with zero vendor .so dependencies, proven up to Qwen2.5-32B-Instruct-Q4_0 (17.43 GiB / 18.71 GB) over direct 5 Gbps USB-C CDC-NCM.

Changes

  • llama-cpp-edgetpu/build.sh: Enables -DGGML_RPC=ON -DGGML_RPC_RDMA=OFF and adds ggml-rpc-server to host/Android ARM64 build, strip, and llvm-readelf -d zero-vendor-.so verification.
  • llama-cpp-edgetpu/ggml-edgetpu.cpp: Implements ggml_backend_edgetpu_device_get_memory on Linux/Android (sysconf(_SC_PHYS_PAGES) + /proc/meminfo MemAvailable) so ggml-rpc-server -d EDGETPU reports real unified RAM capacity (15,575 MiB total, ~10,400 MiB free).
  • llama-cpp-edgetpu/patches/llama-cpp-b12608-rpc-accel-fallback.patch: Extends rpc_server (ggml/src/ggml-rpc/ggml-rpc.cpp) so host-accessible ACCEL backends (-d EDGETPU) execute MUL_MAT + post-MUL_MAT bias ADD runs on Tensor G5 while unsupported glue ops (RMS_NORM, ROPE, SOFT_MAX, SILU, etc.) fall back in-place via ggml_graph_view to a server-local CPU backend.
  • docs/TRACK_A_DUAL_PIXEL_CLUSTER.md, llama-cpp-edgetpu/README.md, README.md: Reproducible 5 Gbps USB-C CDC-NCM cluster playbook, 32B Q4_0 pooled-RAM proof, 1.5B benchmark table, and /proc/<pid>/maps zero-vendor-.so audit.

Proof & Verification

  • CI Clean-Room Audit & Host Tests: clean-room-audit PASS (0 forbidden binaries/paths), libopenbuenos 16/16 suites PASS, host test-backend-ops -b EDGETPU -o MUL_MAT 327/327 PASS.
  • ELF DT_NEEDED Audit: All 5 stripped Android ARM64 binaries (ggml-rpc-server, llama-cli, llama-bench, llama-completion, test-backend-ops) link strictly [libdl.so, libm.so, libc.so].
  • Live 32B Q4_0 (17.43 GiB) Across 2× Tensor G5 (rango + mustang, 5 Gbps USB-C NCM 10.99.0.1 ↔ 10.99.0.2):
    • Greedy output (temp=0, prompt "The capital of France is"): " Paris. Paris is located in the northern" (CLI_RC=0).
    • Pooled peak RSS: 18.94 GiB (20.34 GB) (rango 9.83 GiB + mustang 9.11 GiB, 0 kB swap on mustang), 34/65 layers offloaded (9,242.86 MiB on mustang RPC0), cpu_fallback_slices=0, rango hw_us=8.17 s (99.62% graph hit).
    • /proc/<pid>/maps on both nodes: zero Google/vendor .so.

Refs #3

# Conflicts:
#	README.md
#	llama-cpp-edgetpu/ggml-edgetpu.cpp
…ive graph nodes, and add ncm0 iptables ingress restriction
…oPE width and quantized copy shapes, exclude inactive nodes from planner, and check operands before cpu_dev query
…ct Hadamard hint, add --no-kv-offload, and regenerate git-native patch
…ack bitmask, and native EdgeTPU MUL_MAT_ID capability
…rce ncm0 ingress before launch, and note --no-kv-offload 1 for llama-bench
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant