GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold
Python
Hermes guide and harness: any --model id, README link, CREDITS (Steve Darlow, @kerpopule), CHANGELOG
MiaAI-Lab29478f3d924f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9d49650..a6ef926 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,6 +16,9 @@ Every change to this recipe, newest first. Each release names the image it servecounts it. Paraphrase loops still need `--thinking-budget`. CPU test: `tools/test_loop_guard.py`.- **The start's smoke test fails on one repeated character** (#76, #81, #86): a collapsed model that answers "!!!!" nolonger passes as OK.+- **Hermes Agent** (`docs/hermes-agent.md`, `tools/hermes_benchmark.py`, `tests/test_hermes_benchmark.py`, by Steve+ Darlow, @kerpopule, PR #52): how to use the server as Hermes Agent's custom endpoint, and a stdlib harness that times+ synthetic requests against an idle server (any `--model` id; `/health` fields read as the server reports them).- **Long-context decode** (patch `0085-glm-select-split-loop`): the DSA indexer's split top-k selection(`select_split`, in `0029`'s segmented decode windows) ran its last pass as one `CP x 256` tile per chunk program,masked to the chunks before it. `CP` comes from the selection scratch, which `verify.py` sizes for the whole KVdiff --git a/CREDITS.md b/CREDITS.mdindex da9f0b5..81ca76f 100644--- a/CREDITS.md+++ b/CREDITS.md@@ -132,6 +132,9 @@ checkpoint's ShapleyMcg attribution and the drafter's license).[kindling spark-os](https://github.com/kindlingai/kindling-spark-os) by Matt Mastracci (Kindling AI). Nothing ofdispram ships here: the ranks import the host's client (`python/dispram.py`, GPL-3.0 with a bundling exception)mounted read-only at run time and talk to `dispramd` (AGPL-3.0) over its socket.+- `docs/hermes-agent.md`, `tools/hermes_benchmark.py` and `tests/test_hermes_benchmark.py` (the Hermes Agent custom-endpoint+ guide and the synthetic speed harness with its tests): by Steve Darlow ([kerpopule](https://github.com/kerpopule)),+ in [PR #52](https://github.com/MiaAI-Lab/GLM-5.3-Flash-EXL3-2x-DGX-Sparks-TensorFold/pull/52).- Every patch, except the parts credited above: by MiaAI-Lab, developed with[Claude Code](https://claude.com/claude-code), under the Apache License 2.0; the TensorFold code the patches modify orquote as context stays under TensorFold's licenses (Apache 2.0, and MIT for code written before v0.6.0; seediff --git a/README.md b/README.mdindex 7fc3112..c02d7f4 100644--- a/README.md+++ b/README.md@@ -149,6 +149,10 @@ log, runs a smoke test through both ranks, and prints `GLM-5.3-Flash-EXL3 is nowAny OpenAI client works with `base_url = "http://<head-address>:8888/v1"` and the model `GLM-5.3-Flash-EXL3`. The modelthinks before it answers (`reasoning_content`), so give replies enough `max_tokens`.+[Hermes Agent](https://hermes-agent.nousresearch.com/) (Nous Research) uses it as a custom endpoint: the setup and a synthetic+speed harness (`tools/hermes_benchmark.py`) are in [`docs/hermes-agent.md`](docs/hermes-agent.md), by Steve Darlow+([@kerpopule](https://github.com/kerpopule)).+```bashcurl -s http://<head-address>:8888/v1/modelscurl -s http://<head-address>:8888/v1/chat/completions -H 'Content-Type: application/json' -d '{diff --git a/tests/test_hermes_benchmark.py b/tests/test_hermes_benchmark.pyindex b4c2cd9..7b78031 100644--- a/tests/test_hermes_benchmark.py+++ b/tests/test_hermes_benchmark.py@@ -17,11 +17,19 @@ class HarnessTests(unittest.TestCase):self.assertIsNone(b.MODEL)self.assertEqual(b.BASE,'http://127.0.0.1:8888/v1')- def test_unrecognized_model_rejected_before_network(self):+ def test_any_model_id_is_accepted(self):+ class Stop(Exception):+ pass+ with patch.object(b,'get_health',side_effect=Stop):+ with self.assertRaises(Stop):+ b.main(['--model','some-other-served-name'])+ self.assertEqual(b.MODEL,'some-other-served-name')++ def test_model_is_required(self):with patch.object(b.opener,'open') as request:with contextlib.redirect_stderr(io.StringIO()):with self.assertRaises(SystemExit):- b.main(['--model','wrong-model'])+ b.main([])request.assert_not_called()def test_exact_matched_prompt_set(self):diff --git a/tools/hermes_benchmark.py b/tools/hermes_benchmark.pyindex a78707a..efef776 100644--- a/tools/hermes_benchmark.py+++ b/tools/hermes_benchmark.py@@ -36,7 +36,7 @@ jobs = jobs + [(n+'-repeat2', p, t) for n,p,t in jobs[:2]]def main(argv=None):global BASE, HEALTH, MODELparser=argparse.ArgumentParser(description=__doc__)- parser.add_argument('--model', required=True, choices=('GLM-5.3-Flash-EXL3','GLM-5.3-Flash-EXL3-Abliterated'))+ parser.add_argument('--model', required=True, help='the served model id, e.g. GLM-5.3-Flash-EXL3')parser.add_argument('--base-url', default=BASE)parser.add_argument('--health-url', default=HEALTH)parser.add_argument('--exclusive', action='store_true', help='Reject telemetry showing concurrent inference')