ivaavi commited on
Commit
39db083
·
verified ·
1 Parent(s): ce85d5e

Add portable GGUF runtimes and expanded benchmarks

Browse files

Adds the BF16 universal Node artifact, Q8 accelerated artifact, platform canary evidence, typed-decisions evaluation, option-order robustness, question scaling, and refreshed manifest.

.gitattributes CHANGED
@@ -40,3 +40,5 @@ assets/xmesh-metallic.png filter=lfs diff=lfs merge=lfs -text
40
  assets/xmesh-metallic-banner.png filter=lfs diff=lfs merge=lfs -text
41
  assets/xmesh-wordmark-dark.png filter=lfs diff=lfs merge=lfs -text
42
  assets/xmesh-wordmark-light.png filter=lfs diff=lfs merge=lfs -text
 
 
 
40
  assets/xmesh-metallic-banner.png filter=lfs diff=lfs merge=lfs -text
41
  assets/xmesh-wordmark-dark.png filter=lfs diff=lfs merge=lfs -text
42
  assets/xmesh-wordmark-light.png filter=lfs diff=lfs merge=lfs -text
43
+ Singularity-xMESH-0.8B-BF16.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Singularity-xMESH-0.8B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
GGUF_VALIDATION.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "source": {
4
+ "format": "merged BF16 safetensors",
5
+ "model_sha256": "2dda751389cf7d98cfed72a16e6d8ce253dcd125b84870713cd33d1637e0ab84",
6
+ "decision_head_sha256": "ff6433e096130f286038a1bfff07741018d6c8f6ccb91ee325419de717e87ff4"
7
+ },
8
+ "conversion": {
9
+ "llama_cpp_tag": "b11719",
10
+ "llama_cpp_commit": "5aeac37a35b44fde4bdffaec9159f2fcb253b622",
11
+ "bf16_gguf_sha256": "9f4c08f19c4d203059bc74ed2754e800ec472d7276d8ddb2321480e86d392fff"
12
+ },
13
+ "release_artifact": {
14
+ "path": "Singularity-xMESH-0.8B-BF16.gguf",
15
+ "format": "GGUF BF16",
16
+ "bytes": 1571529600,
17
+ "sha256": "9f4c08f19c4d203059bc74ed2754e800ec472d7276d8ddb2321480e86d392fff",
18
+ "context_tokens": 2048,
19
+ "physical_batch_tokens": 2048,
20
+ "node_default_slots": 1
21
+ },
22
+ "accelerated_artifact": {
23
+ "path": "Singularity-xMESH-0.8B-Q8_0.gguf",
24
+ "format": "GGUF Q8_0",
25
+ "bytes": 841069440,
26
+ "sha256": "41b36270b67f6c595e98cf4f29d6a0d13f0c19daa37b75741cd8296e2729fd75",
27
+ "cpu_status": "rejected for universal use: llama.cpp b11719 exits 139 during quantized Clef CPU initialization"
28
+ },
29
+ "q8_metal_frozen_x402_export_parity": {
30
+ "cases": 80,
31
+ "decisions": 960,
32
+ "exact_cases": 80,
33
+ "matching_decisions": 960,
34
+ "median_request_ms": 1542.8355415,
35
+ "p95_request_ms": 4466.246708,
36
+ "runtime": "llama.cpp b11719, Apple M4 Metal, two validation slots"
37
+ },
38
+ "bf16_cpu_frozen_x402_export_parity": {
39
+ "cases": 80,
40
+ "decisions": 960,
41
+ "exact_cases": 80,
42
+ "matching_decisions": 960,
43
+ "median_request_ms": 3109.9937505,
44
+ "p95_request_ms": 3495.010333,
45
+ "runtime": "llama.cpp b11719, Apple M4 CPU, one release-profile slot"
46
+ },
47
+ "rejected_artifacts": [
48
+ {
49
+ "format": "GGUF Q4_K_M",
50
+ "bytes": 545162112,
51
+ "sha256": "0f13d08daa156d8f9cec6aa9a2488861ac0a0e1749a7ba04cfccec9662c1c302",
52
+ "reason": "Changed 16 of 960 decisions and preserved only 65 of 80 complete flows."
53
+ }
54
+ ],
55
+ "typed_decisions": {
56
+ "artifact": "Singularity-xMESH-0.8B-Q8_0.gguf",
57
+ "dataset": "LocalLLaMA/typed-decisions",
58
+ "revision": "7189f46b02248bd2569df7325c9df8e3b24e90a7",
59
+ "split": "all/test",
60
+ "cases": 400,
61
+ "decisions": 2000,
62
+ "accuracy": 0.4775,
63
+ "row_exact_match": 0.045,
64
+ "soft_accuracy": 0.4151943743,
65
+ "brier_vs_soft": 0.40858675,
66
+ "ece": 0.2928255711,
67
+ "score_mae": 0.6424282911,
68
+ "score_within_one": 0.765,
69
+ "median_case_ms": 1201.44,
70
+ "p95_case_ms": 1353.346917
71
+ },
72
+ "option_order": {
73
+ "seed": 13,
74
+ "choice_questions": 600,
75
+ "answer_flips": 0,
76
+ "mean_probability_total_variation": 0.0,
77
+ "max_probability_total_variation": 0.0
78
+ },
79
+ "question_scaling": {
80
+ "runtime": "llama.cpp b11719, Apple M4 Metal, sequential caller",
81
+ "one_question_p50_ms": 167.6057495,
82
+ "five_questions_p50_ms": 448.471604,
83
+ "ten_questions_p50_ms": 846.7270625,
84
+ "twenty_questions": "unsupported: 2070 input tokens exceeds the 2048-token contract",
85
+ "fifty_questions": "unsupported: 5070 input tokens exceeds the 2048-token contract"
86
+ }
87
+ }
MANIFEST.json CHANGED
@@ -2,8 +2,8 @@
2
  "schema_version": 1,
3
  "algorithm": "sha256",
4
  "base_model": "Qwen/Qwen3.5-0.8B@2fc06364715b967f1860aea9cf38778875588b17",
5
- "file_count": 41,
6
- "total_bytes": 1833747287,
7
  "files": [
8
  {
9
  "path": ".gitignore",
@@ -20,6 +20,11 @@
20
  "bytes": 476,
21
  "sha256": "9a3fe9e8e038b38588a7907e99ce57904b1d92f095b70b4077fb41f62da55983"
22
  },
 
 
 
 
 
23
  {
24
  "path": "LICENSE",
25
  "bytes": 11544,
@@ -45,10 +50,30 @@
45
  "bytes": 498,
46
  "sha256": "b0e5e3849f78da8fac2df8aebe756b68e219dcdd1aa53697a4c1c618a2f25eb9"
47
  },
 
 
 
 
 
 
 
 
 
 
48
  {
49
  "path": "README.md",
50
- "bytes": 4582,
51
- "sha256": "a1292ba01f9ea3008d2a0206620d006c0f7dcd4d23146cd42aa4b1a5ccccd765"
 
 
 
 
 
 
 
 
 
 
52
  },
53
  {
54
  "path": "THIRD_PARTY_NOTICES.md",
 
2
  "schema_version": 1,
3
  "algorithm": "sha256",
4
  "base_model": "Qwen/Qwen3.5-0.8B@2fc06364715b967f1860aea9cf38778875588b17",
5
+ "file_count": 46,
6
+ "total_bytes": 4246356274,
7
  "files": [
8
  {
9
  "path": ".gitignore",
 
20
  "bytes": 476,
21
  "sha256": "9a3fe9e8e038b38588a7907e99ce57904b1d92f095b70b4077fb41f62da55983"
22
  },
23
+ {
24
+ "path": "GGUF_VALIDATION.json",
25
+ "bytes": 3064,
26
+ "sha256": "65941fa861c7bf676982739d2dac50c00cf5c80d14ad8e61ea8afd41eed462db"
27
+ },
28
  {
29
  "path": "LICENSE",
30
  "bytes": 11544,
 
50
  "bytes": 498,
51
  "sha256": "b0e5e3849f78da8fac2df8aebe756b68e219dcdd1aa53697a4c1c618a2f25eb9"
52
  },
53
+ {
54
+ "path": "PLATFORM_CANARIES.json",
55
+ "bytes": 1548,
56
+ "sha256": "b5649859f1fadc6b3f34a1aa427b4132eb05e1fb8ded374df83e514b46e26e45"
57
+ },
58
+ {
59
+ "path": "PORTABILITY.md",
60
+ "bytes": 2437,
61
+ "sha256": "dadf4fe24a159bdd9e228556aaa1efca9bbe2c10fe71dde22776a4fdfdcb0e59"
62
+ },
63
  {
64
  "path": "README.md",
65
+ "bytes": 7480,
66
+ "sha256": "db512aafdc3af7af03152261f3f5d9083e49639b44008c5cd9ab4bcb1323b99c"
67
+ },
68
+ {
69
+ "path": "Singularity-xMESH-0.8B-BF16.gguf",
70
+ "bytes": 1571529600,
71
+ "sha256": "9f4c08f19c4d203059bc74ed2754e800ec472d7276d8ddb2321480e86d392fff"
72
+ },
73
+ {
74
+ "path": "Singularity-xMESH-0.8B-Q8_0.gguf",
75
+ "bytes": 841069440,
76
+ "sha256": "41b36270b67f6c595e98cf4f29d6a0d13f0c19daa37b75741cd8296e2729fd75"
77
  },
78
  {
79
  "path": "THIRD_PARTY_NOTICES.md",
PLATFORM_CANARIES.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "model": "Singularity xMESH 0.8B",
4
+ "artifact": "Singularity-xMESH-0.8B-BF16.gguf",
5
+ "artifact_sha256": "9f4c08f19c4d203059bc74ed2754e800ec472d7276d8ddb2321480e86d392fff",
6
+ "llama_cpp": {
7
+ "tag": "b11719",
8
+ "commit": "5aeac37a35b44fde4bdffaec9159f2fcb253b622"
9
+ },
10
+ "profiles": {
11
+ "macos_arm64_cpu": {
12
+ "status": "passed",
13
+ "cases": 80,
14
+ "matching_decisions": 960,
15
+ "total_decisions": 960,
16
+ "median_request_ms": 3109.9937505,
17
+ "p95_request_ms": 3495.010333,
18
+ "slots": 1
19
+ },
20
+ "macos_arm64_metal": {
21
+ "status": "passed_load_and_inference",
22
+ "note": "Q8 passed 960/960 export parity; BF16 Metal had one numerically tied decision flip, while BF16 CPU matches the release reference."
23
+ },
24
+ "linux_arm64_cpu": {
25
+ "status": "passed",
26
+ "environment": "Docker Desktop aarch64, Ubuntu 24.04, libgomp1",
27
+ "archive": "llama-b11719-bin-ubuntu-arm64.tar.gz",
28
+ "archive_sha256": "290aa4432ad8e28b638285be6a75d0dd6f327d9b2d95f7048a8cf5e69704bee9",
29
+ "server_sha256": "7b0734c19cc38e09d7c9b4ed96cbdbb54f9318282cecd7e4a82f067b54451892",
30
+ "fixture_input_tokens": 1012,
31
+ "expected_decisions": 9,
32
+ "matching_decisions": 9,
33
+ "response_sha256": "b1d70e2b94d1157f78b840d7ba1372e5719ca34f5231920fc65dfe27dd50bf20",
34
+ "dependency": "libgomp.so.1 from Ubuntu package libgomp1"
35
+ },
36
+ "linux_x64_cpu": {
37
+ "status": "pending native canary"
38
+ },
39
+ "windows_x64_cpu": {
40
+ "status": "pending native canary"
41
+ }
42
+ }
43
+ }
PORTABILITY.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # xMESH portability contract
2
+
3
+ Singularity Node must serve xMESH through the same `/v1/systemone` request and response contract on every supported platform.
4
+
5
+ ## Runtime
6
+
7
+ - Minimum llama.cpp: `b11719` (`5aeac37a35b44fde4bdffaec9159f2fcb253b622`).
8
+ - Context: 2,048 tokens per request.
9
+ - Physical batch: 2,048 tokens. The llama.cpp default of 512 rejects normal multi-field requests.
10
+ - Default concurrency: one slot. Higher concurrency requires a platform-specific canary.
11
+
12
+ ## Artifacts
13
+
14
+ | Artifact | Bytes | SHA-256 | Use |
15
+ | --- | ---: | --- | --- |
16
+ | `Singularity-xMESH-0.8B-BF16.gguf` | 1,571,529,600 | `9f4c08f19c4d203059bc74ed2754e800ec472d7276d8ddb2321480e86d392fff` | Universal Node artifact |
17
+ | `Singularity-xMESH-0.8B-Q8_0.gguf` | 841,069,440 | `41b36270b67f6c595e98cf4f29d6a0d13f0c19daa37b75741cd8296e2729fd75` | Accelerated runtimes only |
18
+
19
+ Q8 passes the full Metal decision-parity suite but crashes in llama.cpp `b11719` during CPU initialization. Q4_K_M loads but changes 16 of 960 frozen decisions, so it is not a release artifact.
20
+
21
+ ## Release matrix
22
+
23
+ | Surface | Target | Artifact | Status |
24
+ | --- | --- | --- | --- |
25
+ | Desktop | macOS Apple silicon | BF16 | Local CPU and Metal canaries passed; packaged-app canary pending |
26
+ | Desktop | Windows x64 | BF16 | Build and runtime canary pending |
27
+ | Node CLI | Linux x64 CPU/Vulkan | BF16 | Provisioner pinned; native runtime canary pending |
28
+ | Node CLI | Linux ARM64 CPU/Vulkan | BF16 | CPU load and real decision canary passed in Ubuntu 24.04 ARM64 |
29
+
30
+ The desktop release workflow does not currently publish Linux or Intel Mac packages. The Node CLI covers Linux; Intel Mac desktop support requires a separate release target.
31
+
32
+ The official Linux llama.cpp archive links `libgomp.so.1`. Minimal Ubuntu images must install the standard `libgomp1` package before `sgl setup`; normal desktop/server distributions often already include it. The provisioner must surface this exact prerequisite when the staged binary fails its launch check.
33
+
34
+ ## Quality gates
35
+
36
+ - Frozen x402 export parity: 80 cases and 960 decisions.
37
+ - Official typed-decisions boundary suite: 400 cases and 2,000 decisions.
38
+ - Option-order robustness: 600 choice decisions.
39
+ - Runtime integrity: exact artifact and llama.cpp archive hashes.
40
+ - Platform canary: load, health, real `/v1/systemone` request, expected answer, and clean shutdown.
41
+
42
+ See `GGUF_VALIDATION.json` for measurements and rejected artifact evidence.
README.md CHANGED
@@ -12,9 +12,13 @@ tags:
12
  - x402
13
  - tool-selection
14
  - safetensors
 
 
15
  - pytorch
16
  - cpu
17
  - apple-silicon
 
 
18
  - mps
19
  - cuda
20
  language:
@@ -51,11 +55,19 @@ The general decision warm-up used licensed rows from [`MaziyarPanahi/AgentToolDe
51
  | --- | --- |
52
  | Apple silicon MPS | **Verified** on an M4 with 16 GB unified memory |
53
  | CPU | **Verified**; portable but slower |
 
 
54
  | NVIDIA CUDA | Supported by the PyTorch runtime; standalone CUDA canary pending |
55
  | AMD ROCm | Not verified |
56
 
57
  The checkpoint contains 873M BF16 parameters. An 8 GB system is the practical minimum; 16 GB is recommended for comfortable local loading and inference.
58
 
 
 
 
 
 
 
59
  ## Frozen x402 regression evaluation
60
 
61
  The standalone export was fixed before one evaluation on the existing frozen 80-case x402 suite. No weights, prompts, or policy rules were changed after seeing these results.
@@ -71,6 +83,25 @@ The standalone export was fixed before one evaluation on the existing frozen 80-
71
 
72
  Jev is a hosted API and Laya used a different local runtime, so latency is not a hardware-equivalent comparison. The standalone CPU validation measured 6.45 seconds median per full multi-field flow on an Apple M4. Optimized serving runtimes can be substantially faster.
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  ## Run on Apple silicon
75
 
76
  Validated with Python 3.12 on an Apple M4 with 16 GB unified memory.
@@ -84,6 +115,19 @@ python examples/inference.py --request examples/request.json --device mps
84
 
85
  Use `--device cpu` when MPS is unavailable. The request must contain `state` and `questions`; `examples/request.json` shows the typed contract.
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  ## Safety boundary
88
 
89
  xMESH is an advisory router. It must not receive wallet secrets, construct signed payments, bypass approval, invent endpoints, or execute arbitrary URLs. Runtime code must restrict choices to retrieved candidate IDs and enforce budgets, networks, schemas, and approval rules independently.
 
12
  - x402
13
  - tool-selection
14
  - safetensors
15
+ - gguf
16
+ - llama.cpp
17
  - pytorch
18
  - cpu
19
  - apple-silicon
20
+ - windows
21
+ - linux
22
  - mps
23
  - cuda
24
  language:
 
55
  | --- | --- |
56
  | Apple silicon MPS | **Verified** on an M4 with 16 GB unified memory |
57
  | CPU | **Verified**; portable but slower |
58
+ | llama.cpp Metal | **Verified** with the Q8 GGUF on an Apple M4 |
59
+ | llama.cpp Windows/Linux CPU | Runtime packaged; release canaries required |
60
  | NVIDIA CUDA | Supported by the PyTorch runtime; standalone CUDA canary pending |
61
  | AMD ROCm | Not verified |
62
 
63
  The checkpoint contains 873M BF16 parameters. An 8 GB system is the practical minimum; 16 GB is recommended for comfortable local loading and inference.
64
 
65
+ ## Portable GGUF runtime
66
+
67
+ `Singularity-xMESH-0.8B-BF16.gguf` is the universal Singularity Node artifact. It is 1,571,529,600 bytes with SHA-256 `9f4c08f19c4d203059bc74ed2754e800ec472d7276d8ddb2321480e86d392fff` and requires llama.cpp `b11719` or newer for native Clef `/v1/systemone` support.
68
+
69
+ `Singularity-xMESH-0.8B-Q8_0.gguf` is an optional 841,069,440-byte accelerated artifact with SHA-256 `41b36270b67f6c595e98cf4f29d6a0d13f0c19daa37b75741cd8296e2729fd75`. It preserved all 960 decisions across the frozen 80-case Metal export-parity run, but llama.cpp `b11719` crashes while initializing this quantized Clef architecture on CPU. Singularity Node therefore uses BF16 for its cross-platform contract. Q4_K_M was rejected because it changed 16 decisions and preserved only 65 of 80 complete flows.
70
+
71
  ## Frozen x402 regression evaluation
72
 
73
  The standalone export was fixed before one evaluation on the existing frozen 80-case x402 suite. No weights, prompts, or policy rules were changed after seeing these results.
 
83
 
84
  Jev is a hosted API and Laya used a different local runtime, so latency is not a hardware-equivalent comparison. The standalone CPU validation measured 6.45 seconds median per full multi-field flow on an Apple M4. Optimized serving runtimes can be substantially faster.
85
 
86
+ ## General typed-decision evaluation
87
+
88
+ This is a boundary test, not the model's specialization. xMESH was evaluated zero-shot on `LocalLLaMA/typed-decisions` revision `7189f46b02248bd2569df7325c9df8e3b24e90a7`, complete `all/test` split: 400 cases and 2,000 decisions.
89
+
90
+ | Model | Condition | Accuracy | Soft accuracy | Brier ↓ | ECE ↓ | Score MAE ↓ |
91
+ | --- | --- | ---: | ---: | ---: | ---: | ---: |
92
+ | xMESH 0.8B | zero-shot Q8 | **0.478** | 0.415 | 0.409 | 0.293 | 0.642 |
93
+ | Laya | base checkpoint, published | 0.362 | 0.331 | **0.315** | **0.174** | 0.694 |
94
+ | Laya typed-decisions | trained on this benchmark's train split, published | **0.766** | 0.471 | **0.061** | 0.213 | **0.242** |
95
+ | Jev 1.13 | published | 0.727 | **0.580** | 0.148 | **0.144** | 0.391 |
96
+
97
+ xMESH beats base Laya on this suite, but it does not beat Jev or the benchmark-specific Laya fine-tune. Accuracy by xMESH workflow was 0.266 agent-trace observability, 0.578 customer service, 0.492 invoice processing, and 0.574 security incidents.
98
+
99
+ A seeded option-order permutation changed **0 of 600** choice answers and produced zero probability drift because the Clef runtime canonicalizes option identifiers before inference.
100
+
101
+ On a short fixed state with identical three-option questions, Q8 llama.cpp on an Apple M4 measured 168 ms p50 for one question, 448 ms for five, and 847 ms for ten. Twenty and fifty questions exceeded this release's validated 2,048-token context; they are not advertised as supported.
102
+
103
+ Laya and Jev comparison rows above are figures published by the Laya benchmark page. They were not rerun in the xMESH environment.
104
+
105
  ## Run on Apple silicon
106
 
107
  Validated with Python 3.12 on an Apple M4 with 16 GB unified memory.
 
115
 
116
  Use `--device cpu` when MPS is unavailable. The request must contain `state` and `questions`; `examples/request.json` shows the typed contract.
117
 
118
+ ## Run with llama.cpp
119
+
120
+ ```bash
121
+ llama-server \
122
+ -m Singularity-xMESH-0.8B-BF16.gguf \
123
+ --host 127.0.0.1 --port 8081 \
124
+ -c 2048 -b 2048 -ub 2048 --parallel 1
125
+
126
+ curl http://127.0.0.1:8081/v1/systemone \
127
+ -H 'Content-Type: application/json' \
128
+ --data-binary @examples/request.json
129
+ ```
130
+
131
  ## Safety boundary
132
 
133
  xMESH is an advisory router. It must not receive wallet secrets, construct signed payments, bypass approval, invent endpoints, or execute arbitrary URLs. Runtime code must restrict choices to retrieved candidate IDs and enforce budgets, networks, schemas, and approval rules independently.
Singularity-xMESH-0.8B-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f4c08f19c4d203059bc74ed2754e800ec472d7276d8ddb2321480e86d392fff
3
+ size 1571529600
Singularity-xMESH-0.8B-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41b36270b67f6c595e98cf4f29d6a0d13f0c19daa37b75741cd8296e2729fd75
3
+ size 841069440