GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold
Python
ci: run tools tests against the patched TensorFold tree (they need --source-root)
plotarmordevefe76a845371
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 459b6e9..b921a98 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,6 +1,7 @@name: ci# CPU-only checks: patches apply to the pinned TensorFold source, the image pin matches the-# patch set, and the self-contained tools tests pass. No GPU, no docker, no model downloads.+# patch set, and the self-contained tools tests pass against a patched source tree.+# No GPU, no docker, no model downloads (only the checkpoint's chat_template.jinja, a few KB).on:pull_request:push:@@ -22,28 +23,19 @@ jobs:echo "::error::IMAGE_TAG ($T) does not match the current patch set (v0.6.0-$H). Publish an image for this patch set or bump the pin."exit 1fi- - name: Patches apply to the pinned TensorFold source+ - name: Apply patches to the pinned TensorFold sourcerun: |- git clone --depth 1 --branch "${TF_TAG:-v0.6.0}" https://github.com/ashhart/TensorFold.git /tmp/tf+ git clone --depth 1 --branch v0.6.0 https://github.com/ashhart/TensorFold.git /tmp/tfcd /tmp/tf/src- rc=0for p in "$OLDPWD"/patches/*.patch; do- if ! patch -p0 --forward --check < "$p" > /tmp/patchlog 2>&1; then- echo "::error::$(basename "$p") does not apply to TensorFold ${TF_TAG:-v0.6.0}"- sed -n '1,8p' /tmp/patchlog- rc=1- fi+ echo "applying $(basename "$p")"+ patch -p0 --forward < "$p" > /dev/null || { echo "::error::$(basename "$p") does not apply to TensorFold v0.6.0"; exit 1; }done- # A second pass must be a full no-op (patches use --forward semantics in the image build)- exit $rc- tools-tests:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v4- - uses: actions/setup-python@v5- with:- python-version: "3.12"- - name: Self-contained tools tests+ - name: Self-contained tools tests (against the patched tree)run: |- python tools/test_chunked_bodies.py- python tools/test_effort_tail.py+ MD="$RUNNER_TEMP/hub/models--Mia-AiLab--GLM-5.3-Flash-EXL3-4bpw-TensorFold/snapshots/rev"+ mkdir -p "$MD"+ curl -fsSL -o "$MD/chat_template.jinja" \+ https://huggingface.co/Mia-AiLab/GLM-5.3-Flash-EXL3-4bpw-TensorFold/resolve/main/chat_template.jinja+ python tools/test_chunked_bodies.py --source-root /tmp/tf/src+ python tools/test_effort_tail.py --source-root /tmp/tf/src --model-dir "$MD"