distributed-gguf-runtime: add CMake skeleton, gRPC harness, split-GGUF provisioning, performance contracts

DGR-019  Lock alpha/beta performance contracts (evidence + contract framework)
DGR-020  Run controlled whole-model GGUF baseline (benchmark results & contracts)
DGR-024  Real generated-gRPC protocol harness (shard_runtime_server.py + tests)
DGR-026  split-GGUF provisioning outside /home (provision script + manifest + tests)
DGR-028  Numbered patch-stack apply & verify (llama_cpp_dependency.py + UPSTREAM_LOCK.json)
DGR-029  Native CMake skeleton + deterministic CPU lane (UPSTREAM_LOCK.json + cmake gating)

New modules:
  packages/node/meshnet_node/dgr_performance/  — performance contract framework
  packages/node/meshnet_node/split_gguf/        — split-GGUF manifest & provisioning
  scripts/provision_split_gguf.py               — artifact provisioning CLI
  tests/test_dgr_performance_contract.py        — contract validation tests
  tests/test_split_gguf_manifest.py             — manifest tests
  tests/test_split_gguf_provision.py            — provisioning tests
  tests/test_shard_runtime_harness.py           — gRPC harness tests
This commit is contained in:
Dobromir Popov
2026-07-23 09:55:00 +03:00
parent 47bad0b7e1
commit 966aa10854
36 changed files with 7225 additions and 374 deletions

View File

@@ -33,6 +33,7 @@ portability — identical to ``CHECKSUM_ALGORITHM_CRC32C`` in the schema.
from __future__ import annotations
import hashlib
import json
import os
import threading
@@ -101,10 +102,12 @@ class WireCapture:
with self._lock:
self.responses.append(bytes(raw))
def to_dict(self) -> dict[str, list[str]]:
def to_dict(self) -> dict[str, list[str] | str]:
return {
"requests": [r.hex() for r in self.requests],
"responses": [r.hex() for r in self.responses],
"requests_sha256": hashlib.sha256(b"".join(self.requests)).hexdigest(),
"responses_sha256": hashlib.sha256(b"".join(self.responses)).hexdigest(),
}