TinkerLab
TOOL 03 // REPRODUCIBLE ARTIFACT & CONFIG WORKBENCH

Reproducible Artifact & Config Workbench

Customize ports, volume paths, and model tags across all verified Docker Compose stacks, n8n workflow JSONs, Raspberry Pi 5 verification scripts, and resilient SSE clients.

[KEY VERIFIED TAKEAWAY / TL;DR]Tinker AI Lab’s Reproducible Artifact & Config Workbench hosts 42 parameterized configuration templates paired 1-to-1 with our 42 hardware-verified guides (including Docker Compose stacks, n8n + MCP workflow JSONs, AMD Strix Halo & Jetson Super scripts, Raspberry Pi 5 voice/NPU scripts, Qwen2.5-VL PDF table OCR runners, Nginx LAN auth proxies, and resilient SSE clients). Every template enforces 127.0.0.1 loopback binding, explicit num_ctx caps, and least-privilege guards, rendered 100% client-side in your browser.
run-mac-benchmark.sh

Apple Silicon Mac Fixed-Task Speed & Context Benchmark Script

Measures prompt eval rate, token generation speed (tok/s), and peak unified memory footprint under a fixed deterministic task.

View Paired Guide →
Customizable Variables (Saved in Browser)
UTF-8 Encoded · Live Client-Side Compilation
#!/usr/bin/env bash
# Tinker AI — Reproducible Mac Local LLM Benchmark (Guide #1)
set -euo pipefail

MODEL="qwen2.5:14b-instruct-q4_K_M"
CTX="8192"
API="http://127.0.0.1:11434/api/generate"

echo "=== [1/3] Hardware & Version Snapshot ==="
uname -a
ollama --version || true

echo "=== [2/3] Running Fixed Deterministic Task (seed=42, num_ctx=$CTX) ==="
RESPONSE=$(curl -sS "$API" -d "{
  \"model\": \"$MODEL\",
  \"prompt\": \"Extract three technical risks of running local LLMs with large context windows in strict JSON format with keys: risk, cause, mitigation.\",
  \"stream\": false,
  \"options\": {
    \"num_ctx\": $CTX,
    \"temperature\": 0,
    \"seed\": 42
  }
}")

echo "$RESPONSE" | python3 -c '
import sys, json
data = json.load(sys.stdin)
eval_count = data.get("eval_count", 0)
eval_dur = data.get("eval_duration", 1) / 1e9
prompt_count = data.get("prompt_eval_count", 0)
prompt_dur = data.get("prompt_eval_duration", 1) / 1e9
print(f"Prompt Eval : {prompt_count} tokens ({prompt_count/prompt_dur:.2f} tok/s)")
print(f"Generation  : {eval_count} tokens ({eval_count/eval_dur:.2f} tok/s)")
'

echo "=== [3/3] Active Metal / Unified Memory Footprint ==="
ollama ps
PRE-FLIGHT & OFFLINE AUDIT // 配置落地与离线安全核验标准

4 Mandatory Pre-Flight Checks Before Deploying Generated Configs

Every template in this workbench enforces version pinning, loopback-first networking, least-privilege tokens, and verified persistence.

01 // LOOPBACK BINDING

Default 127.0.0.1 Loopback Bind

Port mappings default to 127.0.0.1:Port so unauthenticated model servers are never accidentally exposed to Wi-Fi or WAN.

02 // EXPLICIT NUM_CTX

Explicit Context & Token Caps

Prevents silent 2048-token truncation and mid-thought cutoffs by declaring explicit num_ctx and max_tokens in every payload.

03 // ZERO-WRITE SANDBOX

Least-Privilege & Deterministic Guards

n8n workflows pair LLM nodes with deterministic JS guards (invoice math reconciliation, SQL read-only AST checks, secret scrubbing).

04 // AIR-GAP VERIFIED

100% Client-Side Zero Telemetry

Custom IPs, paths, and model tags entered above are rendered purely in your browser and saved only in localStorage.