Gorgon Halo / RTX Spark Audit & Qwen4-35B-A3B (MTP + PLE Offload) Launcher (run-qwen4-35b-a3b-ple-and-gorgon-halo.sh)
Audits Gorgon Halo UMA pool size, PCIe 4.0 x4 vs x2 M.2 NVMe lanes (for TOPC TXA2 PLE offload), and launches Qwen4-35B-A3B via llama.cpp b12969+ (with 2B MTP speculative decoding), Ollama v0.40.21+, or vLLM FP8.
Gorgon Halo / RTX Spark Audit & Qwen4-35B-A3B (MTP + PLE Offload) Launcher
Audits Gorgon Halo UMA pool size, PCIe 4.0 x4 vs x2 M.2 NVMe lanes (for TOPC TXA2 PLE offload), and launches Qwen4-35B-A3B via llama.cpp b12969+ (with 2B MTP speculative decoding), Ollama v0.40.21+, or vLLM FP8.
#!/usr/bin/env bash
# Tinker AI — ThinkCentre X Ultra / TOPC TXA2 / Dell RTX Spark + Qwen4-35B-A3B (Guide #81)
set -euo pipefail
MODE="llamacpp_mtp"
QUANT="Q4_K_M"
CTX="131072"
PORT="8080"
if [ "$MODE" = "hardware_ple_audit" ]; then
echo "=== [1/3] Unified Memory / UMA & GPU Topology ==="
free -h 2>/dev/null || sysctl -n hw.memsize
nvidia-smi --query-gpu=name,memory.total --format=csv 2>/dev/null || rocm-smi --showmeminfo vram gtt 2>/dev/null || true
echo "=== [2/3] NVMe PCIe Link Width Check (Verify PCIe 4.0 x4 Slot for Qwen4 20.5B PLE Offload) ==="
lspci -vv 2>/dev/null | grep -E "Non-Volatile memory|LnkSta:" | head -n 20 || true
echo "=== [3/3] Runtime Version Gate (llama.cpp >= b12969 / Ollama >= v0.40.21) ==="
llama-server --version 2>/dev/null | head -n 3 || true
ollama --version 2>/dev/null || true
exit 0
elif [ "$MODE" = "llamacpp_mtp" ]; then
echo "=== [llama.cpp >= b12969 · Qwen4-35B-A3B ($QUANT) + 2B MTP Speculative Decoding @ $CTX Ctx] ==="
exec llama-server -hf "ggml-org/Qwen4-35B-A3B-GGUF:$QUANT" \
--spec-type draft-mtp \
--spec-draft-n-max 3 \
-fa on \
-c "$CTX" \
-ngl 999 \
--host 127.0.0.1 --port "$PORT"
elif [ "$MODE" = "ollama_ple" ]; then
echo "=== [Ollama >= v0.40.21 · Qwen4-35B-A3B Disk-Streamed PLE + 4GB MoE Host Cache] ==="
export OLLAMA_FLASH_ATTENTION=1
export OLLAMA_KV_CACHE_TYPE=q4_0
export LLAMA_ARG_MOE_CACHE_MIB=4096
exec ollama run "qwen4:35b-a3b-$QUANT"
elif [ "$MODE" = "vllm_fp8" ]; then
echo "=== [vLLM Day-0 Qwen4-35B-A3B-FP8 · 192GB TOPC TXA2 / Blackwell Server @ $CTX Ctx] ==="
exec vllm serve Qwen/Qwen4-35B-A3B-FP8 \
--max-model-len "$CTX" \
--kv-cache-dtype fp8 \
--enable-prefix-caching \
--host 127.0.0.1 --port "$PORT"
else
echo "Unknown RUN_MODE=$MODE" >&2
exit 1
fi
Customizable Parameter Reference for run-qwen4-35b-a3b-ple-and-gorgon-halo.sh
This SHELL artifact exposes 4 template variables compiled client-side in your browser.
| Template Token | Parameter Description | Verified Default | Example Format |
|---|---|---|---|
{{RUN_MODE}} | Mode (hardware_ple_audit | llamacpp_mtp | ollama_ple | vllm_fp8) | llamacpp_mtp | llamacpp_mtp |
{{GGUF_QUANT}} | GGUF Quant Tag (Q4_K_M | Q6_K | Q8_0) | Q4_K_M | Q4_K_M |
{{CTX_LEN}} | Context Window (e.g. 131072 or 262144) | 131072 | 131072 |
{{API_PORT}} | Local OpenAI API Port | 8080 | 8080 |
Verified Environment for "Dec 2026 Unified-Memory AI Mini-Workstations & Qwen 4 Architecture: Lenovo ThinkCentre X Ultra (128GB · 4-Node Stackable) & TOPC TXA2 (192GB · 4× NVMe) vs Dell Creator Edition RTX Spark (128GB) Running Qwen4-35B-A3B (20.5B PLE Offload · 1M Context)"
Lenovo ThinkCentre X Ultra (1.6L · Ryzen AI Max+ PRO 495 · 128GB LPDDR5X-8533 · 10GbE), TOPC TXA2 (2.5L · Ryzen AI Max+ PRO 495 · 192GB LPDDR5X-8533 · 4× M.2 NVMe), Dell Creator Edition Desktop (1.2L · RTX Spark N1X 6,144 CUDA · 128GB LPDDR5X-9400 · 10GbE), plus 24GB Consumer GPU + NVMe PLE Offload
Keep LLAMA_ARG_OFFLINE=1 or point llama-server -m directly to local GGUF and mmproj paths; on Lenovo ThinkCentre X Ultra and TOPC TXA2 running Linux, bind API endpoints to 127.0.0.1 or an isolated 10GbE cluster VLAN.
- Spec-grounded engineering guide: Lenovo ThinkCentre X Ultra ($3,699), TOPC TXA2 ($6,399), and Dell Creator Edition RTX Spark ($7,590) specs and Qwen4-35B-A3B decode ranges are anchored to Dec 2026 vendor datasheets, Hugging Face model cards, and Day-0 community reports; local throughput varies with PLE placement (VRAM vs system RAM vs NVMe SSD).
- Although marketed as "35B",
Qwen4-35B-A3Bstores ~56.8B total parameters (~113 GB in BF16) because of the ~20.5B Per-Layer N-gram Embedding (PLE / Engram) lookup table and ~2B MTP head. Naivellama.cppversions older thanb12969or Ollama older thanv0.40.21will fail to load QSA/PLE tensors. - On TOPC TXA2, two of the four M.2 2280 slots run at PCIe 4.0 x4 and the other two at PCIe 4.0 x2—always place the Qwen4 PLE/Engram GGUF split on one of the PCIe 4.0 x4 slots if offloading PLE to NVMe.
4-Step Verification Checklist After Deploying run-qwen4-35b-a3b-ple-and-gorgon-halo.sh
- Verify
llama-server --versionis>= b12969(orollama --version >= 0.40.21) before loadingQwen4-35B-A3BGGUF with QSA/PLE tensors. - Enable
--spec-type draft-mtp --spec-draft-n-max 3and confirm accepted draft token rate > 0 inllama-servertelemetry logs. - Confirm BIOS/GTT UMA pool (96–104GB on 128GB ThinkCentre X Ultra; 160GB on 192GB TOPC TXA2) and verify PLE GGUF sits on a PCIe 4.0 x4 NVMe slot.
- Benchmark both
reasoning_effort=low(fast interactive coding) andhigh/xhigh(deep multi-file debugging) at 128K context to lock latency budgets.