TinkerLab
ARTIFACT // RUN-QWEN4-35B-A3B-PLE-AND-GORGON-HALO.SH (SHELL)

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.

[KEY VERIFIED TAKEAWAY / TL;DR]This reproducible configuration artifact "Gorgon Halo / RTX Spark Audit & Qwen4-35B-A3B (MTP + PLE Offload) Launcher" (run-qwen4-35b-a3b-ple-and-gorgon-halo.sh, SHELL) is paired with Tinker AI Lab's hardware-verified guide "lenovo-thinkcentre-x-ultra-topc-txa2-dell-rtx-spark-and-qwen4-35b-a3b-ple-offload". It exposes 4 customizable browser variables (RUN_MODE=llamacpp_mtp, GGUF_QUANT=Q4_K_M, CTX_LEN=131072, API_PORT=8080) with loopback-first security defaults.
01 // HOMELABLocal AI / HomeLab· Verified: 2026-12-05
Browse All 82 Artifacts →
run-qwen4-35b-a3b-ple-and-gorgon-halo.sh

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.

View Paired Guide →
Customizable Variables (Saved in Browser)
UTF-8 Encoded · Live Client-Side Compilation
#!/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
PARAMETER SPECIFICATION // 参数化变量规范说明表

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 TokenParameter DescriptionVerified DefaultExample Format
{{RUN_MODE}}Mode (hardware_ple_audit | llamacpp_mtp | ollama_ple | vllm_fp8)llamacpp_mtpllamacpp_mtp
{{GGUF_QUANT}}GGUF Quant Tag (Q4_K_M | Q6_K | Q8_0)Q4_K_MQ4_K_M
{{CTX_LEN}}Context Window (e.g. 131072 or 262144)131072131072
{{API_PORT}}Local OpenAI API Port80808080
PAIRED HARDWARE MANIFEST // 配套实测环境与边界记录

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)"

Tested Hardware & OS

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

Pinned Stack & Model Versions
Qwen/Qwen4-35B-A3B & ggml-org/Qwen4-35B-A3B-GGUF (Apache 2.0 · Dec 2026)llama.cpp >= b12969 (--spec-type draft-mtp) / Ollama >= v0.40.21vLLM >= v0.34.x (Day-0 Qwen4 Gated DeltaNet + QSA + NVFP4 KV) / SGLang / MLX (OMLX)
Offline Boundary (100% air-gapped multimodal (text/image/video) & 1M-context reasoning once GGUF/FP8/mmproj weights are cached locally)

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.

Known Operational Limits & Failure Modes
  • 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-A3B stores ~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. Naive llama.cpp versions older than b12969 or Ollama older than v0.40.21 will 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.
DEPLOYMENT CHECKLIST // 配置落地核验步骤

4-Step Verification Checklist After Deploying run-qwen4-35b-a3b-ple-and-gorgon-halo.sh

  1. Verify llama-server --version is >= b12969 (or ollama --version >= 0.40.21) before loading Qwen4-35B-A3B GGUF with QSA/PLE tensors.
  2. Enable --spec-type draft-mtp --spec-draft-n-max 3 and confirm accepted draft token rate > 0 in llama-server telemetry logs.
  3. 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.
  4. Benchmark both reasoning_effort=low (fast interactive coding) and high/xhigh (deep multi-file debugging) at 128K context to lock latency budgets.