diff --git a/mseries/local-ai/ENGINE-SCOREBOARD.md b/mseries/local-ai/ENGINE-SCOREBOARD.md new file mode 100644 index 00000000..35321262 --- /dev/null +++ b/mseries/local-ai/ENGINE-SCOREBOARD.md @@ -0,0 +1,58 @@ +# Local AI engine scoreboard + +One table for every engine we run or watch on the M1 Pro. ★ marks the most functional setup per model and length: the fastest decode whose output matched every other engine and whose correctness gate did not fail. Regenerate with `python3 mseries/local-ai/scoreboard.py` after adding a receipt. Tracked in the "Local AI engine scoreboard" issue. + +![Decode speed by engine](engine-scoreboard.svg) + +## Measured on this machine + +| ★ | Model | Engine | Settings | Tokens | Decode tok/s | TTFT s | Total s | Runs | Same output as MLX default | Gate | Kernel | Driver | Date | Receipt | +|---|---|---|---|---:|---:|---:|---:|---:|---|---|---|---|---|---| +| ★ | Qwen3.5-2B MLX 4-bit | **MLX (omarchy-mlx, in-process)** | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | **47.19** | 0.46 | 1.13 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) | +| | Qwen3.5-2B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 42.42 | 0.19 | 0.92 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) | +| | Qwen3.5-2B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 36.02 | 0.51 | 1.37 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) | +| | Qwen3.5-2B MLX 4-bit | TensorFold Vulkan PR 1517 (HTTP server) | `serve --backend vulkan --context 1024 --no-thinking` | 32 | 2.40 | 2.00 | 14.92 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) | +| ★ | Qwen3.5-2B MLX 4-bit | **MLX (omarchy-mlx, in-process)** | `MLX_OMARCHY_BATCH_WORK=120000` | 256 | **49.28** | 0.56 | 5.74 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) | +| | Qwen3.5-2B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 256 | 43.17 | 0.40 | 6.27 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) | +| | Qwen3.5-2B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 256 | 37.19 | 0.55 | 7.41 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) | +| | Qwen3.5-2B MLX 4-bit | TensorFold Vulkan PR 1517 (HTTP server) | `serve --backend vulkan --context 1024 --no-thinking` | 256 | 2.77 | 3.12 | 95.26 | 3 | no: diverges after 880 of 1301 chars | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) | + +## Watched or reported elsewhere (not comparable to the table above) + +| Model | Engine | Settings | Decode | Status | Blocker | Source | +|---|---|---|---|---|---|---| +| Qwen3.8-2B (Q4_K_M GGUF, staged) | ANE (omarchy-ane staged decoder) | fp16 / int8 staged programs | 12-16 | reported: 13-inch M1 (H13), not run here | Needs the compiled 38-program H13 bundle and stride-aware layout binding; six incompatible packed surfaces found locally | UZU-AND-ANE-EVALUATION-2026-10-27.md; receipts/2026-10-27-ane-binding-handoff.md | +| Qwen3.8-2B (Q4_K_M GGUF, staged) | ANE (ane-linux-experiments decoder preflight) | 38 ANE submissions per token | 8.23 | reported: M1, peak RSS 8.38 GB, not run here | Memory: does not fit beside the 6 GiB desktop reserve on our 32 GB M1 Pro today | receipts/2026-10-27-ane-qwen-preflight.md | +| Parakeet TDT (dictation encoder) | ANE (whole encoder) | CPU-cluster boost held | 138 ms/encode (GPU 113 ms) | reported: 13-inch M1, not run here | Worth it for CPU and power, not speed | ane-linux-experiments README; UZU-AND-ANE-EVALUATION-2026-10-27.md | +| Qwen3.5-2B MLX 4-bit | TensorFold Vulkan + submit batching | unpublished follow-up to PR 1517 | ~10.6 (M1 Max), ~6.9 (M1) | reported upstream, code not public | Watched in people-watch/branch-watch; re-run engine-compare when it lands | ashhart/TensorFold issue 1420 | +| Qwen3.5 0.8B (Mirai format) | uzu (CPU backend) | backend-cpu, stable Rust | 0.36 | measured here 2026-10-27 | No Linux GPU backend; Metal only | UZU-AND-ANE-EVALUATION-2026-10-27.md | + +## How we track upstream + +The engines above move fast, so this page is a living record on `dev`, not a one-off report. + +1. **Watch.** `people-watch.json` and `branch-watch.json` list the people and repos we follow (Joshua Warren's omarchy-mlx, metal2vk, omarchy-cluster, ane-linux-experiments, TensorFold and its fork). `github-watch.py` runs every 6 hours (`.github/workflows/upstream-watch.yml`) and keeps one "Upstream watch" issue listing unacknowledged pushes, branches and PRs. +2. **Triage.** For each flagged change, decide whether it can affect a row here (new engine, runtime pin bump, kernel or driver change). Record that decision on the scoreboard tracking issue. +3. **Re-test.** Build it in a private prefix (never system-wide), run its own gates first (`tensorfold-vulkan.sh test` / `gpu`, `mlx-gate.py sweep`), then `engine-compare.py` with the same models, prompts and guards. +4. **Publish.** Commit the new receipt JSON, run `scoreboard.py`, and open a PR to `dev` with the regenerated CSV, SVG and this page. Rows are replaced by the newest receipt; old receipts stay for history. +5. **Adopt.** A setting becomes our default only when it holds ★ *and* passes the MLX gate; change defaults in a separate PR. + +Rules: everything is documented in our own repo only; we do not post to upstream projects. Rows under "reported elsewhere" are other people's numbers on other hardware and are never ranked against ours. + +## Reproduce + +- Kernel `7.2.11-elementary-aurora72-wip4` (techmore/ElementaryOS_MSeries-Kernel), Apple M1 Pro 32 GB. +- GPU driver: private Honeykrisp ICD shipped by omarchy-mlx, selected per process only: `VK_DRIVER_FILES=$HOME/.local/share/mlx-omarchy/vulkan/honeykrisp_icd.aarch64.json`. Desktop Mesa is untouched. +- Guards on every run: shared worker lock, 6 GiB desktop memory reserve, 80 °C limit, one engine at a time. +- Same prompt, greedy decoding, no thinking; each run is a fresh process with one warmup, three rotated rounds. +- MLX rows time in-process; server rows time a streamed loopback HTTP request. Compare like with like. + +```bash +cd mseries/local-ai +python3 engine-compare.py --model qwen2b # 32 tokens; add --long for 256 +python3 engine-compare.py --model qwen4b --admission-wait-seconds 1800 +python3 engine-compare.py --model lfm3 +python3 mlx-gate.py reference && python3 mlx-gate.py sweep +./tensorfold-vulkan.sh build && ./tensorfold-vulkan.sh gpu +python3 scoreboard.py +``` diff --git a/mseries/local-ai/engine-compare.py b/mseries/local-ai/engine-compare.py new file mode 100755 index 00000000..2384dd1b --- /dev/null +++ b/mseries/local-ai/engine-compare.py @@ -0,0 +1,302 @@ +#!/usr/bin/env python3 +"""Guarded, rotated comparison of local engines on one Qwen3.5-2B checkpoint. + +Arms (each a fresh process: load, one warmup on the same prompt, one measured request): + mlx-5k installed omarchy-mlx, default 5,000 work-group submit budget (baseline) + mlx-120k same runtime at last night's best 120,000 budget + rapid-120k Rapid-MLX loopback server at the 120,000 budget + tensorfold TensorFold native Vulkan server (ashhart/TensorFold PR 1517) + +All four use the same weights, chat prompt, greedy decoding and token limit, +the shared worker lock, the 6 GiB desktop reserve and the 80 C limit. MLX arms +time in-process; server arms time a streamed loopback HTTP request. Those +boundaries differ, so compare servers with servers and MLX with MLX first. +""" +import argparse, fcntl, hashlib, json, os, signal, socket, subprocess, sys, tempfile, threading, time +import urllib.request, urllib.error +from pathlib import Path + +from machine import GIB, snapshot, violations + +HOME = Path.home() +# name: (dir, weights sha256, id@revision, admission GiB, MLX python, arms it can run) +MODELS = { + 'qwen2b': (HOME / '.cache/mseries-metal2vk/qwen35-2b', + '713fe7e5d3c3965f7106b0d0ee17615f7869c23c8d327996df8c1196fbcf07d5', + 'mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3', 4.5, + HOME / '.local/share/mlx-omarchy/venv/bin/python', ('mlx-5k', 'mlx-120k', 'rapid-120k', 'tensorfold')), + 'qwen4b': (HOME / '.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3', + '5fb9acd0246866381cf8c5c354c6db1019f6498eec4ccb4f5edcc71ffeacb2db', + 'mlx-community/Qwen3.5-4B-MLX-4bit@32f3e8ecf65426fc3306969496342d504bfa13f3', 6.5, + HOME / '.local/share/mlx-omarchy/venv/bin/python', ('mlx-5k', 'mlx-120k', 'rapid-120k')), + 'lfm3': (HOME / '.cache/mseries-metal2vk/lfm3-8bit', + '2b06cea98d75527c248a0b04383f7cf0a1c72fb4ed7b45096618fc4e59d015ad', + 'LiquidAI/LFM3-1.7B-MLX-8bit@ee7667f3cfccb2a41725f91820531823fcabc6b7', 4.5, + HOME / '.local/share/mseries-ai/lfm3-audio-venv/bin/python', ('mlx-5k', 'mlx-120k')), +} +MODEL, WEIGHTS_SHA, MODEL_ID, ALLOWANCE_GIB, MLX_PY, MODEL_ARMS = MODELS['qwen2b'] +ICD = HOME / '.local/share/mlx-omarchy/vulkan/honeykrisp_icd.aarch64.json' +RAPID_PATH = f"{HOME}/.cache/mseries-metal2vk/rapid-python:{HOME}/.cache/mseries-metal2vk/rapid-src" +RAPID_REV = '1d09cdb684bbf58fac130f5804b08ee2e1f56558' +TF_BIN = HOME / '.cache/mseries-tensorfold/src/zig-out/native/bin/tensorfold-native-vulkan' +TF_REV = '670902196c47f3e70e3f56ab933805713be31aa8' +PROMPT = 'Explain in plain language how a rainbow forms. Give four distinct sentences.' +LONG_PROMPT = ('Explain in detail how a rainbow forms, including refraction, reflection, color ' + 'and viewing angle. Write at least 350 words.') +ARMS = ('mlx-5k', 'mlx-120k', 'rapid-120k', 'tensorfold') +POLICY = {'reserve_gib': 6, 'max_fan_rpm': float('inf'), 'max_temp_c': 80} +DEADLINE_S = 300 +MODEL_NAME = 'qwen2b' + + +def select_model(name): + global MODEL, WEIGHTS_SHA, MODEL_ID, ALLOWANCE_GIB, MLX_PY, MODEL_ARMS + MODEL, WEIGHTS_SHA, MODEL_ID, ALLOWANCE_GIB, MLX_PY, MODEL_ARMS = MODELS[name] + + +def mlx_worker(prompt_text, max_tokens, output): + """Runs inside the mlx-omarchy venv: load, warm up, time one greedy generation.""" + t0 = time.monotonic() + from mlx_lm import load, stream_generate + from mlx_lm.sample_utils import make_sampler + import mlx.core as mx + model, tok = load(str(MODEL)) + prompt = tok.apply_chat_template([{'role': 'user', 'content': prompt_text}], tokenize=False, + add_generation_prompt=True, enable_thinking=False) + for _ in stream_generate(model, tok, prompt, max_tokens=max_tokens, sampler=make_sampler(temp=0)): + pass + mx.synchronize() + ready = time.monotonic() - t0 + start = time.monotonic(); first = None; tokens = []; text = '' + for r in stream_generate(model, tok, prompt, max_tokens=max_tokens, sampler=make_sampler(temp=0)): + if first is None: + first = time.monotonic() - start + tokens.append(r.token); text += r.text + mx.synchronize() + output.write_text(json.dumps({'ready_s': ready, 'ttft_s': first, 'total_s': time.monotonic() - start, + 'completion_tokens': len(tokens), 'text': text})) + + +def served_model(port): + with urllib.request.urlopen(f'http://127.0.0.1:{port}/v1/models', timeout=10) as r: + return json.load(r)['data'][0]['id'] + + +def stream_chat(port, prompt_text, max_tokens, model): + payload = {'model': model, 'messages': [{'role': 'user', 'content': prompt_text}], + 'max_tokens': max_tokens, 'temperature': 0, 'stream': True, + 'stream_options': {'include_usage': True}, + 'chat_template_kwargs': {'enable_thinking': False}} + req = urllib.request.Request(f'http://127.0.0.1:{port}/v1/chat/completions', + data=json.dumps(payload).encode(), headers={'Content-Type': 'application/json'}) + start = time.monotonic(); first = None; text = ''; deltas = 0; usage = None + with urllib.request.urlopen(req, timeout=DEADLINE_S) as r: + for raw in r: + line = raw.decode().strip() + if not line.startswith('data:'): + continue + body = line[5:].strip() + if body == '[DONE]': + break + event = json.loads(body) + usage = event.get('usage') or usage + for choice in event.get('choices') or []: + piece = (choice.get('delta') or {}).get('content') or '' + if piece: + if first is None: + first = time.monotonic() - start + text += piece; deltas += 1 + total = time.monotonic() - start + count = (usage or {}).get('completion_tokens') or deltas + return {'ttft_s': first, 'total_s': total, 'completion_tokens': count, + 'token_count_source': 'usage' if usage else 'stream deltas', 'text': text} + + +def server_command(arm, port): + if arm == 'tensorfold': + return [str(TF_BIN), 'serve', str(MODEL), '--backend', 'vulkan', '--host', '127.0.0.1', + '--port', str(port), '--context', '1024', '--no-thinking', '--no-update-check'] + return [str(MLX_PY), '-m', 'rapid_mlx.server', '--model', str(MODEL), '--no-mllm', + '--host', '127.0.0.1', '--port', str(port)] + + +def env_for(arm, tmp): + env = {k: v for k, v in os.environ.items() if not k.startswith('MLX_OMARCHY_')} + env.update(VK_DRIVER_FILES=str(ICD), HF_HUB_OFFLINE='1', OMP_NUM_THREADS='2', OPENBLAS_NUM_THREADS='2') + if arm != 'tensorfold': + env['MLX_OMARCHY_BATCH_WORK'] = '5000' if arm == 'mlx-5k' else '120000' + if arm == 'rapid-120k': + env.update(PYTHONPATH=RAPID_PATH, RAPID_MLX_TELEMETRY='0', DO_NOT_TRACK='1', + RAPID_MLX_PREFIX_CACHE_AUTOLOAD='0', XDG_CONFIG_HOME=f'{tmp}/config', + XDG_CACHE_HOME=f'{tmp}/cache', XDG_STATE_HOME=f'{tmp}/state') + return env + + +def run_arm(arm, prompt_text, max_tokens, tmp): + """One fresh process for `arm` under the resource guard; returns its row.""" + started = time.monotonic(); outcome = {} + log = tempfile.TemporaryFile(mode='w+t', dir=tmp) + if arm.startswith('mlx'): + out = Path(tmp) / f'{arm}.json' + cmd = [str(MLX_PY), __file__, '--worker', '--model', MODEL_NAME, '--max-tokens', str(max_tokens), + '--prompt', prompt_text, '--worker-output', str(out)] + else: + with socket.socket() as s: + s.bind(('127.0.0.1', 0)); port = s.getsockname()[1] + cmd = server_command(arm, port) + child = subprocess.Popen(cmd, env=env_for(arm, tmp), stdout=log, stderr=subprocess.STDOUT, + start_new_session=True, cwd=tmp) + + def drive(): + try: + while True: + if child.poll() is not None: + raise RuntimeError(f'server exited during startup ({child.returncode})') + if time.monotonic() - started > 180: + raise RuntimeError('server readiness timeout') + try: + path = '/health' if arm == 'tensorfold' else '/healthz' + with urllib.request.urlopen(f'http://127.0.0.1:{port}{path}', timeout=2): + break + except (OSError, urllib.error.HTTPError): + time.sleep(0.5) + model = served_model(port) + stream_chat(port, prompt_text, max_tokens, model) # warmup on the same prompt + outcome['ready_s'] = time.monotonic() - started + outcome.update(stream_chat(port, prompt_text, max_tokens, model), served_model=model) + except Exception as exc: + outcome['error'] = f'{type(exc).__name__}: {exc}' + + driver = None if arm.startswith('mlx') else threading.Thread(target=drive, daemon=True) + if driver: + driver.start() + samples = []; bad = 0; stopped = None + try: + while (driver.is_alive() if driver else child.poll() is None): + s = snapshot() + samples.append({'t': round(time.monotonic() - started, 2), 'available_gib': round(s['available_bytes'] / GIB, 3), + 'max_temp_c': max(s['temperatures_c'].values(), default=0), + 'max_fan_rpm': max(s['fans_rpm'].values(), default=0)}) + reasons = violations(s, POLICY); bad = bad + 1 if reasons else 0 + if bad >= 3 or time.monotonic() - started > DEADLINE_S: + stopped = reasons or ['deadline']; break + if driver: + driver.join(1) + else: + time.sleep(1) + finally: + if child.poll() is None: + os.killpg(child.pid, signal.SIGTERM) + try: + child.wait(timeout=15) + except subprocess.TimeoutExpired: + os.killpg(child.pid, signal.SIGKILL); child.wait() + if driver: + driver.join(timeout=5) + if arm.startswith('mlx') and not stopped: + if child.returncode == 0 and out.exists(): + outcome.update(json.loads(out.read_text())) + else: + outcome['error'] = f'worker exit {child.returncode}' + log.seek(0); tail = log.read()[-4000:]; log.close() + row = {'arm': arm, 'stopped': stopped, 'samples': samples, 'log_tail': tail, **outcome} + if 'text' in row: + row['text_sha256'] = hashlib.sha256(row['text'].encode()).hexdigest() + n, ttft, total = row['completion_tokens'], row['ttft_s'], row['total_s'] + row['decode_tps'] = (n - 1) / (total - ttft) if n > 1 and ttft is not None and total > ttft else None + row['min_available_gib'] = min((x['available_gib'] for x in samples), default=None) + row['peak_temp_c'] = max((x['max_temp_c'] for x in samples), default=None) + return row + + +def admit(wait_s): + deadline = time.monotonic() + wait_s + while True: + s = snapshot(); reasons = violations(s, POLICY, extra_bytes=int(ALLOWANCE_GIB * GIB)) + if not reasons: + return s + if time.monotonic() >= deadline: + raise RuntimeError('Admission refused: ' + '; '.join(reasons)) + print('waiting for admission: ' + '; '.join(reasons), flush=True) + time.sleep(10) + + +def median(xs): + xs = sorted(x for x in xs if x is not None) + return None if not xs else (xs[len(xs) // 2] if len(xs) % 2 else (xs[len(xs) // 2 - 1] + xs[len(xs) // 2]) / 2) + + +def main(): + p = argparse.ArgumentParser() + p.add_argument('--worker', action='store_true', help=argparse.SUPPRESS) + p.add_argument('--worker-output', type=Path, help=argparse.SUPPRESS) + p.add_argument('--prompt', help=argparse.SUPPRESS) + p.add_argument('--model', choices=list(MODELS), default='qwen2b') + p.add_argument('--max-tokens', type=int, default=32) + p.add_argument('--long', action='store_true', help='256 tokens from the long-form prompt') + p.add_argument('--rounds', type=int, default=3) + p.add_argument('--arms', default=','.join(ARMS)) + p.add_argument('--admission-wait-seconds', type=int, default=0) + p.add_argument('--output', type=Path) + a = p.parse_args() + global MODEL_NAME + MODEL_NAME = a.model + select_model(a.model) + if a.worker: + return mlx_worker(a.prompt, a.max_tokens, a.worker_output) + arms = [x for x in a.arms.split(',') if x and x in MODEL_ARMS] + if not arms: + p.error(f'no runnable arms for {a.model}; it supports {",".join(MODEL_ARMS)}') + prompt_text, max_tokens = (LONG_PROMPT, 256) if a.long else (PROMPT, a.max_tokens) + global DEADLINE_S + if a.long: + DEADLINE_S = 600 # TensorFold's unbatched decode needs ~100 s per 256-token request + with (MODEL / 'model.safetensors').open('rb') as f: + if hashlib.file_digest(f, 'sha256').hexdigest() != WEIGHTS_SHA: + raise SystemExit('Qwen weights do not match the pinned checkpoint') + if 'tensorfold' in arms and not TF_BIN.exists(): + raise SystemExit('TensorFold server missing: run tensorfold-vulkan.sh build') + out = a.output or Path(__file__).resolve().parent / 'receipts' / ( + f"{time.strftime('%Y-%m-%d')}-engine-compare-{a.model}-{'long' if a.long else 'short'}.json") + lock = (HOME / '.local/state/mseries-ai/worker.lock').open('a') + fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB) + report = {'status': 'running', 'model_key': a.model, 'model': MODEL_ID, 'weights_sha256': WEIGHTS_SHA, 'kernel': os.uname().release, 'driver': 'Honeykrisp Mesa ' + (ICD.parent / 'mesa-git-sha').read_text().strip(), + 'tensorfold_rev': TF_REV, 'rapid_rev': RAPID_REV, 'prompt_sha256': hashlib.sha256(prompt_text.encode()).hexdigest(), + 'max_tokens': max_tokens, 'policy': {**POLICY, 'max_fan_rpm': None}, 'allowance_gib': ALLOWANCE_GIB, + 'arms': arms, 'runs': []} + try: + with tempfile.TemporaryDirectory(prefix='engine-compare-', dir=HOME / '.cache') as tmp: + for r in range(a.rounds): + order = arms[r % len(arms):] + arms[:r % len(arms)] # rotate so no arm always goes first + for arm in order: + s = admit(a.admission_wait_seconds) + row = run_arm(arm, prompt_text, max_tokens, tmp) + row.update(round=r + 1, admission_available_gib=round(s['available_bytes'] / GIB, 3)) + report['runs'].append(row) + out.parent.mkdir(parents=True, exist_ok=True) + out.write_text(json.dumps(report, indent=2) + '\n') + if row.get('error') or row.get('stopped'): + print(f"round {r + 1} {arm}: FAILED {row.get('error') or row.get('stopped')}", flush=True) + print(row['log_tail'][-1500:], flush=True) + else: + print(f"round {r + 1} {arm}: ttft {row['ttft_s']:.3f}s total {row['total_s']:.3f}s " + f"{row['completion_tokens']} tok {row['decode_tps'] or 0:.2f} tok/s", flush=True) + time.sleep(3) + report['status'] = 'complete' + except BaseException as exc: + report['status'] = 'interrupted'; report['error'] = str(exc); raise + finally: + summary = {} + for arm in arms: + ok = [x for x in report['runs'] if x['arm'] == arm and 'text' in x and not x.get('error')] + summary[arm] = {'ok_runs': len(ok), 'median_ttft_s': median([x['ttft_s'] for x in ok]), + 'median_total_s': median([x['total_s'] for x in ok]), + 'median_decode_tps': median([x['decode_tps'] for x in ok]), + 'texts': sorted({x['text_sha256'][:12] for x in ok})} + report['summary'] = summary + out.write_text(json.dumps(report, indent=2) + '\n'); lock.close() + print(json.dumps(summary, indent=2)) + + +if __name__ == '__main__': + main() diff --git a/mseries/local-ai/engine-scoreboard.csv b/mseries/local-ai/engine-scoreboard.csv new file mode 100644 index 00000000..dbb3cd54 --- /dev/null +++ b/mseries/local-ai/engine-scoreboard.csv @@ -0,0 +1,14 @@ +best,model,engine,settings,tokens,decode_tok_s,ttft_s,total_s,runs,same_output,gate,kernel,driver,date,status,source,blocker +★,Qwen3.5-2B MLX 4-bit,"MLX (omarchy-mlx, in-process)",MLX_OMARCHY_BATCH_WORK=120000,32,47.19,0.46,1.13,3,yes,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-short.json, +★,Qwen3.5-2B MLX 4-bit,"MLX (omarchy-mlx, in-process)",MLX_OMARCHY_BATCH_WORK=120000,256,49.28,0.56,5.74,3,yes,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-long.json, +,Qwen3.5-2B MLX 4-bit,"MLX (omarchy-mlx, in-process)",defaults (MLX_OMARCHY_BATCH_WORK fallback 5000),32,36.02,0.51,1.37,3,reference,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-short.json, +,Qwen3.5-2B MLX 4-bit,"MLX (omarchy-mlx, in-process)",defaults (MLX_OMARCHY_BATCH_WORK fallback 5000),256,37.19,0.55,7.41,3,reference,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-long.json, +,Qwen3.5-2B MLX 4-bit,Rapid-MLX 1d09cdb (HTTP server),MLX_OMARCHY_BATCH_WORK=120000,32,42.42,0.19,0.92,3,yes,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-short.json, +,Qwen3.5-2B MLX 4-bit,Rapid-MLX 1d09cdb (HTTP server),MLX_OMARCHY_BATCH_WORK=120000,256,43.17,0.40,6.27,3,yes,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-long.json, +,Qwen3.5-2B MLX 4-bit,TensorFold Vulkan PR 1517 (HTTP server),serve --backend vulkan --context 1024 --no-thinking,32,2.40,2.00,14.92,3,yes,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-short.json, +,Qwen3.5-2B MLX 4-bit,TensorFold Vulkan PR 1517 (HTTP server),serve --backend vulkan --context 1024 --no-thinking,256,2.77,3.12,95.26,3,no: diverges after 880 of 1301 chars,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-long.json, +,"Qwen3.8-2B (Q4_K_M GGUF, staged)",ANE (omarchy-ane staged decoder),fp16 / int8 staged programs,,12-16,,,,,,,,,"reported: 13-inch M1 (H13), not run here",UZU-AND-ANE-EVALUATION-2026-10-27.md; receipts/2026-10-27-ane-binding-handoff.md,Needs the compiled 38-program H13 bundle and stride-aware layout binding; six incompatible packed surfaces found locally +,"Qwen3.8-2B (Q4_K_M GGUF, staged)",ANE (ane-linux-experiments decoder preflight),38 ANE submissions per token,,8.23,,,,,,,,,"reported: M1, peak RSS 8.38 GB, not run here",receipts/2026-10-27-ane-qwen-preflight.md,Memory: does not fit beside the 6 GiB desktop reserve on our 32 GB M1 Pro today +,Parakeet TDT (dictation encoder),ANE (whole encoder),CPU-cluster boost held,,138 ms/encode (GPU 113 ms),,,,,,,,,"reported: 13-inch M1, not run here",ane-linux-experiments README; UZU-AND-ANE-EVALUATION-2026-10-27.md,"Worth it for CPU and power, not speed" +,Qwen3.5-2B MLX 4-bit,TensorFold Vulkan + submit batching,unpublished follow-up to PR 1517,,"~10.6 (M1 Max), ~6.9 (M1)",,,,,,,,,"reported upstream, code not public",ashhart/TensorFold issue 1420,Watched in people-watch/branch-watch; re-run engine-compare when it lands +,Qwen3.5 0.8B (Mirai format),uzu (CPU backend),"backend-cpu, stable Rust",,0.36,,,,,,,,,measured here 2026-10-27,UZU-AND-ANE-EVALUATION-2026-10-27.md,No Linux GPU backend; Metal only diff --git a/mseries/local-ai/engine-scoreboard.svg b/mseries/local-ai/engine-scoreboard.svg new file mode 100644 index 00000000..03d80d36 --- /dev/null +++ b/mseries/local-ai/engine-scoreboard.svg @@ -0,0 +1 @@ +Decode speed by engine on Apple M1 ProQwen3.5-2B MLX 4-bit, 32 tokensMLX tuned47.2 tok/s ★Rapid-MLX 1d09cdb tuned42.4 tok/sMLX default36.0 tok/sTensorFold Vulkan PR 15172.4 tok/sQwen3.5-2B MLX 4-bit, 256 tokensMLX tuned49.3 tok/s ★Rapid-MLX 1d09cdb tuned43.2 tok/sMLX default37.2 tok/sTensorFold Vulkan PR 15172.8 tok/s diff --git a/mseries/local-ai/mlx-gate.py b/mseries/local-ai/mlx-gate.py new file mode 100755 index 00000000..0a5dd039 --- /dev/null +++ b/mseries/local-ai/mlx-gate.py @@ -0,0 +1,276 @@ +#!/usr/bin/env python3 +"""TensorFold-style correctness gate and tuning sweep for MLX on the M1 Pro. + +Modeled on the gates TensorFold PR 1517 applies to its own Vulkan engine: +fail-closed finite checks, teacher-forced logits against an independent +reference, token-ID parity, and pre-declared non-inferiority margins. + +Reference: the same pinned Qwen3.5-2B 4-bit checkpoint on MLX's *CPU* backend, +float parameters cast to float32. It shares the weights but not the GPU code +path, so it catches GPU kernel errors. + +Pass rules, fixed before any candidate was measured (do not loosen after the fact): + R1 every teacher-forced logit is finite; + R2 teacher-forced argmax equals the reference argmax on every row whose + reference top-1/top-2 margin is at least TIE_MARGIN (near-ties exempt); + R3 pooled RMSE vs reference <= 1.05 x the baseline's, and every case <= 1.15 x + (TensorFold's adopted non-inferiority margins); + R4 free-running greedy IDs equal the baseline's, or first diverge at a row + the reference marks as a near-tie. +The baseline (installed defaults) must pass R1 and R2 itself; R3/R4 are relative to it. + + mlx-gate.py reference build and cache the CPU reference (once, slow) + mlx-gate.py sweep [--configs ..] gate + time each config, baseline first +""" +import argparse, fcntl, hashlib, json, os, subprocess, sys, tempfile, time +from pathlib import Path + +from machine import GIB, snapshot, violations + +HOME = Path.home() +HERE = Path(__file__).resolve().parent +MODEL = HOME / '.cache/mseries-metal2vk/qwen35-2b' +WEIGHTS_SHA = '713fe7e5d3c3965f7106b0d0ee17615f7869c23c8d327996df8c1196fbcf07d5' +ICD = HOME / '.local/share/mlx-omarchy/vulkan/honeykrisp_icd.aarch64.json' +MLX_PY = HOME / '.local/share/mlx-omarchy/venv/bin/python' +REF_DIR = HOME / '.cache/mseries-mlx-gate/reference-v1' +POLICY = {'reserve_gib': 6, 'max_fan_rpm': float('inf'), 'max_temp_c': 80} +ALLOWANCE_GIB = 4.5 +STEPS = 32 +TIE_MARGIN = 0.5 +POOLED_MARGIN, CASE_MARGIN = 1.05, 1.15 + +# Varied lengths and content, after TensorFold's 1-65 token prompt set. +CASES = { + 'rainbow': 'Explain in plain language how a rainbow forms. Give four distinct sentences.', + 'single': 'Hi', + 'unicode': 'Traduis en français et en japonais : « The weather is lovely today, isn’t it? » 🌦️', + 'code': 'Write a Python function that returns the n-th Fibonacci number iteratively, with a docstring and two doctests.', + 'prose': ('Summarize the following in two sentences. The committee met on Tuesday to review the ' + 'budget for the new library wing. After a long discussion about costs, staffing and the ' + 'construction timeline, members agreed to delay the vote until an independent estimate ' + 'arrives next month.'), + 'math': 'A train leaves at 3:40 pm and travels 210 km at 84 km/h. At what time does it arrive? Show the steps.', +} + +# Each config is env overrides on top of the installed defaults. Scheduling-only +# switches are documented upstream as bit-identical; SDPA_BF16_FAST is documented +# as changing token IDs on M1 and acts as the gate's negative control. +CONFIGS = { + 'baseline': {}, + 'work20k': {'MLX_OMARCHY_BATCH_WORK': '20000'}, + 'work80k': {'MLX_OMARCHY_BATCH_WORK': '80000'}, + 'work120k': {'MLX_OMARCHY_BATCH_WORK': '120000'}, + 'work-uncapped': {'MLX_OMARCHY_BATCH_WORK': '0'}, + 'work120k-nodes8k': {'MLX_OMARCHY_BATCH_WORK': '120000', 'MLX_OMARCHY_BATCH_NODES': '8192'}, + 'work120k-first64': {'MLX_OMARCHY_BATCH_WORK': '120000', 'MLX_OMARCHY_BATCH_FIRST': '64'}, + 'work120k-wave': {'MLX_OMARCHY_BATCH_WORK': '120000', 'MLX_OMARCHY_WAVE_SCHED': '1'}, + 'work120k-prio': {'MLX_OMARCHY_BATCH_WORK': '120000', 'MLX_OMARCHY_QUEUE_PRIORITY': 'medium'}, + 'neg-sdpa-bf16-fast': {'MLX_OMARCHY_BATCH_WORK': '120000', 'MLX_OMARCHY_SDPA_BF16_FAST': '1'}, +} + + +# ---------------------------------------------------------------- worker side (mlx venv) + +def load(cpu): + import mlx.core as mx + from mlx_lm import load as mlx_load + if cpu: + mx.set_default_device(mx.cpu) + model, tok = mlx_load(str(MODEL)) + if cpu: + model.set_dtype(mx.float32) + return mx, model, tok + + +def prompt_ids(tok, text): + s = tok.apply_chat_template([{'role': 'user', 'content': text}], tokenize=False, + add_generation_prompt=True, enable_thinking=False) + return tok.encode(s, add_special_tokens=False) + + +def greedy(mx, model, ids, steps): + from mlx_lm.models.cache import make_prompt_cache + cache = make_prompt_cache(model) + logits = model(mx.array(ids)[None], cache=cache)[:, -1, :] + out = [] + t0 = None + for i in range(steps): + nxt = int(mx.argmax(logits, axis=-1).item()) + if i == 0: + t0 = time.monotonic() + out.append(nxt) + logits = model(mx.array([[nxt]]), cache=cache)[:, -1, :] + mx.eval(logits) + decode_s = time.monotonic() - t0 + return out, decode_s + + +def teacher_forced(mx, model, ids, gen): + """Logits for the rows that predict each generated token (len(gen) rows).""" + seq = ids + gen[:-1] + logits = model(mx.array(seq)[None])[0, len(ids) - 1:, :].astype(mx.float32) + mx.eval(logits) + import numpy as np + return np.array(logits) + + +def worker(mode, out_dir): + import numpy as np + cpu = mode == 'reference' + mx, model, tok = load(cpu) + out_dir = Path(out_dir); out_dir.mkdir(parents=True, exist_ok=True) + meta = {} + ref = None if cpu else json.loads((REF_DIR / 'meta.json').read_text()) + for name, text in CASES.items(): + ids = prompt_ids(tok, text) + if not cpu: + greedy(mx, model, ids, 4) # warm the kernels for this shape + gen, decode_s = greedy(mx, model, ids, STEPS) + forced = ref['cases'][name]['ids'] if ref else gen + logits = teacher_forced(mx, model, ids, forced) + np.save(out_dir / f'{name}.npy', logits) + meta[name] = {'prompt_tokens': len(ids), 'ids': gen, 'decode_s': decode_s, + 'prompt_sha256': hashlib.sha256(json.dumps(ids).encode()).hexdigest()} + (out_dir / 'meta.json').write_text(json.dumps({'cases': meta}, indent=1)) + + +# ---------------------------------------------------------------- driver side + +def run_child(mode, out_dir, env_over, deadline): + env = {k: v for k, v in os.environ.items() if not k.startswith('MLX_OMARCHY_')} + env.update(VK_DRIVER_FILES=str(ICD), HF_HUB_OFFLINE='1', OMP_NUM_THREADS='4', **env_over) + log = tempfile.TemporaryFile(mode='w+t') + child = subprocess.Popen([str(MLX_PY), __file__, '--worker', mode, '--out', str(out_dir)], + env=env, stdout=log, stderr=subprocess.STDOUT, start_new_session=True) + start = time.monotonic(); bad = 0; stopped = None; low = None; hot = 0 + try: + while child.poll() is None: + s = snapshot(); r = violations(s, POLICY) + low = min(low or 1e9, s['available_bytes'] / GIB); hot = max(hot, max(s['temperatures_c'].values(), default=0)) + bad = bad + 1 if r else 0 + if bad >= 3 or time.monotonic() - start > deadline: + stopped = r or ['deadline']; os.killpg(child.pid, 15); break + time.sleep(1) + child.wait(timeout=20) + finally: + if child.poll() is None: + os.killpg(child.pid, 9); child.wait() + log.seek(0); tail = log.read()[-3000:] + return {'exit': child.returncode, 'stopped': stopped, 'seconds': round(time.monotonic() - start, 1), + 'min_available_gib': round(low or 0, 2), 'peak_temp_c': hot, 'log_tail': tail} + + +def admit(wait_s): + end = time.monotonic() + wait_s + while True: + r = violations(snapshot(), POLICY, extra_bytes=int(ALLOWANCE_GIB * GIB)) + if not r: + return + if time.monotonic() > end: + raise SystemExit('Admission refused: ' + '; '.join(r)) + print('waiting for admission: ' + '; '.join(r), flush=True); time.sleep(10) + + +def score(cand_dir, ref, base=None): + import numpy as np + meta = json.loads((cand_dir / 'meta.json').read_text())['cases'] + out = {'cases': {}, 'violations': []} + se_sum = 0.0; n_sum = 0 + for name in CASES: + r = np.load(REF_DIR / f'{name}.npy'); c = np.load(cand_dir / f'{name}.npy') + if not np.isfinite(c).all(): + out['violations'].append(f'R1 {name}: non-finite logits') + top2 = np.sort(r, axis=1)[:, -2:]; margin = top2[:, 1] - top2[:, 0] + ra, ca = r.argmax(1), c.argmax(1) + flips = [int(i) for i in np.nonzero((ra != ca) & (margin >= TIE_MARGIN))[0]] + if flips: + out['violations'].append(f'R2 {name}: argmax differs at non-tie rows {flips}') + err = (c.astype(np.float64) - r) ** 2 + rmse = float(np.sqrt(err.mean())); se_sum += float(err.sum()); n_sum += err.size + ids, ref_ids = meta[name]['ids'], ref['cases'][name]['ids'] + div = next((i for i, (a, b) in enumerate(zip(ids, ref_ids)) if a != b), None) + out['cases'][name] = {'rmse': rmse, 'argmax_agree': float((ra == ca).mean()), 'non_tie_flips': flips, + 'ids': ids, 'first_divergence_vs_reference': div, + 'decode_tok_s': (STEPS - 1) / meta[name]['decode_s']} + out['pooled_rmse'] = (se_sum / n_sum) ** 0.5 + out['median_decode_tok_s'] = sorted(c['decode_tok_s'] for c in out['cases'].values())[len(CASES) // 2] + if base: + if out['pooled_rmse'] > POOLED_MARGIN * base['pooled_rmse']: + out['violations'].append(f"R3 pooled RMSE {out['pooled_rmse']:.4g} > {POOLED_MARGIN} x baseline {base['pooled_rmse']:.4g}") + for name, c in out['cases'].items(): + b = base['cases'][name] + if c['rmse'] > CASE_MARGIN * b['rmse']: + out['violations'].append(f"R3 {name}: RMSE {c['rmse']:.4g} > {CASE_MARGIN} x baseline {b['rmse']:.4g}") + div = next((i for i, (x, y) in enumerate(zip(c['ids'], b['ids'])) if x != y), None) + c['first_divergence_vs_baseline'] = div + if div is not None: + r = np.load(REF_DIR / f'{name}.npy'); t = np.sort(r[div])[-2:] + if t[1] - t[0] >= TIE_MARGIN: + out['violations'].append(f'R4 {name}: greedy IDs diverge from baseline at non-tie step {div}') + out['pass'] = not out['violations'] + return out + + +def main(): + p = argparse.ArgumentParser() + p.add_argument('--worker'); p.add_argument('--out') + p.add_argument('mode', nargs='?', choices=['reference', 'sweep']) + p.add_argument('--configs', default=','.join(CONFIGS)) + p.add_argument('--admission-wait-seconds', type=int, default=0) + p.add_argument('--output', type=Path) + a = p.parse_args() + if a.worker: + return worker(a.worker, a.out) + if not a.mode: + p.error('mode required') + with (MODEL / 'model.safetensors').open('rb') as f: + if hashlib.file_digest(f, 'sha256').hexdigest() != WEIGHTS_SHA: + raise SystemExit('Qwen weights do not match the pinned checkpoint') + lock = (HOME / '.local/state/mseries-ai/worker.lock').open('a') + fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB) + if a.mode == 'reference': + admit(a.admission_wait_seconds) + tmp = REF_DIR.with_name(REF_DIR.name + '.partial') + res = run_child('reference', tmp, {}, 3600) + if res['exit'] != 0 or res['stopped']: + print(json.dumps(res, indent=1)); raise SystemExit('reference build failed') + tmp.rename(REF_DIR) + print(f"reference written to {REF_DIR} in {res['seconds']} s") + return + if not (REF_DIR / 'meta.json').exists(): + raise SystemExit('no reference: run `mlx-gate.py reference` first') + ref = json.loads((REF_DIR / 'meta.json').read_text()) + names = [c for c in a.configs.split(',') if c] + if 'baseline' in names: + names.remove('baseline') + names.insert(0, 'baseline') + out = a.output or HERE / 'receipts' / f"{time.strftime('%Y-%m-%d')}-mlx-gate-sweep.json" + report = {'model': 'mlx-community/Qwen3.5-2B-MLX-4bit@93760be4', 'weights_sha256': WEIGHTS_SHA, + 'kernel': os.uname().release, 'steps': STEPS, 'tie_margin': TIE_MARGIN, + 'margins': {'pooled': POOLED_MARGIN, 'case': CASE_MARGIN}, 'cases': list(CASES), 'configs': {}} + base = None + with tempfile.TemporaryDirectory(prefix='mlx-gate-', dir=HOME / '.cache') as tmp: + for name in names: + admit(a.admission_wait_seconds) + d = Path(tmp) / name + res = run_child('candidate', d, CONFIGS[name], 900) + row = {'env': CONFIGS[name], **{k: v for k, v in res.items() if k != 'log_tail'}} + if res['exit'] != 0 or res['stopped']: + row.update(gate='ERROR', log_tail=res['log_tail']) + else: + row.update(score(d, ref, base)) + row['gate'] = 'PASS' if row['pass'] else 'FAIL' + if name == 'baseline': + if not row['pass']: + print('baseline fails R1/R2 against the CPU reference; stopping'); report['configs'][name] = row; break + base = row + report['configs'][name] = row + out.write_text(json.dumps(report, indent=1) + '\n') + print(f"{name:20s} {row['gate']:5s} decode {row.get('median_decode_tok_s', 0):6.2f} tok/s " + f"pooled-RMSE {row.get('pooled_rmse', float('nan')):.4g} {'; '.join(row.get('violations', []))[:160]}", flush=True) + lock.close() + + +if __name__ == '__main__': + main() diff --git a/mseries/local-ai/receipts/2026-10-27-tensorfold-vulkan.md b/mseries/local-ai/receipts/2026-10-27-tensorfold-vulkan.md index d4074ca1..7925e892 100644 --- a/mseries/local-ai/receipts/2026-10-27-tensorfold-vulkan.md +++ b/mseries/local-ai/receipts/2026-10-27-tensorfold-vulkan.md @@ -1,5 +1,97 @@ # TensorFold Vulkan feasibility — 2026-10-27 +## Engine PR now public (2026-10-28) + +The staged engine PR this receipt was waiting for is +[ashhart/TensorFold PR 1517](https://github.com/ashhart/TensorFold/pull/1517), +head `670902196c47f3e70e3f56ab933805713be31aa8` (15 commits, about 17,950 +added lines, Apache-2.0). It adds an opt-in native Vulkan backend, built only with +`-Dvulkan=true`, for one model: dense Qwen3.5-2B MLX Q4 group 64. It runs on one +GPU with one stream and greedy decoding only, and has a 7,168-token ceiling. It is +Zig host code plus GLSL compute shaders compiled with `glslang`, with some shader +code adapted from mlx-omarchy. Outside new files it touches only `build.zig`, +`zig/src/server/cli.zig` (`--backend vulkan`) and license notices. Upstream +tested it only on M1 Max and M1 under Honeykrisp. It does **not** claim token +parity with the Metal engine: 4 of 9 prompts diverge, and three teacher-forced +logit cases fail upstream's tolerances. Decode takes about 155 ms/token, before +the submit-batching follow-up, which is still unpublished. + +**Kernel:** this is userspace only. It needs a Vulkan 1.3 compute device via +Honeykrisp; on `7.2.11-elementary-aurora72-wip4` the private ICD already +enumerates M1 Pro at Vulkan 1.4 (see *Local baseline*). No kernel patch, config +or UAPI change is needed. The ANE driver used by the sibling ane-linux-experiments +work is also already live on wip4 (`/dev/accel/accel0`). + +**Overlap with this branch:** it uses the same checkpoint revision (`93760be4…`) +as our Qwen3.5 2B smoke, the same private ICD, and the same "separate prefix, +process-local `VK_DRIVER_FILES`" rule set out under *Next gate*. Our 20k–120k +work-group budget measurements are MLX/Rapid submission sizing, not this +engine. They are not a substitute for the TensorFold batching follow-up. + +**Port:** [`tensorfold-vulkan.sh`](../tensorfold-vulkan.sh) pins the PR head and +the official Zig 0.17.0 aarch64 tarball (SHA-256 checked). It builds under +`~/.cache/mseries-tensorfold` and refuses to run if the PR head moves or if +`$HOME` has less than 5 GiB free. It has three modes: `build` (server and stage +probes), `test` (GPU-free host suites) and `gpu` (stage 1–5 operator gates, with +the private ICD selected only for that process). The upstream source and Zig were +fetched and verified on this M1 Pro. + +**Build result (2026-10-28, owner-run `build`):** completed on the M1 Pro under +wip4 with no errors, as a ReleaseSafe build. It produced 25 SPIR-V shader modules +under `stage1/` to `stage5/`, the server +`tensorfold-native-vulkan` (SHA-256 `5acf4452…a867379b`), and the probes +`tf-qwen35-model` (`0a604cd3…3619d98c`), `tf-vulkan-probe` and +`tf-stage1-gpu` to `tf-stage5-gpu`. The whole prefix uses 906 MiB. + +**Host tests (2026-10-28, owner-run `test`):** PASS. Of `vulkan-host-test`, +`qwen35-model-host-test` and `model-host-test`, 68/68 build steps succeeded. +Most test runs were reported as cached passes from the first invocation; Zig +caches only passing runs. One test was skipped: the real-checkpoint load, which +needs `TF_QWEN_DIR`. Zig 0.17 prints passing tests' diagnostic output (the +admission-refusal and replay lines) under a red "failed command" header, so the +script now prints an explicit verdict. + +**GPU operator gates (2026-10-28, owner-run `gpu`):** PASS on Apple M1 Pro +(G13S C0), Honeykrisp Mesa 26.3.0-devel `7faf04c065`, Vulkan 1.4.359, wip4. +All 39 cases passed: + +| Stage | Operators | Cases | +| --- | --- | ---: | +| 1 | cast, copy, gather, embedding, Q4 projection | 13/13 | +| 2 | residual add, SwiGLU, RMS norm | 9/9 | +| 3 | RoPE, KV cache, SDPA, gate | 4/4 | +| 4 | GDN conv/split, prefill, decode, norm | 6/6 | +| 5 | greedy argmax over the 248,320 vocabulary | 7/7 | + +The worst case in each check stayed at or below its declared bound; the closest +was 0.996 (stage 4 conv). Repeated runs were byte-identical, and planted +NaN/±Inf outputs were refused. In stage 5, the `error: non-finite bf16 logit` +lines are the expected refusals of its `nonfinite-refused` case. The device +reports `preserve32=false flush32=true`, so f32 denormals are flushed; +upstream's residual-add check allows this. These are synthetic operator checks, +not a model run. Note: Honeykrisp's Vulkan vendor ID is `0x10005` (Mesa), not +Apple's PCI ID `0x106b`. The model probe and server are not yet wrapped in +the memory/thermal guard used by `test-mlx-model-smoke.py`; do that before any +model run. + +**Sibling repositories touched the same day** (joshuaswarren, 2026-10-27/28): + +* omarchy-cluster PR 39: Honeykrisp reports one heap of 50% of RAM by default; + allocations past it fail with `VK_ERROR_OUT_OF_DEVICE_MEMORY` even when RAM is + free, and the kernel never refuses. `HK_SYSMEM=` raises it. On our + 32 GB M1 Pro the default heap would be about 15 GiB. That is above every current + admission allowance, so it is not the cause of the 4B refusals, which come from + our own guard. The script leaves `HK_SYSMEM` unset to keep the desktop + reserve. +* omarchy-mlx PRs 288/289: a storage-buffer-range test skip and a full-logit + quantized matmul split by output columns. These are runtime changes for a later + omarchy-mlx pin bump, not this engine. +* metal2vk PRs 99–105: shim/compiler fixes after our pinned `de6faa02`, for a + later bump of the isolated clspv toolchain. +* ane-linux-experiments: same-day llama.cpp-Vulkan receipts and Honeykrisp heap + readings on M1/M2 hosts, plus PR 7 (surface mapping). These are reference data + only. + ## Compiler completion and `metal::exp` test The pinned clspv build subsequently completed on the M1 Pro. Source: @@ -211,3 +303,16 @@ the maintainer's predeclared teacher-forced float64 fidelity gate and record all failures. The author's public receipt says the raw inputs and executables are private, and the batching code will follow the engine PR, so this is an unexecuted plan rather than evidence of a 30% gain on this machine. + +## Four-engine comparison (2026-10-28) + +Same Qwen3.5-2B MLX 4-bit checkpoint (`93760be4`), same prompts, greedy, no thinking, three rotated rounds, each run a fresh process with one warmup; shared lock, 6 GiB reserve, 80 °C limit; wip4, Honeykrisp `7faf04c065`. Medians: + +| Engine | 32 tok decode | 32 tok TTFT | 256 tok decode | 256 tok output vs MLX default | +| --- | ---: | ---: | ---: | --- | +| MLX default (5k budget) | 36.0 tok/s | 0.51 s | 37.2 tok/s | reference | +| MLX 120k budget | **47.2** | 0.46 s | **49.3** | identical | +| Rapid-MLX 120k (HTTP) | 42.4 | **0.19 s** | 43.2 | identical | +| TensorFold Vulkan PR 1517 (HTTP) | 2.4 | 2.00 s | 2.8 | diverges after 880 of 1,301 chars | + +TensorFold's slowness is structural: `Pipeline.run` (`zig/src/vulkan/dispatch.zig`) records one dispatch, submits it and waits on its fence before the next, so a token costs a few hundred CPU↔GPU round trips. Its server log agrees (`tok/s=2.4–2.6`). Upstream's unpublished submit-batching follow-up targets exactly this. Its 256-token text matched MLX for ~170 tokens and then took a different, coherent continuation, consistent with upstream's reported divergence. Raw data: `2026-10-28-engine-compare-short.json`, `2026-10-28-engine-compare-long.json`; live table in `ENGINE-SCOREBOARD.md`. diff --git a/mseries/local-ai/receipts/2026-10-28-engine-compare-long.json b/mseries/local-ai/receipts/2026-10-28-engine-compare-long.json new file mode 100644 index 00000000..1eae26a9 --- /dev/null +++ b/mseries/local-ai/receipts/2026-10-28-engine-compare-long.json @@ -0,0 +1,4808 @@ +{ + "status": "complete", + "model": "mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3", + "weights_sha256": "713fe7e5d3c3965f7106b0d0ee17615f7869c23c8d327996df8c1196fbcf07d5", + "kernel": "7.2.11-elementary-aurora72-wip4", + "tensorfold_rev": "670902196c47f3e70e3f56ab933805713be31aa8", + "rapid_rev": "1d09cdb684bbf58fac130f5804b08ee2e1f56558", + "prompt_sha256": "2f23962cfdcb7ce0c2b482c4dd71e415f72113b963cfe6594fd5dc1fd4347921", + "max_tokens": 256, + "policy": { + "reserve_gib": 6, + "max_fan_rpm": null, + "max_temp_c": 80 + }, + "allowance_gib": 4.5, + "arms": [ + "mlx-5k", + "mlx-120k", + "rapid-120k", + "tensorfold" + ], + "runs": [ + { + "arm": "mlx-5k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.252, + "max_temp_c": 47.913, + "max_fan_rpm": 2511.0 + }, + { + "t": 1.01, + "available_gib": 10.554, + "max_temp_c": 47.04, + "max_fan_rpm": 2511.0 + }, + { + "t": 2.02, + "available_gib": 9.846, + "max_temp_c": 47.866, + "max_fan_rpm": 2510.0 + }, + { + "t": 3.03, + "available_gib": 9.784, + "max_temp_c": 47.4, + "max_fan_rpm": 2498.0 + }, + { + "t": 4.04, + "available_gib": 9.735, + "max_temp_c": 46.88, + "max_fan_rpm": 2489.0 + }, + { + "t": 5.06, + "available_gib": 9.745, + "max_temp_c": 46.853, + "max_fan_rpm": 2511.0 + }, + { + "t": 6.07, + "available_gib": 9.718, + "max_temp_c": 47.713, + "max_fan_rpm": 2510.0 + }, + { + "t": 7.08, + "available_gib": 9.733, + "max_temp_c": 48.58, + "max_fan_rpm": 2515.0 + }, + { + "t": 8.09, + "available_gib": 9.714, + "max_temp_c": 46.78, + "max_fan_rpm": 2506.0 + }, + { + "t": 9.11, + "available_gib": 9.715, + "max_temp_c": 48.046, + "max_fan_rpm": 2511.0 + }, + { + "t": 10.11, + "available_gib": 9.71, + "max_temp_c": 47.14, + "max_fan_rpm": 2506.0 + }, + { + "t": 11.14, + "available_gib": 9.691, + "max_temp_c": 46.6, + "max_fan_rpm": 2489.0 + }, + { + "t": 12.14, + "available_gib": 9.718, + "max_temp_c": 47.326, + "max_fan_rpm": 2506.0 + }, + { + "t": 13.17, + "available_gib": 9.73, + "max_temp_c": 47.246, + "max_fan_rpm": 2510.0 + }, + { + "t": 14.18, + "available_gib": 9.756, + "max_temp_c": 47.533, + "max_fan_rpm": 2498.0 + }, + { + "t": 15.21, + "available_gib": 9.761, + "max_temp_c": 48.353, + "max_fan_rpm": 2506.0 + }, + { + "t": 16.22, + "available_gib": 9.777, + "max_temp_c": 47.866, + "max_fan_rpm": 2489.0 + }, + { + "t": 17.24, + "available_gib": 9.802, + "max_temp_c": 47.666, + "max_fan_rpm": 2498.0 + }, + { + "t": 18.25, + "available_gib": 10.171, + "max_temp_c": 48.353, + "max_fan_rpm": 2497.0 + } + ], + "log_tail": "", + "ready_s": 10.354950797998754, + "ttft_s": 0.5874293700035196, + "total_s": 7.628496978002659, + "completion_tokens": 256, + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 36.21609877887018, + "min_available_gib": 9.691, + "peak_temp_c": 48.58, + "round": 1, + "admission_available_gib": 11.252 + }, + { + "arm": "mlx-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.137, + "max_temp_c": 47.98, + "max_fan_rpm": 2498.0 + }, + { + "t": 1.03, + "available_gib": 10.512, + "max_temp_c": 48.14, + "max_fan_rpm": 2506.0 + }, + { + "t": 2.04, + "available_gib": 9.781, + "max_temp_c": 49.44, + "max_fan_rpm": 2493.0 + }, + { + "t": 3.06, + "available_gib": 9.617, + "max_temp_c": 48.006, + "max_fan_rpm": 2506.0 + }, + { + "t": 4.07, + "available_gib": 9.336, + "max_temp_c": 47.96, + "max_fan_rpm": 2485.0 + }, + { + "t": 5.08, + "available_gib": 9.269, + "max_temp_c": 47.826, + "max_fan_rpm": 2510.0 + }, + { + "t": 6.09, + "available_gib": 9.274, + "max_temp_c": 47.666, + "max_fan_rpm": 2501.0 + }, + { + "t": 7.1, + "available_gib": 9.325, + "max_temp_c": 47.8, + "max_fan_rpm": 2506.0 + }, + { + "t": 8.11, + "available_gib": 9.393, + "max_temp_c": 48.333, + "max_fan_rpm": 2497.0 + }, + { + "t": 9.11, + "available_gib": 9.21, + "max_temp_c": 48.353, + "max_fan_rpm": 2511.0 + }, + { + "t": 10.13, + "available_gib": 9.21, + "max_temp_c": 48.633, + "max_fan_rpm": 2501.0 + }, + { + "t": 11.14, + "available_gib": 9.252, + "max_temp_c": 48.986, + "max_fan_rpm": 2510.0 + }, + { + "t": 12.15, + "available_gib": 9.264, + "max_temp_c": 48.613, + "max_fan_rpm": 2497.0 + }, + { + "t": 13.17, + "available_gib": 9.225, + "max_temp_c": 48.16, + "max_fan_rpm": 2506.0 + }, + { + "t": 14.18, + "available_gib": 9.495, + "max_temp_c": 48.16, + "max_fan_rpm": 2515.0 + } + ], + "log_tail": "", + "ready_s": 8.62513161500101, + "ttft_s": 0.5593528610042995, + "total_s": 5.804364346004149, + "completion_tokens": 256, + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 48.61762471431601, + "min_available_gib": 9.21, + "peak_temp_c": 49.44, + "round": 1, + "admission_available_gib": 11.137 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.207, + "max_temp_c": 49.086, + "max_fan_rpm": 2484.0 + }, + { + "t": 1.03, + "available_gib": 11.207, + "max_temp_c": 49.746, + "max_fan_rpm": 2497.0 + }, + { + "t": 2.04, + "available_gib": 10.947, + "max_temp_c": 48.893, + "max_fan_rpm": 2506.0 + }, + { + "t": 3.04, + "available_gib": 9.724, + "max_temp_c": 49.766, + "max_fan_rpm": 2471.0 + }, + { + "t": 4.05, + "available_gib": 9.669, + "max_temp_c": 48.4, + "max_fan_rpm": 2514.0 + }, + { + "t": 5.06, + "available_gib": 9.577, + "max_temp_c": 48.28, + "max_fan_rpm": 2514.0 + }, + { + "t": 6.07, + "available_gib": 9.586, + "max_temp_c": 48.633, + "max_fan_rpm": 2510.0 + }, + { + "t": 7.1, + "available_gib": 9.564, + "max_temp_c": 49.04, + "max_fan_rpm": 2471.0 + }, + { + "t": 8.11, + "available_gib": 9.266, + "max_temp_c": 49.44, + "max_fan_rpm": 2510.0 + }, + { + "t": 9.13, + "available_gib": 9.066, + "max_temp_c": 49.213, + "max_fan_rpm": 2497.0 + }, + { + "t": 10.14, + "available_gib": 9.021, + "max_temp_c": 48.913, + "max_fan_rpm": 2506.0 + }, + { + "t": 11.15, + "available_gib": 9.015, + "max_temp_c": 49.1, + "max_fan_rpm": 2506.0 + }, + { + "t": 12.16, + "available_gib": 9.0, + "max_temp_c": 48.94, + "max_fan_rpm": 2497.0 + }, + { + "t": 13.18, + "available_gib": 9.058, + "max_temp_c": 50.83, + "max_fan_rpm": 2489.0 + }, + { + "t": 14.21, + "available_gib": 9.101, + "max_temp_c": 49.386, + "max_fan_rpm": 2501.0 + }, + { + "t": 15.22, + "available_gib": 8.993, + "max_temp_c": 50.629, + "max_fan_rpm": 2484.0 + }, + { + "t": 16.23, + "available_gib": 9.062, + "max_temp_c": 48.893, + "max_fan_rpm": 2506.0 + }, + { + "t": 17.24, + "available_gib": 9.094, + "max_temp_c": 50.266, + "max_fan_rpm": 2505.0 + }, + { + "t": 18.25, + "available_gib": 9.122, + "max_temp_c": 49.413, + "max_fan_rpm": 2510.0 + }, + { + "t": 19.27, + "available_gib": 9.179, + "max_temp_c": 49.566, + "max_fan_rpm": 2497.0 + }, + { + "t": 20.28, + "available_gib": 9.167, + "max_temp_c": 49.726, + "max_fan_rpm": 2522.0 + } + ], + "log_tail": " first chunk arrived, elapsed=0.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] post-first-chunk keepalive (R15 #291), elapsed=0.0s\nINFO:rapid_mlx.scheduler:[schedule] request=chatcmpl-a55 uid=2 prompt_tokens=41 tokens_to_prefill=15, 26 cached max_tokens=256 running=1 waiting=0\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-a55 first token after 0.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] poll #10 disconnected=False elapsed=5.0s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-a55 tokens=297 (41 prompt + 256 output) stored=True time=0.000s cache_entries=4 cache_mem=121MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-a55 finished normally, 256 tokens in 6.2s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-a55 cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 256 tokens in 6.15s (41.6 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffedffff160 [rapid-mlx-infer] (most recent call first):\n File \"/usr/lib/python3.14/threading.py\", line 369 in wait\n File \"/usr/lib/python3.14/queue.py\", line 199 in get\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/telemetry/inference.py\", line 44 in _worker_main\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nThread 0x0000ffff5ed4b160 [mlx-step_0] (most recent call first):\n File \"/usr/lib/python3.14/concurrent/futures/thread.py\", line 116 in _worker\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nCurrent thread 0x0000ffff7cca87a0 [python] (most recent call first):\n Garbage-collecting\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_signal_observability.py\", line 694 in _on_signal\n File \"/usr/lib/python3.14/_weakrefset.py\", line 15 in _remove\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/routes/chat.py\", line 8898 in stream_chat_completion\n File \"/usr/lib/python3.14/asyncio/events.py\", line 94 in _run\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 2057 in _run_once\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 677 in run_forever\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 706 in run_until_complete\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 127 in run\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 204 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-python/uvicorn/server.py\", line 86 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 258 in _run_server\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 285 in run_uvicorn\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4758 in main\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 3750 in wrapped\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4776 in \n File \"\", line 88 in _run_code\n File \"\", line 198 in _run_module_as_main\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 259 chunks (1 keepalives), elapsed=6.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 259 chunks total, elapsed=6.3s\nINFO: Shutting down\nINFO: Waiting for application shutdown.\nINFO:__main__:[lifespan] Prefix-cache auto-save disabled with auto-load by RAPID_MLX_PREFIX_CACHE_AUTOLOAD\nINFO:rapid_mlx.engine_core:Engine stopped\nINFO:rapid_mlx.scheduler:Deep reset completed - all caches cleared\nINFO:rapid_mlx.engine.batched:BatchedEngine stopped\nINFO:__main__:Engine stopped\nINFO: Application shutdown complete.\nINFO: Finished server process [1586548]\n", + "ready_s": 14.971681981995062, + "ttft_s": 0.3582988740017754, + "total_s": 6.265561171996524, + "completion_tokens": 256, + "token_count_source": "usage", + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 43.167204558795554, + "min_available_gib": 8.993, + "peak_temp_c": 50.83, + "round": 1, + "admission_available_gib": 11.207 + }, + { + "arm": "tensorfold", + "stopped": null, + "samples": [ + { + "t": 0.04, + "available_gib": 11.206, + "max_temp_c": 50.427, + "max_fan_rpm": 2501.0 + }, + { + "t": 1.05, + "available_gib": 9.987, + "max_temp_c": 49.88, + "max_fan_rpm": 2505.0 + }, + { + "t": 2.06, + "available_gib": 9.964, + "max_temp_c": 49.413, + "max_fan_rpm": 2509.0 + }, + { + "t": 3.07, + "available_gib": 9.973, + "max_temp_c": 49.726, + "max_fan_rpm": 2492.0 + }, + { + "t": 4.08, + "available_gib": 9.969, + "max_temp_c": 49.733, + "max_fan_rpm": 2510.0 + }, + { + "t": 5.12, + "available_gib": 9.953, + "max_temp_c": 49.7, + "max_fan_rpm": 2501.0 + }, + { + "t": 6.13, + "available_gib": 9.947, + "max_temp_c": 50.048, + "max_fan_rpm": 2484.0 + }, + { + "t": 7.14, + "available_gib": 9.963, + "max_temp_c": 50.233, + "max_fan_rpm": 2505.0 + }, + { + "t": 8.15, + "available_gib": 9.941, + "max_temp_c": 50.451, + "max_fan_rpm": 2505.0 + }, + { + "t": 9.16, + "available_gib": 9.957, + "max_temp_c": 50.822, + "max_fan_rpm": 2493.0 + }, + { + "t": 10.2, + "available_gib": 9.957, + "max_temp_c": 49.766, + "max_fan_rpm": 2488.0 + }, + { + "t": 11.21, + "available_gib": 9.961, + "max_temp_c": 51.008, + "max_fan_rpm": 2505.0 + }, + { + "t": 12.22, + "available_gib": 9.979, + "max_temp_c": 49.726, + "max_fan_rpm": 2505.0 + }, + { + "t": 13.24, + "available_gib": 10.005, + "max_temp_c": 51.177, + "max_fan_rpm": 2505.0 + }, + { + "t": 14.25, + "available_gib": 9.973, + "max_temp_c": 50.814, + "max_fan_rpm": 2513.0 + }, + { + "t": 15.27, + "available_gib": 9.979, + "max_temp_c": 50.427, + "max_fan_rpm": 2505.0 + }, + { + "t": 16.29, + "available_gib": 9.978, + "max_temp_c": 49.546, + "max_fan_rpm": 2505.0 + }, + { + "t": 17.3, + "available_gib": 9.958, + "max_temp_c": 50.459, + "max_fan_rpm": 2509.0 + }, + { + "t": 18.32, + "available_gib": 9.978, + "max_temp_c": 49.533, + "max_fan_rpm": 2501.0 + }, + { + "t": 19.34, + "available_gib": 9.966, + "max_temp_c": 49.88, + "max_fan_rpm": 2505.0 + }, + { + "t": 20.35, + "available_gib": 9.975, + "max_temp_c": 49.9, + "max_fan_rpm": 2505.0 + }, + { + "t": 21.36, + "available_gib": 10.002, + "max_temp_c": 50.629, + "max_fan_rpm": 2496.0 + }, + { + "t": 22.37, + "available_gib": 10.003, + "max_temp_c": 51.008, + "max_fan_rpm": 2496.0 + }, + { + "t": 23.43, + "available_gib": 10.009, + "max_temp_c": 49.373, + "max_fan_rpm": 2509.0 + }, + { + "t": 24.44, + "available_gib": 10.023, + "max_temp_c": 51.0, + "max_fan_rpm": 2462.0 + }, + { + "t": 25.49, + "available_gib": 10.02, + "max_temp_c": 49.56, + "max_fan_rpm": 2496.0 + }, + { + "t": 26.5, + "available_gib": 9.807, + "max_temp_c": 49.873, + "max_fan_rpm": 2505.0 + }, + { + "t": 27.52, + "available_gib": 9.869, + "max_temp_c": 49.9, + "max_fan_rpm": 2496.0 + }, + { + "t": 28.53, + "available_gib": 9.795, + "max_temp_c": 49.713, + "max_fan_rpm": 2513.0 + }, + { + "t": 29.55, + "available_gib": 9.774, + "max_temp_c": 50.443, + "max_fan_rpm": 2504.0 + }, + { + "t": 30.56, + "available_gib": 9.826, + "max_temp_c": 50.806, + "max_fan_rpm": 2505.0 + }, + { + "t": 31.58, + "available_gib": 9.815, + "max_temp_c": 49.873, + "max_fan_rpm": 2496.0 + }, + { + "t": 32.6, + "available_gib": 9.87, + "max_temp_c": 50.258, + "max_fan_rpm": 2504.0 + }, + { + "t": 33.61, + "available_gib": 9.878, + "max_temp_c": 49.386, + "max_fan_rpm": 2513.0 + }, + { + "t": 34.63, + "available_gib": 9.873, + "max_temp_c": 50.62, + "max_fan_rpm": 2492.0 + }, + { + "t": 35.65, + "available_gib": 9.861, + "max_temp_c": 49.726, + "max_fan_rpm": 2497.0 + }, + { + "t": 36.66, + "available_gib": 9.849, + "max_temp_c": 50.048, + "max_fan_rpm": 2522.0 + }, + { + "t": 37.67, + "available_gib": 9.815, + "max_temp_c": 49.9, + "max_fan_rpm": 2500.0 + }, + { + "t": 38.71, + "available_gib": 9.827, + "max_temp_c": 50.258, + "max_fan_rpm": 2509.0 + }, + { + "t": 39.72, + "available_gib": 9.848, + "max_temp_c": 49.893, + "max_fan_rpm": 2505.0 + }, + { + "t": 40.73, + "available_gib": 9.89, + "max_temp_c": 50.072, + "max_fan_rpm": 2505.0 + }, + { + "t": 41.74, + "available_gib": 9.893, + "max_temp_c": 49.413, + "max_fan_rpm": 2522.0 + }, + { + "t": 42.75, + "available_gib": 9.67, + "max_temp_c": 49.726, + "max_fan_rpm": 2509.0 + }, + { + "t": 43.77, + "available_gib": 9.68, + "max_temp_c": 49.86, + "max_fan_rpm": 2509.0 + }, + { + "t": 44.78, + "available_gib": 9.657, + "max_temp_c": 49.4, + "max_fan_rpm": 2496.0 + }, + { + "t": 45.78, + "available_gib": 9.659, + "max_temp_c": 49.426, + "max_fan_rpm": 2505.0 + }, + { + "t": 46.82, + "available_gib": 9.66, + "max_temp_c": 49.266, + "max_fan_rpm": 2509.0 + }, + { + "t": 47.83, + "available_gib": 9.662, + "max_temp_c": 50.83, + "max_fan_rpm": 2496.0 + }, + { + "t": 48.85, + "available_gib": 9.66, + "max_temp_c": 49.726, + "max_fan_rpm": 2505.0 + }, + { + "t": 49.86, + "available_gib": 9.612, + "max_temp_c": 48.753, + "max_fan_rpm": 2492.0 + }, + { + "t": 50.88, + "available_gib": 9.598, + "max_temp_c": 50.443, + "max_fan_rpm": 2514.0 + }, + { + "t": 51.89, + "available_gib": 9.613, + "max_temp_c": 49.213, + "max_fan_rpm": 2488.0 + }, + { + "t": 52.9, + "available_gib": 9.617, + "max_temp_c": 49.386, + "max_fan_rpm": 2513.0 + }, + { + "t": 53.91, + "available_gib": 9.616, + "max_temp_c": 49.606, + "max_fan_rpm": 2492.0 + }, + { + "t": 54.92, + "available_gib": 9.629, + "max_temp_c": 50.685, + "max_fan_rpm": 2505.0 + }, + { + "t": 55.94, + "available_gib": 9.652, + "max_temp_c": 49.9, + "max_fan_rpm": 2506.0 + }, + { + "t": 56.95, + "available_gib": 9.653, + "max_temp_c": 50.443, + "max_fan_rpm": 2510.0 + }, + { + "t": 57.97, + "available_gib": 9.674, + "max_temp_c": 50.258, + "max_fan_rpm": 2506.0 + }, + { + "t": 58.99, + "available_gib": 9.618, + "max_temp_c": 49.546, + "max_fan_rpm": 2501.0 + }, + { + "t": 60.01, + "available_gib": 9.617, + "max_temp_c": 49.733, + "max_fan_rpm": 2509.0 + }, + { + "t": 61.02, + "available_gib": 9.821, + "max_temp_c": 49.746, + "max_fan_rpm": 2501.0 + }, + { + "t": 62.05, + "available_gib": 9.816, + "max_temp_c": 48.56, + "max_fan_rpm": 2496.0 + }, + { + "t": 63.06, + "available_gib": 9.832, + "max_temp_c": 49.913, + "max_fan_rpm": 2505.0 + }, + { + "t": 64.08, + "available_gib": 9.826, + "max_temp_c": 49.413, + "max_fan_rpm": 2501.0 + }, + { + "t": 65.09, + "available_gib": 9.833, + "max_temp_c": 49.386, + "max_fan_rpm": 2500.0 + }, + { + "t": 66.1, + "available_gib": 9.854, + "max_temp_c": 49.746, + "max_fan_rpm": 2484.0 + }, + { + "t": 67.12, + "available_gib": 9.873, + "max_temp_c": 49.213, + "max_fan_rpm": 2513.0 + }, + { + "t": 68.14, + "available_gib": 9.863, + "max_temp_c": 49.593, + "max_fan_rpm": 2509.0 + }, + { + "t": 69.16, + "available_gib": 9.866, + "max_temp_c": 49.566, + "max_fan_rpm": 2493.0 + }, + { + "t": 70.18, + "available_gib": 9.881, + "max_temp_c": 49.4, + "max_fan_rpm": 2505.0 + }, + { + "t": 71.19, + "available_gib": 9.845, + "max_temp_c": 49.1, + "max_fan_rpm": 2509.0 + }, + { + "t": 72.22, + "available_gib": 9.848, + "max_temp_c": 49.126, + "max_fan_rpm": 2492.0 + }, + { + "t": 73.24, + "available_gib": 9.848, + "max_temp_c": 49.286, + "max_fan_rpm": 2505.0 + }, + { + "t": 74.25, + "available_gib": 9.836, + "max_temp_c": 48.786, + "max_fan_rpm": 2510.0 + }, + { + "t": 75.27, + "available_gib": 9.828, + "max_temp_c": 49.413, + "max_fan_rpm": 2505.0 + }, + { + "t": 76.28, + "available_gib": 9.82, + "max_temp_c": 49.253, + "max_fan_rpm": 2522.0 + }, + { + "t": 77.3, + "available_gib": 9.826, + "max_temp_c": 48.893, + "max_fan_rpm": 2463.0 + }, + { + "t": 78.31, + "available_gib": 9.847, + "max_temp_c": 48.573, + "max_fan_rpm": 2506.0 + }, + { + "t": 79.33, + "available_gib": 9.877, + "max_temp_c": 48.633, + "max_fan_rpm": 2509.0 + }, + { + "t": 80.34, + "available_gib": 9.876, + "max_temp_c": 48.96, + "max_fan_rpm": 2523.0 + }, + { + "t": 81.35, + "available_gib": 9.933, + "max_temp_c": 49.766, + "max_fan_rpm": 2497.0 + }, + { + "t": 82.39, + "available_gib": 9.933, + "max_temp_c": 49.1, + "max_fan_rpm": 2505.0 + }, + { + "t": 83.41, + "available_gib": 9.879, + "max_temp_c": 49.253, + "max_fan_rpm": 2488.0 + }, + { + "t": 84.41, + "available_gib": 9.881, + "max_temp_c": 48.8, + "max_fan_rpm": 2506.0 + }, + { + "t": 85.46, + "available_gib": 9.888, + "max_temp_c": 49.4, + "max_fan_rpm": 2510.0 + }, + { + "t": 86.48, + "available_gib": 9.899, + "max_temp_c": 48.94, + "max_fan_rpm": 2496.0 + }, + { + "t": 87.5, + "available_gib": 9.892, + "max_temp_c": 48.733, + "max_fan_rpm": 2514.0 + }, + { + "t": 88.51, + "available_gib": 9.917, + "max_temp_c": 48.766, + "max_fan_rpm": 2484.0 + }, + { + "t": 89.52, + "available_gib": 9.923, + "max_temp_c": 48.3, + "max_fan_rpm": 2484.0 + }, + { + "t": 90.54, + "available_gib": 9.927, + "max_temp_c": 48.613, + "max_fan_rpm": 2509.0 + }, + { + "t": 91.55, + "available_gib": 9.873, + "max_temp_c": 49.1, + "max_fan_rpm": 2513.0 + }, + { + "t": 92.56, + "available_gib": 9.869, + "max_temp_c": 49.253, + "max_fan_rpm": 2492.0 + }, + { + "t": 93.57, + "available_gib": 9.867, + "max_temp_c": 50.306, + "max_fan_rpm": 2514.0 + }, + { + "t": 94.59, + "available_gib": 9.854, + "max_temp_c": 48.82, + "max_fan_rpm": 2501.0 + }, + { + "t": 95.61, + "available_gib": 9.85, + "max_temp_c": 48.3, + "max_fan_rpm": 2510.0 + }, + { + "t": 96.62, + "available_gib": 9.83, + "max_temp_c": 49.426, + "max_fan_rpm": 2505.0 + }, + { + "t": 97.63, + "available_gib": 9.855, + "max_temp_c": 49.113, + "max_fan_rpm": 2509.0 + }, + { + "t": 98.67, + "available_gib": 9.869, + "max_temp_c": 48.786, + "max_fan_rpm": 2505.0 + }, + { + "t": 99.68, + "available_gib": 9.868, + "max_temp_c": 49.286, + "max_fan_rpm": 2488.0 + }, + { + "t": 100.69, + "available_gib": 9.869, + "max_temp_c": 48.433, + "max_fan_rpm": 2497.0 + }, + { + "t": 101.71, + "available_gib": 9.863, + "max_temp_c": 49.266, + "max_fan_rpm": 2488.0 + }, + { + "t": 102.72, + "available_gib": 9.85, + "max_temp_c": 48.926, + "max_fan_rpm": 2492.0 + }, + { + "t": 103.73, + "available_gib": 9.805, + "max_temp_c": 48.96, + "max_fan_rpm": 2496.0 + }, + { + "t": 104.75, + "available_gib": 9.788, + "max_temp_c": 48.473, + "max_fan_rpm": 2497.0 + }, + { + "t": 105.77, + "available_gib": 9.807, + "max_temp_c": 48.926, + "max_fan_rpm": 2510.0 + }, + { + "t": 106.8, + "available_gib": 9.822, + "max_temp_c": 47.94, + "max_fan_rpm": 2497.0 + }, + { + "t": 107.81, + "available_gib": 9.85, + "max_temp_c": 48.973, + "max_fan_rpm": 2493.0 + }, + { + "t": 108.82, + "available_gib": 9.836, + "max_temp_c": 48.453, + "max_fan_rpm": 2510.0 + }, + { + "t": 109.84, + "available_gib": 9.821, + "max_temp_c": 49.253, + "max_fan_rpm": 2505.0 + }, + { + "t": 110.85, + "available_gib": 9.783, + "max_temp_c": 48.14, + "max_fan_rpm": 2501.0 + }, + { + "t": 111.86, + "available_gib": 9.793, + "max_temp_c": 48.96, + "max_fan_rpm": 2496.0 + }, + { + "t": 112.88, + "available_gib": 9.805, + "max_temp_c": 48.913, + "max_fan_rpm": 2496.0 + }, + { + "t": 113.91, + "available_gib": 9.784, + "max_temp_c": 48.28, + "max_fan_rpm": 2514.0 + }, + { + "t": 114.94, + "available_gib": 9.786, + "max_temp_c": 49.606, + "max_fan_rpm": 2497.0 + }, + { + "t": 115.96, + "available_gib": 9.783, + "max_temp_c": 48.766, + "max_fan_rpm": 2484.0 + }, + { + "t": 116.97, + "available_gib": 9.806, + "max_temp_c": 48.12, + "max_fan_rpm": 2522.0 + }, + { + "t": 118.0, + "available_gib": 9.798, + "max_temp_c": 49.146, + "max_fan_rpm": 2509.0 + }, + { + "t": 119.01, + "available_gib": 9.834, + "max_temp_c": 48.28, + "max_fan_rpm": 2509.0 + }, + { + "t": 120.04, + "available_gib": 9.824, + "max_temp_c": 48.72, + "max_fan_rpm": 2483.0 + }, + { + "t": 121.05, + "available_gib": 9.846, + "max_temp_c": 48.593, + "max_fan_rpm": 2501.0 + }, + { + "t": 122.08, + "available_gib": 9.857, + "max_temp_c": 48.613, + "max_fan_rpm": 2501.0 + }, + { + "t": 123.1, + "available_gib": 9.859, + "max_temp_c": 48.073, + "max_fan_rpm": 2501.0 + }, + { + "t": 124.12, + "available_gib": 9.869, + "max_temp_c": 48.613, + "max_fan_rpm": 2505.0 + }, + { + "t": 125.13, + "available_gib": 9.858, + "max_temp_c": 48.16, + "max_fan_rpm": 2496.0 + }, + { + "t": 126.14, + "available_gib": 9.88, + "max_temp_c": 48.646, + "max_fan_rpm": 2514.0 + }, + { + "t": 127.15, + "available_gib": 9.879, + "max_temp_c": 48.646, + "max_fan_rpm": 2484.0 + }, + { + "t": 128.16, + "available_gib": 9.887, + "max_temp_c": 48.433, + "max_fan_rpm": 2509.0 + }, + { + "t": 129.2, + "available_gib": 9.861, + "max_temp_c": 49.126, + "max_fan_rpm": 2510.0 + }, + { + "t": 130.22, + "available_gib": 9.856, + "max_temp_c": 48.28, + "max_fan_rpm": 2488.0 + }, + { + "t": 131.23, + "available_gib": 9.856, + "max_temp_c": 48.333, + "max_fan_rpm": 2522.0 + }, + { + "t": 132.25, + "available_gib": 9.849, + "max_temp_c": 48.433, + "max_fan_rpm": 2514.0 + }, + { + "t": 133.26, + "available_gib": 9.849, + "max_temp_c": 48.986, + "max_fan_rpm": 2505.0 + }, + { + "t": 134.27, + "available_gib": 9.912, + "max_temp_c": 48.006, + "max_fan_rpm": 2509.0 + }, + { + "t": 135.29, + "available_gib": 9.899, + "max_temp_c": 47.96, + "max_fan_rpm": 2493.0 + }, + { + "t": 136.31, + "available_gib": 9.905, + "max_temp_c": 48.453, + "max_fan_rpm": 2493.0 + }, + { + "t": 137.32, + "available_gib": 9.89, + "max_temp_c": 48.646, + "max_fan_rpm": 2493.0 + }, + { + "t": 138.33, + "available_gib": 9.938, + "max_temp_c": 47.98, + "max_fan_rpm": 2484.0 + }, + { + "t": 139.34, + "available_gib": 9.954, + "max_temp_c": 47.98, + "max_fan_rpm": 2501.0 + }, + { + "t": 140.36, + "available_gib": 9.959, + "max_temp_c": 48.573, + "max_fan_rpm": 2523.0 + }, + { + "t": 141.38, + "available_gib": 9.952, + "max_temp_c": 47.646, + "max_fan_rpm": 2501.0 + }, + { + "t": 142.39, + "available_gib": 9.961, + "max_temp_c": 48.18, + "max_fan_rpm": 2488.0 + }, + { + "t": 143.4, + "available_gib": 9.95, + "max_temp_c": 48.14, + "max_fan_rpm": 2523.0 + }, + { + "t": 144.41, + "available_gib": 9.943, + "max_temp_c": 49.146, + "max_fan_rpm": 2509.0 + }, + { + "t": 145.46, + "available_gib": 9.946, + "max_temp_c": 48.453, + "max_fan_rpm": 2484.0 + }, + { + "t": 146.48, + "available_gib": 9.928, + "max_temp_c": 47.666, + "max_fan_rpm": 2518.0 + }, + { + "t": 147.49, + "available_gib": 9.936, + "max_temp_c": 48.8, + "max_fan_rpm": 2505.0 + }, + { + "t": 148.51, + "available_gib": 9.923, + "max_temp_c": 48.32, + "max_fan_rpm": 2501.0 + }, + { + "t": 149.51, + "available_gib": 9.936, + "max_temp_c": 48.8, + "max_fan_rpm": 2506.0 + }, + { + "t": 150.55, + "available_gib": 9.926, + "max_temp_c": 47.513, + "max_fan_rpm": 2501.0 + }, + { + "t": 151.56, + "available_gib": 9.926, + "max_temp_c": 48.333, + "max_fan_rpm": 2510.0 + }, + { + "t": 152.57, + "available_gib": 9.926, + "max_temp_c": 48.493, + "max_fan_rpm": 2510.0 + }, + { + "t": 153.61, + "available_gib": 9.914, + "max_temp_c": 48.2, + "max_fan_rpm": 2510.0 + }, + { + "t": 154.63, + "available_gib": 9.919, + "max_temp_c": 48.8, + "max_fan_rpm": 2536.0 + }, + { + "t": 155.67, + "available_gib": 9.921, + "max_temp_c": 47.94, + "max_fan_rpm": 2492.0 + }, + { + "t": 156.68, + "available_gib": 9.914, + "max_temp_c": 48.766, + "max_fan_rpm": 2523.0 + }, + { + "t": 157.69, + "available_gib": 9.921, + "max_temp_c": 47.826, + "max_fan_rpm": 2510.0 + }, + { + "t": 158.73, + "available_gib": 9.908, + "max_temp_c": 47.8, + "max_fan_rpm": 2488.0 + }, + { + "t": 159.75, + "available_gib": 9.905, + "max_temp_c": 47.8, + "max_fan_rpm": 2497.0 + }, + { + "t": 160.79, + "available_gib": 9.894, + "max_temp_c": 47.98, + "max_fan_rpm": 2523.0 + }, + { + "t": 161.8, + "available_gib": 9.863, + "max_temp_c": 48.006, + "max_fan_rpm": 2510.0 + }, + { + "t": 162.81, + "available_gib": 9.909, + "max_temp_c": 48.646, + "max_fan_rpm": 2510.0 + }, + { + "t": 163.83, + "available_gib": 9.901, + "max_temp_c": 48.82, + "max_fan_rpm": 2501.0 + }, + { + "t": 164.84, + "available_gib": 9.906, + "max_temp_c": 48.433, + "max_fan_rpm": 2484.0 + }, + { + "t": 165.87, + "available_gib": 9.902, + "max_temp_c": 47.846, + "max_fan_rpm": 2510.0 + }, + { + "t": 166.89, + "available_gib": 9.931, + "max_temp_c": 48.3, + "max_fan_rpm": 2510.0 + }, + { + "t": 167.91, + "available_gib": 9.933, + "max_temp_c": 48.666, + "max_fan_rpm": 2488.0 + }, + { + "t": 168.92, + "available_gib": 9.869, + "max_temp_c": 48.16, + "max_fan_rpm": 2501.0 + }, + { + "t": 169.93, + "available_gib": 9.887, + "max_temp_c": 47.326, + "max_fan_rpm": 2510.0 + }, + { + "t": 170.94, + "available_gib": 9.879, + "max_temp_c": 47.513, + "max_fan_rpm": 2505.0 + }, + { + "t": 171.96, + "available_gib": 9.91, + "max_temp_c": 48.646, + "max_fan_rpm": 2510.0 + }, + { + "t": 172.97, + "available_gib": 9.909, + "max_temp_c": 48.333, + "max_fan_rpm": 2497.0 + }, + { + "t": 174.0, + "available_gib": 9.921, + "max_temp_c": 48.32, + "max_fan_rpm": 2523.0 + }, + { + "t": 175.0, + "available_gib": 9.911, + "max_temp_c": 47.486, + "max_fan_rpm": 2514.0 + }, + { + "t": 176.02, + "available_gib": 9.903, + "max_temp_c": 47.98, + "max_fan_rpm": 2502.0 + }, + { + "t": 177.03, + "available_gib": 9.913, + "max_temp_c": 48.613, + "max_fan_rpm": 2506.0 + }, + { + "t": 178.03, + "available_gib": 9.902, + "max_temp_c": 48.82, + "max_fan_rpm": 2497.0 + }, + { + "t": 179.04, + "available_gib": 9.898, + "max_temp_c": 47.913, + "max_fan_rpm": 2506.0 + }, + { + "t": 180.06, + "available_gib": 9.883, + "max_temp_c": 47.94, + "max_fan_rpm": 2510.0 + }, + { + "t": 181.07, + "available_gib": 9.911, + "max_temp_c": 48.493, + "max_fan_rpm": 2510.0 + }, + { + "t": 182.11, + "available_gib": 9.904, + "max_temp_c": 48.12, + "max_fan_rpm": 2506.0 + }, + { + "t": 183.12, + "available_gib": 9.906, + "max_temp_c": 48.006, + "max_fan_rpm": 2510.0 + }, + { + "t": 184.14, + "available_gib": 9.916, + "max_temp_c": 48.3, + "max_fan_rpm": 2510.0 + }, + { + "t": 185.16, + "available_gib": 9.908, + "max_temp_c": 47.693, + "max_fan_rpm": 2523.0 + }, + { + "t": 186.2, + "available_gib": 9.917, + "max_temp_c": 48.16, + "max_fan_rpm": 2509.0 + }, + { + "t": 187.21, + "available_gib": 9.916, + "max_temp_c": 48.433, + "max_fan_rpm": 2497.0 + }, + { + "t": 188.23, + "available_gib": 9.926, + "max_temp_c": 48.12, + "max_fan_rpm": 2472.0 + }, + { + "t": 189.25, + "available_gib": 9.918, + "max_temp_c": 47.513, + "max_fan_rpm": 2501.0 + }, + { + "t": 190.28, + "available_gib": 9.924, + "max_temp_c": 48.18, + "max_fan_rpm": 2471.0 + }, + { + "t": 191.29, + "available_gib": 9.921, + "max_temp_c": 47.513, + "max_fan_rpm": 2497.0 + }, + { + "t": 192.31, + "available_gib": 9.929, + "max_temp_c": 47.46, + "max_fan_rpm": 2484.0 + }, + { + "t": 193.33, + "available_gib": 9.918, + "max_temp_c": 47.273, + "max_fan_rpm": 2497.0 + }, + { + "t": 194.34, + "available_gib": 9.93, + "max_temp_c": 48.333, + "max_fan_rpm": 2484.0 + }, + { + "t": 195.35, + "available_gib": 9.91, + "max_temp_c": 46.793, + "max_fan_rpm": 2510.0 + }, + { + "t": 196.36, + "available_gib": 9.892, + "max_temp_c": 48.513, + "max_fan_rpm": 2497.0 + }, + { + "t": 197.37, + "available_gib": 9.915, + "max_temp_c": 48.026, + "max_fan_rpm": 2488.0 + }, + { + "t": 198.39, + "available_gib": 9.937, + "max_temp_c": 47.826, + "max_fan_rpm": 2510.0 + }, + { + "t": 199.4, + "available_gib": 9.942, + "max_temp_c": 47.353, + "max_fan_rpm": 2489.0 + }, + { + "t": 200.41, + "available_gib": 9.943, + "max_temp_c": 48.12, + "max_fan_rpm": 2484.0 + }, + { + "t": 201.44, + "available_gib": 9.937, + "max_temp_c": 47.8, + "max_fan_rpm": 2505.0 + }, + { + "t": 202.45, + "available_gib": 9.945, + "max_temp_c": 47.78, + "max_fan_rpm": 2492.0 + }, + { + "t": 203.46, + "available_gib": 9.948, + "max_temp_c": 47.846, + "max_fan_rpm": 2510.0 + }, + { + "t": 204.5, + "available_gib": 9.915, + "max_temp_c": 47.013, + "max_fan_rpm": 2492.0 + }, + { + "t": 205.51, + "available_gib": 9.9, + "max_temp_c": 47.666, + "max_fan_rpm": 2510.0 + }, + { + "t": 206.52, + "available_gib": 9.899, + "max_temp_c": 47.04, + "max_fan_rpm": 2497.0 + }, + { + "t": 207.54, + "available_gib": 9.899, + "max_temp_c": 48.18, + "max_fan_rpm": 2497.0 + }, + { + "t": 208.54, + "available_gib": 9.844, + "max_temp_c": 48.7, + "max_fan_rpm": 2502.0 + }, + { + "t": 209.55, + "available_gib": 9.883, + "max_temp_c": 48.646, + "max_fan_rpm": 2510.0 + }, + { + "t": 210.57, + "available_gib": 9.896, + "max_temp_c": 48.353, + "max_fan_rpm": 2501.0 + } + ], + "log_tail": "[tensorfold] prompt chunks of up to 32 tokens, cut at replies 256+ tokens apart\nwarning: libtfgrammar.so is required for structured output and required tool calls (HTTP 400 when missing); restore the matching release archive's lib/ directory or run zig build grammar -Dxgrammar=DIR; prepare DIR with git clone --branch v0.2.8 --recurse-submodules https://github.com/mlc-ai/xgrammar\n[tensorfold] serving qwen35-2b at http://127.0.0.1:46981/v1 (sampling: greedy; drafts: on; context: 1024; loaded in 0.5s)\n[tensorfold] 127.0.0.1 \"GET /health HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"GET /v1/models HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-c613a8999f1c997388a39bbdd3ec2481 prompt=41 cached=0 thinking=False effort=none tokens=256 sha=f87626954a51 finish=length rounds=255 accepted=0/0 ttft=3.209 decode=100.425 elapsed=103.634 queued=0.000 tok/s=2.5\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-8aacc3a4b47c2a47253d2e054649af04 prompt=41 cached=0 thinking=False effort=none tokens=256 sha=f87626954a51 finish=length rounds=255 accepted=0/0 ttft=3.121 decode=103.797 elapsed=106.918 queued=0.000 tok/s=2.5\n[tensorfold] shutting down (SIGTERM): draining: new requests get 503; 0 request(s) in progress may finish within 20.0 s\n[tensorfold] shutting down: drained\n[tensorfold] shutting down: stopped\n", + "ready_s": 104.6403054830007, + "ttft_s": 3.1231333750038175, + "total_s": 106.91948010700435, + "completion_tokens": 256, + "token_count_source": "usage", + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. This phenomenon is called dispersion. Violet light, having the shortest wavelength, bends the most, while red light, with the longest wavelength, bends the least.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is crucial because it sets", + "served_model": "qwen35-2b", + "text_sha256": "83887b098d88ea16a47c6d0aad022a58cf6a9ee6565c6b33e5633a90ff4a80d5", + "decode_tps": 2.4567338642313046, + "min_available_gib": 9.598, + "peak_temp_c": 51.177, + "round": 1, + "admission_available_gib": 11.206 + }, + { + "arm": "mlx-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.199, + "max_temp_c": 47.646, + "max_fan_rpm": 2497.0 + }, + { + "t": 1.02, + "available_gib": 10.393, + "max_temp_c": 48.373, + "max_fan_rpm": 2502.0 + }, + { + "t": 2.02, + "available_gib": 9.752, + "max_temp_c": 48.16, + "max_fan_rpm": 2506.0 + }, + { + "t": 3.03, + "available_gib": 9.695, + "max_temp_c": 47.78, + "max_fan_rpm": 2502.0 + }, + { + "t": 4.03, + "available_gib": 9.332, + "max_temp_c": 48.006, + "max_fan_rpm": 2510.0 + }, + { + "t": 5.04, + "available_gib": 9.317, + "max_temp_c": 48.833, + "max_fan_rpm": 2502.0 + }, + { + "t": 6.05, + "available_gib": 9.315, + "max_temp_c": 48.2, + "max_fan_rpm": 2510.0 + }, + { + "t": 7.05, + "available_gib": 9.253, + "max_temp_c": 47.62, + "max_fan_rpm": 2505.0 + }, + { + "t": 8.06, + "available_gib": 9.394, + "max_temp_c": 47.273, + "max_fan_rpm": 2505.0 + }, + { + "t": 9.07, + "available_gib": 9.181, + "max_temp_c": 47.573, + "max_fan_rpm": 2510.0 + }, + { + "t": 10.08, + "available_gib": 9.165, + "max_temp_c": 48.513, + "max_fan_rpm": 2514.0 + }, + { + "t": 11.1, + "available_gib": 9.168, + "max_temp_c": 48.68, + "max_fan_rpm": 2514.0 + }, + { + "t": 12.11, + "available_gib": 9.156, + "max_temp_c": 48.8, + "max_fan_rpm": 2493.0 + }, + { + "t": 13.13, + "available_gib": 9.171, + "max_temp_c": 48.12, + "max_fan_rpm": 2501.0 + }, + { + "t": 14.14, + "available_gib": 9.324, + "max_temp_c": 49.466, + "max_fan_rpm": 2475.0 + } + ], + "log_tail": "", + "ready_s": 8.4292342560002, + "ttft_s": 0.5688798640039749, + "total_s": 5.743813449000299, + "completion_tokens": 256, + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 49.275994717945956, + "min_available_gib": 9.156, + "peak_temp_c": 49.466, + "round": 2, + "admission_available_gib": 11.199 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.06, + "max_temp_c": 49.613, + "max_fan_rpm": 2501.0 + }, + { + "t": 1.02, + "available_gib": 10.999, + "max_temp_c": 48.433, + "max_fan_rpm": 2514.0 + }, + { + "t": 2.02, + "available_gib": 10.603, + "max_temp_c": 50.459, + "max_fan_rpm": 2484.0 + }, + { + "t": 3.03, + "available_gib": 9.623, + "max_temp_c": 49.726, + "max_fan_rpm": 2501.0 + }, + { + "t": 4.04, + "available_gib": 9.591, + "max_temp_c": 49.746, + "max_fan_rpm": 2488.0 + }, + { + "t": 5.05, + "available_gib": 9.493, + "max_temp_c": 48.973, + "max_fan_rpm": 2505.0 + }, + { + "t": 6.06, + "available_gib": 9.479, + "max_temp_c": 51.233, + "max_fan_rpm": 2514.0 + }, + { + "t": 7.09, + "available_gib": 9.058, + "max_temp_c": 48.593, + "max_fan_rpm": 2510.0 + }, + { + "t": 8.1, + "available_gib": 8.879, + "max_temp_c": 49.566, + "max_fan_rpm": 2488.0 + }, + { + "t": 9.11, + "available_gib": 8.842, + "max_temp_c": 49.226, + "max_fan_rpm": 2497.0 + }, + { + "t": 10.12, + "available_gib": 8.966, + "max_temp_c": 49.413, + "max_fan_rpm": 2484.0 + }, + { + "t": 11.13, + "available_gib": 8.97, + "max_temp_c": 48.926, + "max_fan_rpm": 2505.0 + }, + { + "t": 12.14, + "available_gib": 9.035, + "max_temp_c": 50.266, + "max_fan_rpm": 2501.0 + }, + { + "t": 13.15, + "available_gib": 9.059, + "max_temp_c": 49.4, + "max_fan_rpm": 2501.0 + }, + { + "t": 14.16, + "available_gib": 8.98, + "max_temp_c": 48.913, + "max_fan_rpm": 2496.0 + }, + { + "t": 15.19, + "available_gib": 8.969, + "max_temp_c": 49.746, + "max_fan_rpm": 2513.0 + }, + { + "t": 16.22, + "available_gib": 9.002, + "max_temp_c": 49.413, + "max_fan_rpm": 2484.0 + }, + { + "t": 17.23, + "available_gib": 9.095, + "max_temp_c": 49.88, + "max_fan_rpm": 2509.0 + }, + { + "t": 18.24, + "available_gib": 9.079, + "max_temp_c": 49.413, + "max_fan_rpm": 2497.0 + }, + { + "t": 19.26, + "available_gib": 9.107, + "max_temp_c": 48.88, + "max_fan_rpm": 2488.0 + } + ], + "log_tail": " first chunk arrived, elapsed=0.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] post-first-chunk keepalive (R15 #291), elapsed=0.0s\nINFO:rapid_mlx.scheduler:[schedule] request=chatcmpl-ebc uid=2 prompt_tokens=41 tokens_to_prefill=15, 26 cached max_tokens=256 running=1 waiting=0\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-ebc first token after 0.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] poll #10 disconnected=False elapsed=5.0s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-ebc tokens=297 (41 prompt + 256 output) stored=True time=0.000s cache_entries=4 cache_mem=121MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-ebc finished normally, 256 tokens in 6.2s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-ebc cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 256 tokens in 6.20s (41.3 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000ffff33353160 [rapid-mlx-infer] (most recent call first):\n File \"/usr/lib/python3.14/threading.py\", line 369 in wait\n File \"/usr/lib/python3.14/queue.py\", line 199 in get\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/telemetry/inference.py\", line 44 in _worker_main\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nThread 0x0000ffff8defb160 [mlx-step_0] (most recent call first):\n File \"/usr/lib/python3.14/concurrent/futures/thread.py\", line 116 in _worker\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nCurrent thread 0x0000ffffabe687a0 [python] (most recent call first):\n Garbage-collecting\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_signal_observability.py\", line 694 in _on_signal\n File \"/usr/lib/python3.14/_weakrefset.py\", line 15 in _remove\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/routes/chat.py\", line 8898 in stream_chat_completion\n File \"/usr/lib/python3.14/asyncio/events.py\", line 94 in _run\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 2057 in _run_once\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 677 in run_forever\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 706 in run_until_complete\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 127 in run\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 204 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-python/uvicorn/server.py\", line 86 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 258 in _run_server\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 285 in run_uvicorn\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4758 in main\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 3750 in wrapped\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4776 in \n File \"\", line 88 in _run_code\n File \"\", line 198 in _run_module_as_main\nINFO: Shutting down\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 259 chunks (1 keepalives), elapsed=6.4s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 259 chunks total, elapsed=6.4s\nINFO: Waiting for application shutdown.\nINFO:__main__:[lifespan] Prefix-cache auto-save disabled with auto-load by RAPID_MLX_PREFIX_CACHE_AUTOLOAD\nINFO:rapid_mlx.engine_core:Engine stopped\nINFO:rapid_mlx.scheduler:Deep reset completed - all caches cleared\nINFO:rapid_mlx.engine.batched:BatchedEngine stopped\nINFO:__main__:Engine stopped\nINFO: Application shutdown complete.\nINFO: Finished server process [1593934]\n", + "ready_s": 13.911340822000057, + "ttft_s": 0.4034204729978228, + "total_s": 6.330224278004607, + "completion_tokens": 256, + "token_count_source": "usage", + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 43.024876204706445, + "min_available_gib": 8.842, + "peak_temp_c": 51.233, + "round": 2, + "admission_available_gib": 11.06 + }, + { + "arm": "tensorfold", + "stopped": null, + "samples": [ + { + "t": 0.03, + "available_gib": 11.051, + "max_temp_c": 51.379, + "max_fan_rpm": 2509.0 + }, + { + "t": 1.05, + "available_gib": 9.797, + "max_temp_c": 49.88, + "max_fan_rpm": 2501.0 + }, + { + "t": 2.07, + "available_gib": 9.812, + "max_temp_c": 49.88, + "max_fan_rpm": 2513.0 + }, + { + "t": 3.09, + "available_gib": 9.805, + "max_temp_c": 50.032, + "max_fan_rpm": 2509.0 + }, + { + "t": 4.12, + "available_gib": 9.811, + "max_temp_c": 49.373, + "max_fan_rpm": 2509.0 + }, + { + "t": 5.14, + "available_gib": 9.803, + "max_temp_c": 50.427, + "max_fan_rpm": 2509.0 + }, + { + "t": 6.15, + "available_gib": 9.784, + "max_temp_c": 49.7, + "max_fan_rpm": 2509.0 + }, + { + "t": 7.16, + "available_gib": 9.776, + "max_temp_c": 50.233, + "max_fan_rpm": 2497.0 + }, + { + "t": 8.17, + "available_gib": 9.783, + "max_temp_c": 50.604, + "max_fan_rpm": 2488.0 + }, + { + "t": 9.18, + "available_gib": 9.805, + "max_temp_c": 49.053, + "max_fan_rpm": 2509.0 + }, + { + "t": 10.21, + "available_gib": 9.79, + "max_temp_c": 49.386, + "max_fan_rpm": 2484.0 + }, + { + "t": 11.23, + "available_gib": 9.803, + "max_temp_c": 49.546, + "max_fan_rpm": 2505.0 + }, + { + "t": 12.26, + "available_gib": 9.781, + "max_temp_c": 50.604, + "max_fan_rpm": 2479.0 + }, + { + "t": 13.27, + "available_gib": 9.791, + "max_temp_c": 50.241, + "max_fan_rpm": 2514.0 + }, + { + "t": 14.3, + "available_gib": 9.779, + "max_temp_c": 49.226, + "max_fan_rpm": 2509.0 + }, + { + "t": 15.31, + "available_gib": 9.785, + "max_temp_c": 49.546, + "max_fan_rpm": 2509.0 + }, + { + "t": 16.33, + "available_gib": 9.812, + "max_temp_c": 49.426, + "max_fan_rpm": 2509.0 + }, + { + "t": 17.37, + "available_gib": 9.787, + "max_temp_c": 50.443, + "max_fan_rpm": 2501.0 + }, + { + "t": 18.38, + "available_gib": 9.805, + "max_temp_c": 50.427, + "max_fan_rpm": 2509.0 + }, + { + "t": 19.42, + "available_gib": 9.822, + "max_temp_c": 49.566, + "max_fan_rpm": 2496.0 + }, + { + "t": 20.43, + "available_gib": 9.828, + "max_temp_c": 49.36, + "max_fan_rpm": 2505.0 + }, + { + "t": 21.44, + "available_gib": 9.845, + "max_temp_c": 49.533, + "max_fan_rpm": 2509.0 + }, + { + "t": 22.46, + "available_gib": 9.845, + "max_temp_c": 50.217, + "max_fan_rpm": 2505.0 + }, + { + "t": 23.47, + "available_gib": 9.857, + "max_temp_c": 49.546, + "max_fan_rpm": 2496.0 + }, + { + "t": 24.48, + "available_gib": 9.865, + "max_temp_c": 51.379, + "max_fan_rpm": 2518.0 + }, + { + "t": 25.52, + "available_gib": 9.885, + "max_temp_c": 49.36, + "max_fan_rpm": 2522.0 + }, + { + "t": 26.53, + "available_gib": 9.869, + "max_temp_c": 50.241, + "max_fan_rpm": 2492.0 + }, + { + "t": 27.55, + "available_gib": 9.869, + "max_temp_c": 50.032, + "max_fan_rpm": 2522.0 + }, + { + "t": 28.56, + "available_gib": 9.85, + "max_temp_c": 48.88, + "max_fan_rpm": 2496.0 + }, + { + "t": 29.56, + "available_gib": 9.858, + "max_temp_c": 50.83, + "max_fan_rpm": 2501.0 + }, + { + "t": 30.58, + "available_gib": 9.861, + "max_temp_c": 50.008, + "max_fan_rpm": 2509.0 + }, + { + "t": 31.59, + "available_gib": 9.873, + "max_temp_c": 49.24, + "max_fan_rpm": 2522.0 + }, + { + "t": 32.61, + "available_gib": 9.869, + "max_temp_c": 50.056, + "max_fan_rpm": 2488.0 + }, + { + "t": 33.62, + "available_gib": 9.872, + "max_temp_c": 49.413, + "max_fan_rpm": 2500.0 + }, + { + "t": 34.64, + "available_gib": 9.878, + "max_temp_c": 50.08, + "max_fan_rpm": 2500.0 + }, + { + "t": 35.66, + "available_gib": 9.886, + "max_temp_c": 49.893, + "max_fan_rpm": 2471.0 + }, + { + "t": 36.66, + "available_gib": 9.887, + "max_temp_c": 49.86, + "max_fan_rpm": 2522.0 + }, + { + "t": 37.69, + "available_gib": 9.889, + "max_temp_c": 48.88, + "max_fan_rpm": 2493.0 + }, + { + "t": 38.7, + "available_gib": 9.884, + "max_temp_c": 49.253, + "max_fan_rpm": 2513.0 + }, + { + "t": 39.72, + "available_gib": 9.846, + "max_temp_c": 49.9, + "max_fan_rpm": 2492.0 + }, + { + "t": 40.73, + "available_gib": 9.851, + "max_temp_c": 49.566, + "max_fan_rpm": 2513.0 + }, + { + "t": 41.74, + "available_gib": 9.861, + "max_temp_c": 50.048, + "max_fan_rpm": 2484.0 + }, + { + "t": 42.76, + "available_gib": 9.861, + "max_temp_c": 49.24, + "max_fan_rpm": 2509.0 + }, + { + "t": 43.8, + "available_gib": 9.83, + "max_temp_c": 49.893, + "max_fan_rpm": 2496.0 + }, + { + "t": 44.81, + "available_gib": 9.847, + "max_temp_c": 50.459, + "max_fan_rpm": 2487.0 + }, + { + "t": 45.82, + "available_gib": 9.853, + "max_temp_c": 49.7, + "max_fan_rpm": 2501.0 + }, + { + "t": 46.84, + "available_gib": 9.855, + "max_temp_c": 50.258, + "max_fan_rpm": 2513.0 + }, + { + "t": 47.85, + "available_gib": 9.844, + "max_temp_c": 50.241, + "max_fan_rpm": 2518.0 + }, + { + "t": 48.86, + "available_gib": 9.826, + "max_temp_c": 49.4, + "max_fan_rpm": 2501.0 + }, + { + "t": 49.88, + "available_gib": 9.855, + "max_temp_c": 48.766, + "max_fan_rpm": 2509.0 + }, + { + "t": 50.89, + "available_gib": 9.869, + "max_temp_c": 48.88, + "max_fan_rpm": 2496.0 + }, + { + "t": 51.9, + "available_gib": 9.878, + "max_temp_c": 49.593, + "max_fan_rpm": 2509.0 + }, + { + "t": 52.91, + "available_gib": 9.832, + "max_temp_c": 49.44, + "max_fan_rpm": 2471.0 + }, + { + "t": 53.93, + "available_gib": 9.83, + "max_temp_c": 48.613, + "max_fan_rpm": 2514.0 + }, + { + "t": 54.94, + "available_gib": 9.829, + "max_temp_c": 48.926, + "max_fan_rpm": 2488.0 + }, + { + "t": 55.95, + "available_gib": 9.838, + "max_temp_c": 49.58, + "max_fan_rpm": 2510.0 + }, + { + "t": 56.96, + "available_gib": 9.839, + "max_temp_c": 48.94, + "max_fan_rpm": 2496.0 + }, + { + "t": 57.97, + "available_gib": 9.86, + "max_temp_c": 49.086, + "max_fan_rpm": 2496.0 + }, + { + "t": 58.99, + "available_gib": 9.847, + "max_temp_c": 48.913, + "max_fan_rpm": 2496.0 + }, + { + "t": 60.0, + "available_gib": 9.848, + "max_temp_c": 48.593, + "max_fan_rpm": 2509.0 + }, + { + "t": 61.02, + "available_gib": 9.853, + "max_temp_c": 49.566, + "max_fan_rpm": 2514.0 + }, + { + "t": 62.03, + "available_gib": 9.86, + "max_temp_c": 49.593, + "max_fan_rpm": 2484.0 + }, + { + "t": 63.04, + "available_gib": 9.856, + "max_temp_c": 49.613, + "max_fan_rpm": 2514.0 + }, + { + "t": 64.05, + "available_gib": 9.862, + "max_temp_c": 48.3, + "max_fan_rpm": 2488.0 + }, + { + "t": 65.07, + "available_gib": 9.872, + "max_temp_c": 49.226, + "max_fan_rpm": 2505.0 + }, + { + "t": 66.09, + "available_gib": 9.871, + "max_temp_c": 49.226, + "max_fan_rpm": 2517.0 + }, + { + "t": 67.1, + "available_gib": 9.853, + "max_temp_c": 49.1, + "max_fan_rpm": 2501.0 + }, + { + "t": 68.12, + "available_gib": 9.828, + "max_temp_c": 48.3, + "max_fan_rpm": 2509.0 + }, + { + "t": 69.14, + "available_gib": 9.715, + "max_temp_c": 48.926, + "max_fan_rpm": 2501.0 + }, + { + "t": 70.15, + "available_gib": 9.67, + "max_temp_c": 49.1, + "max_fan_rpm": 2497.0 + }, + { + "t": 71.17, + "available_gib": 9.734, + "max_temp_c": 48.613, + "max_fan_rpm": 2522.0 + }, + { + "t": 72.18, + "available_gib": 9.691, + "max_temp_c": 48.453, + "max_fan_rpm": 2515.0 + }, + { + "t": 73.21, + "available_gib": 9.753, + "max_temp_c": 48.14, + "max_fan_rpm": 2497.0 + }, + { + "t": 74.23, + "available_gib": 9.776, + "max_temp_c": 48.473, + "max_fan_rpm": 2488.0 + }, + { + "t": 75.25, + "available_gib": 9.789, + "max_temp_c": 48.593, + "max_fan_rpm": 2523.0 + }, + { + "t": 76.27, + "available_gib": 9.827, + "max_temp_c": 48.766, + "max_fan_rpm": 2497.0 + }, + { + "t": 77.28, + "available_gib": 9.824, + "max_temp_c": 48.733, + "max_fan_rpm": 2502.0 + }, + { + "t": 78.29, + "available_gib": 9.805, + "max_temp_c": 48.493, + "max_fan_rpm": 2509.0 + }, + { + "t": 79.31, + "available_gib": 9.788, + "max_temp_c": 49.086, + "max_fan_rpm": 2506.0 + }, + { + "t": 80.32, + "available_gib": 9.792, + "max_temp_c": 49.126, + "max_fan_rpm": 2497.0 + }, + { + "t": 81.34, + "available_gib": 9.718, + "max_temp_c": 48.453, + "max_fan_rpm": 2518.0 + }, + { + "t": 82.34, + "available_gib": 9.663, + "max_temp_c": 48.233, + "max_fan_rpm": 2501.0 + }, + { + "t": 83.36, + "available_gib": 9.774, + "max_temp_c": 48.433, + "max_fan_rpm": 2509.0 + }, + { + "t": 84.38, + "available_gib": 9.793, + "max_temp_c": 48.453, + "max_fan_rpm": 2506.0 + }, + { + "t": 85.4, + "available_gib": 9.796, + "max_temp_c": 48.96, + "max_fan_rpm": 2509.0 + }, + { + "t": 86.41, + "available_gib": 9.837, + "max_temp_c": 49.286, + "max_fan_rpm": 2493.0 + }, + { + "t": 87.46, + "available_gib": 9.838, + "max_temp_c": 48.613, + "max_fan_rpm": 2523.0 + }, + { + "t": 88.48, + "available_gib": 9.857, + "max_temp_c": 49.3, + "max_fan_rpm": 2510.0 + }, + { + "t": 89.5, + "available_gib": 9.805, + "max_temp_c": 48.646, + "max_fan_rpm": 2492.0 + }, + { + "t": 90.51, + "available_gib": 9.791, + "max_temp_c": 48.073, + "max_fan_rpm": 2488.0 + }, + { + "t": 91.53, + "available_gib": 9.789, + "max_temp_c": 48.453, + "max_fan_rpm": 2488.0 + }, + { + "t": 92.58, + "available_gib": 9.788, + "max_temp_c": 49.146, + "max_fan_rpm": 2523.0 + }, + { + "t": 93.59, + "available_gib": 9.772, + "max_temp_c": 47.94, + "max_fan_rpm": 2488.0 + }, + { + "t": 94.59, + "available_gib": 9.815, + "max_temp_c": 48.96, + "max_fan_rpm": 2501.0 + }, + { + "t": 95.6, + "available_gib": 9.824, + "max_temp_c": 48.433, + "max_fan_rpm": 2488.0 + }, + { + "t": 96.62, + "available_gib": 9.827, + "max_temp_c": 48.96, + "max_fan_rpm": 2501.0 + }, + { + "t": 97.64, + "available_gib": 9.832, + "max_temp_c": 48.513, + "max_fan_rpm": 2501.0 + }, + { + "t": 98.66, + "available_gib": 9.848, + "max_temp_c": 48.786, + "max_fan_rpm": 2471.0 + }, + { + "t": 99.69, + "available_gib": 9.856, + "max_temp_c": 48.12, + "max_fan_rpm": 2496.0 + }, + { + "t": 100.71, + "available_gib": 9.864, + "max_temp_c": 49.253, + "max_fan_rpm": 2497.0 + }, + { + "t": 101.72, + "available_gib": 9.813, + "max_temp_c": 48.433, + "max_fan_rpm": 2501.0 + }, + { + "t": 102.73, + "available_gib": 9.819, + "max_temp_c": 48.413, + "max_fan_rpm": 2510.0 + }, + { + "t": 103.75, + "available_gib": 9.817, + "max_temp_c": 47.94, + "max_fan_rpm": 2501.0 + }, + { + "t": 104.76, + "available_gib": 9.821, + "max_temp_c": 48.973, + "max_fan_rpm": 2514.0 + }, + { + "t": 105.78, + "available_gib": 9.82, + "max_temp_c": 48.453, + "max_fan_rpm": 2509.0 + }, + { + "t": 106.79, + "available_gib": 9.843, + "max_temp_c": 48.833, + "max_fan_rpm": 2497.0 + }, + { + "t": 107.8, + "available_gib": 9.84, + "max_temp_c": 47.96, + "max_fan_rpm": 2501.0 + }, + { + "t": 108.81, + "available_gib": 9.811, + "max_temp_c": 49.126, + "max_fan_rpm": 2514.0 + }, + { + "t": 109.83, + "available_gib": 9.831, + "max_temp_c": 48.646, + "max_fan_rpm": 2514.0 + }, + { + "t": 110.85, + "available_gib": 9.844, + "max_temp_c": 48.633, + "max_fan_rpm": 2496.0 + }, + { + "t": 111.86, + "available_gib": 9.833, + "max_temp_c": 48.786, + "max_fan_rpm": 2505.0 + }, + { + "t": 112.88, + "available_gib": 9.852, + "max_temp_c": 48.8, + "max_fan_rpm": 2472.0 + }, + { + "t": 113.89, + "available_gib": 9.864, + "max_temp_c": 48.633, + "max_fan_rpm": 2509.0 + }, + { + "t": 114.91, + "available_gib": 9.873, + "max_temp_c": 48.96, + "max_fan_rpm": 2509.0 + }, + { + "t": 115.92, + "available_gib": 9.899, + "max_temp_c": 48.786, + "max_fan_rpm": 2488.0 + }, + { + "t": 116.95, + "available_gib": 9.882, + "max_temp_c": 48.493, + "max_fan_rpm": 2510.0 + }, + { + "t": 117.97, + "available_gib": 9.892, + "max_temp_c": 48.18, + "max_fan_rpm": 2497.0 + }, + { + "t": 118.98, + "available_gib": 9.909, + "max_temp_c": 47.94, + "max_fan_rpm": 2497.0 + }, + { + "t": 119.99, + "available_gib": 9.898, + "max_temp_c": 47.96, + "max_fan_rpm": 2509.0 + }, + { + "t": 121.02, + "available_gib": 9.886, + "max_temp_c": 47.96, + "max_fan_rpm": 2505.0 + }, + { + "t": 122.03, + "available_gib": 9.885, + "max_temp_c": 47.826, + "max_fan_rpm": 2505.0 + }, + { + "t": 123.05, + "available_gib": 9.883, + "max_temp_c": 48.8, + "max_fan_rpm": 2514.0 + }, + { + "t": 124.06, + "available_gib": 9.85, + "max_temp_c": 48.473, + "max_fan_rpm": 2514.0 + }, + { + "t": 125.08, + "available_gib": 9.854, + "max_temp_c": 48.18, + "max_fan_rpm": 2522.0 + }, + { + "t": 126.1, + "available_gib": 9.857, + "max_temp_c": 48.28, + "max_fan_rpm": 2488.0 + }, + { + "t": 127.12, + "available_gib": 9.865, + "max_temp_c": 48.3, + "max_fan_rpm": 2497.0 + }, + { + "t": 128.15, + "available_gib": 9.872, + "max_temp_c": 48.473, + "max_fan_rpm": 2501.0 + }, + { + "t": 129.16, + "available_gib": 9.869, + "max_temp_c": 48.973, + "max_fan_rpm": 2488.0 + }, + { + "t": 130.17, + "available_gib": 9.887, + "max_temp_c": 48.786, + "max_fan_rpm": 2510.0 + }, + { + "t": 131.18, + "available_gib": 9.896, + "max_temp_c": 48.613, + "max_fan_rpm": 2493.0 + }, + { + "t": 132.19, + "available_gib": 9.896, + "max_temp_c": 49.16, + "max_fan_rpm": 2510.0 + }, + { + "t": 133.21, + "available_gib": 9.912, + "max_temp_c": 48.14, + "max_fan_rpm": 2514.0 + }, + { + "t": 134.22, + "available_gib": 9.929, + "max_temp_c": 47.38, + "max_fan_rpm": 2510.0 + }, + { + "t": 135.24, + "available_gib": 9.919, + "max_temp_c": 48.473, + "max_fan_rpm": 2476.0 + }, + { + "t": 136.26, + "available_gib": 9.913, + "max_temp_c": 48.513, + "max_fan_rpm": 2510.0 + }, + { + "t": 137.27, + "available_gib": 9.919, + "max_temp_c": 48.8, + "max_fan_rpm": 2506.0 + }, + { + "t": 138.29, + "available_gib": 9.885, + "max_temp_c": 48.14, + "max_fan_rpm": 2484.0 + }, + { + "t": 139.31, + "available_gib": 9.894, + "max_temp_c": 49.266, + "max_fan_rpm": 2505.0 + }, + { + "t": 140.33, + "available_gib": 9.893, + "max_temp_c": 47.826, + "max_fan_rpm": 2497.0 + }, + { + "t": 141.35, + "available_gib": 9.907, + "max_temp_c": 48.973, + "max_fan_rpm": 2502.0 + }, + { + "t": 142.37, + "available_gib": 9.91, + "max_temp_c": 48.333, + "max_fan_rpm": 2489.0 + }, + { + "t": 143.39, + "available_gib": 9.909, + "max_temp_c": 49.126, + "max_fan_rpm": 2488.0 + }, + { + "t": 144.41, + "available_gib": 9.923, + "max_temp_c": 48.94, + "max_fan_rpm": 2510.0 + }, + { + "t": 145.43, + "available_gib": 9.949, + "max_temp_c": 47.646, + "max_fan_rpm": 2514.0 + }, + { + "t": 146.45, + "available_gib": 9.938, + "max_temp_c": 48.7, + "max_fan_rpm": 2510.0 + }, + { + "t": 147.47, + "available_gib": 9.945, + "max_temp_c": 48.753, + "max_fan_rpm": 2497.0 + }, + { + "t": 148.49, + "available_gib": 9.951, + "max_temp_c": 48.2, + "max_fan_rpm": 2488.0 + }, + { + "t": 149.51, + "available_gib": 9.951, + "max_temp_c": 47.326, + "max_fan_rpm": 2488.0 + }, + { + "t": 150.52, + "available_gib": 9.965, + "max_temp_c": 48.333, + "max_fan_rpm": 2523.0 + }, + { + "t": 151.54, + "available_gib": 9.968, + "max_temp_c": 48.026, + "max_fan_rpm": 2518.0 + }, + { + "t": 152.56, + "available_gib": 9.97, + "max_temp_c": 48.026, + "max_fan_rpm": 2484.0 + }, + { + "t": 153.58, + "available_gib": 9.972, + "max_temp_c": 47.533, + "max_fan_rpm": 2510.0 + }, + { + "t": 154.6, + "available_gib": 9.968, + "max_temp_c": 47.8, + "max_fan_rpm": 2492.0 + }, + { + "t": 155.62, + "available_gib": 9.969, + "max_temp_c": 47.693, + "max_fan_rpm": 2510.0 + }, + { + "t": 156.65, + "available_gib": 9.973, + "max_temp_c": 47.406, + "max_fan_rpm": 2501.0 + }, + { + "t": 157.67, + "available_gib": 9.976, + "max_temp_c": 47.666, + "max_fan_rpm": 2510.0 + }, + { + "t": 158.69, + "available_gib": 9.978, + "max_temp_c": 47.96, + "max_fan_rpm": 2497.0 + }, + { + "t": 159.71, + "available_gib": 9.978, + "max_temp_c": 48.473, + "max_fan_rpm": 2488.0 + }, + { + "t": 160.72, + "available_gib": 9.98, + "max_temp_c": 47.74, + "max_fan_rpm": 2505.0 + }, + { + "t": 161.74, + "available_gib": 9.986, + "max_temp_c": 47.426, + "max_fan_rpm": 2505.0 + }, + { + "t": 162.76, + "available_gib": 9.988, + "max_temp_c": 47.98, + "max_fan_rpm": 2501.0 + }, + { + "t": 163.77, + "available_gib": 9.982, + "max_temp_c": 47.96, + "max_fan_rpm": 2497.0 + }, + { + "t": 164.79, + "available_gib": 9.976, + "max_temp_c": 47.513, + "max_fan_rpm": 2505.0 + }, + { + "t": 165.8, + "available_gib": 9.98, + "max_temp_c": 47.46, + "max_fan_rpm": 2485.0 + }, + { + "t": 166.81, + "available_gib": 9.981, + "max_temp_c": 48.68, + "max_fan_rpm": 2510.0 + }, + { + "t": 167.83, + "available_gib": 9.977, + "max_temp_c": 48.526, + "max_fan_rpm": 2488.0 + }, + { + "t": 168.85, + "available_gib": 9.96, + "max_temp_c": 47.646, + "max_fan_rpm": 2510.0 + }, + { + "t": 169.86, + "available_gib": 9.962, + "max_temp_c": 47.513, + "max_fan_rpm": 2471.0 + }, + { + "t": 170.87, + "available_gib": 9.965, + "max_temp_c": 47.713, + "max_fan_rpm": 2523.0 + }, + { + "t": 171.9, + "available_gib": 9.966, + "max_temp_c": 47.533, + "max_fan_rpm": 2489.0 + }, + { + "t": 172.92, + "available_gib": 9.963, + "max_temp_c": 47.04, + "max_fan_rpm": 2528.0 + }, + { + "t": 173.93, + "available_gib": 9.964, + "max_temp_c": 47.846, + "max_fan_rpm": 2493.0 + }, + { + "t": 174.94, + "available_gib": 9.97, + "max_temp_c": 48.353, + "max_fan_rpm": 2510.0 + }, + { + "t": 175.96, + "available_gib": 9.981, + "max_temp_c": 47.533, + "max_fan_rpm": 2489.0 + }, + { + "t": 176.98, + "available_gib": 9.983, + "max_temp_c": 47.38, + "max_fan_rpm": 2510.0 + }, + { + "t": 177.99, + "available_gib": 9.985, + "max_temp_c": 48.24, + "max_fan_rpm": 2505.0 + }, + { + "t": 179.01, + "available_gib": 9.969, + "max_temp_c": 47.893, + "max_fan_rpm": 2505.0 + }, + { + "t": 180.05, + "available_gib": 9.969, + "max_temp_c": 47.013, + "max_fan_rpm": 2497.0 + }, + { + "t": 181.07, + "available_gib": 9.968, + "max_temp_c": 46.853, + "max_fan_rpm": 2505.0 + }, + { + "t": 182.09, + "available_gib": 9.977, + "max_temp_c": 47.513, + "max_fan_rpm": 2489.0 + }, + { + "t": 183.11, + "available_gib": 9.983, + "max_temp_c": 47.626, + "max_fan_rpm": 2514.0 + }, + { + "t": 184.13, + "available_gib": 9.999, + "max_temp_c": 46.633, + "max_fan_rpm": 2497.0 + }, + { + "t": 185.15, + "available_gib": 9.999, + "max_temp_c": 47.713, + "max_fan_rpm": 2510.0 + }, + { + "t": 186.16, + "available_gib": 10.001, + "max_temp_c": 47.666, + "max_fan_rpm": 2484.0 + }, + { + "t": 187.17, + "available_gib": 10.003, + "max_temp_c": 47.713, + "max_fan_rpm": 2510.0 + }, + { + "t": 188.19, + "available_gib": 9.998, + "max_temp_c": 47.533, + "max_fan_rpm": 2510.0 + }, + { + "t": 189.2, + "available_gib": 9.998, + "max_temp_c": 47.693, + "max_fan_rpm": 2497.0 + }, + { + "t": 190.23, + "available_gib": 10.001, + "max_temp_c": 47.14, + "max_fan_rpm": 2506.0 + }, + { + "t": 191.25, + "available_gib": 10.004, + "max_temp_c": 47.74, + "max_fan_rpm": 2488.0 + }, + { + "t": 192.27, + "available_gib": 10.002, + "max_temp_c": 47.666, + "max_fan_rpm": 2501.0 + }, + { + "t": 193.28, + "available_gib": 10.001, + "max_temp_c": 47.353, + "max_fan_rpm": 2510.0 + }, + { + "t": 194.31, + "available_gib": 10.002, + "max_temp_c": 47.533, + "max_fan_rpm": 2485.0 + }, + { + "t": 195.32, + "available_gib": 10.007, + "max_temp_c": 47.666, + "max_fan_rpm": 2497.0 + }, + { + "t": 196.34, + "available_gib": 10.007, + "max_temp_c": 48.026, + "max_fan_rpm": 2484.0 + }, + { + "t": 197.36, + "available_gib": 10.005, + "max_temp_c": 48.026, + "max_fan_rpm": 2514.0 + }, + { + "t": 198.37, + "available_gib": 10.012, + "max_temp_c": 47.193, + "max_fan_rpm": 2510.0 + }, + { + "t": 199.39, + "available_gib": 10.012, + "max_temp_c": 49.413, + "max_fan_rpm": 2484.0 + }, + { + "t": 200.41, + "available_gib": 10.012, + "max_temp_c": 47.193, + "max_fan_rpm": 2510.0 + }, + { + "t": 201.43, + "available_gib": 10.012, + "max_temp_c": 47.513, + "max_fan_rpm": 2493.0 + }, + { + "t": 202.44, + "available_gib": 10.011, + "max_temp_c": 46.906, + "max_fan_rpm": 2506.0 + }, + { + "t": 203.46, + "available_gib": 10.002, + "max_temp_c": 47.066, + "max_fan_rpm": 2484.0 + }, + { + "t": 204.48, + "available_gib": 9.999, + "max_temp_c": 47.78, + "max_fan_rpm": 2501.0 + }, + { + "t": 205.5, + "available_gib": 10.005, + "max_temp_c": 47.426, + "max_fan_rpm": 2506.0 + }, + { + "t": 206.52, + "available_gib": 10.005, + "max_temp_c": 46.82, + "max_fan_rpm": 2515.0 + } + ], + "log_tail": "[tensorfold] prompt chunks of up to 32 tokens, cut at replies 256+ tokens apart\nwarning: libtfgrammar.so is required for structured output and required tool calls (HTTP 400 when missing); restore the matching release archive's lib/ directory or run zig build grammar -Dxgrammar=DIR; prepare DIR with git clone --branch v0.2.8 --recurse-submodules https://github.com/mlc-ai/xgrammar\n[tensorfold] serving qwen35-2b at http://127.0.0.1:59049/v1 (sampling: greedy; drafts: on; context: 1024; loaded in 0.6s)\n[tensorfold] 127.0.0.1 \"GET /health HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"GET /v1/models HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-c1bd2fd165bce814d72a06eedd5134c2 prompt=41 cached=0 thinking=False effort=none tokens=256 sha=f87626954a51 finish=length rounds=255 accepted=0/0 ttft=3.179 decode=107.140 elapsed=110.319 queued=0.000 tok/s=2.4\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-3374001f7e1f3f1bb04ff335a2c002c3 prompt=41 cached=0 thinking=False effort=none tokens=256 sha=f87626954a51 finish=length rounds=255 accepted=0/0 ttft=3.133 decode=92.128 elapsed=95.262 queued=0.000 tok/s=2.8\n[tensorfold] shutting down (SIGTERM): draining: new requests get 503; 0 request(s) in progress may finish within 20.0 s\n[tensorfold] shutting down: drained\n[tensorfold] shutting down: stopped\n", + "ready_s": 111.33909683500679, + "ttft_s": 3.134666653997556, + "total_s": 95.26329574899864, + "completion_tokens": 256, + "token_count_source": "usage", + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. This phenomenon is called dispersion. Violet light, having the shortest wavelength, bends the most, while red light, with the longest wavelength, bends the least.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is crucial because it sets", + "served_model": "qwen35-2b", + "text_sha256": "83887b098d88ea16a47c6d0aad022a58cf6a9ee6565c6b33e5633a90ff4a80d5", + "decode_tps": 2.7678692552458304, + "min_available_gib": 9.663, + "peak_temp_c": 51.379, + "round": 2, + "admission_available_gib": 11.05 + }, + { + "arm": "mlx-5k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 11.313, + "max_temp_c": 46.88, + "max_fan_rpm": 2506.0 + }, + { + "t": 1.03, + "available_gib": 10.54, + "max_temp_c": 47.606, + "max_fan_rpm": 2519.0 + }, + { + "t": 2.04, + "available_gib": 9.857, + "max_temp_c": 47.74, + "max_fan_rpm": 2502.0 + }, + { + "t": 3.06, + "available_gib": 9.79, + "max_temp_c": 47.426, + "max_fan_rpm": 2502.0 + }, + { + "t": 4.07, + "available_gib": 9.763, + "max_temp_c": 47.893, + "max_fan_rpm": 2498.0 + }, + { + "t": 5.08, + "available_gib": 9.75, + "max_temp_c": 47.326, + "max_fan_rpm": 2506.0 + }, + { + "t": 6.09, + "available_gib": 9.757, + "max_temp_c": 46.533, + "max_fan_rpm": 2501.0 + }, + { + "t": 7.1, + "available_gib": 9.757, + "max_temp_c": 47.4, + "max_fan_rpm": 2485.0 + }, + { + "t": 8.11, + "available_gib": 9.755, + "max_temp_c": 46.82, + "max_fan_rpm": 2485.0 + }, + { + "t": 9.12, + "available_gib": 9.773, + "max_temp_c": 47.486, + "max_fan_rpm": 2510.0 + }, + { + "t": 10.13, + "available_gib": 9.777, + "max_temp_c": 47.4, + "max_fan_rpm": 2497.0 + }, + { + "t": 11.14, + "available_gib": 9.75, + "max_temp_c": 47.96, + "max_fan_rpm": 2510.0 + }, + { + "t": 12.15, + "available_gib": 9.752, + "max_temp_c": 45.966, + "max_fan_rpm": 2514.0 + }, + { + "t": 13.16, + "available_gib": 9.754, + "max_temp_c": 46.213, + "max_fan_rpm": 2464.0 + }, + { + "t": 14.18, + "available_gib": 9.736, + "max_temp_c": 47.4, + "max_fan_rpm": 2501.0 + }, + { + "t": 15.19, + "available_gib": 9.737, + "max_temp_c": 47.38, + "max_fan_rpm": 2493.0 + }, + { + "t": 16.2, + "available_gib": 9.738, + "max_temp_c": 46.533, + "max_fan_rpm": 2510.0 + }, + { + "t": 17.21, + "available_gib": 9.78, + "max_temp_c": 47.066, + "max_fan_rpm": 2510.0 + } + ], + "log_tail": "", + "ready_s": 9.886949542997172, + "ttft_s": 0.5508741699959501, + "total_s": 7.407378256000811, + "completion_tokens": 256, + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 37.19096449172877, + "min_available_gib": 9.736, + "peak_temp_c": 47.96, + "round": 2, + "admission_available_gib": 11.313 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 11.158, + "max_temp_c": 47.893, + "max_fan_rpm": 2523.0 + }, + { + "t": 1.03, + "available_gib": 11.072, + "max_temp_c": 47.22, + "max_fan_rpm": 2472.0 + }, + { + "t": 2.05, + "available_gib": 10.439, + "max_temp_c": 48.18, + "max_fan_rpm": 2528.0 + }, + { + "t": 3.06, + "available_gib": 9.729, + "max_temp_c": 48.066, + "max_fan_rpm": 2501.0 + }, + { + "t": 4.08, + "available_gib": 9.689, + "max_temp_c": 47.74, + "max_fan_rpm": 2505.0 + }, + { + "t": 5.1, + "available_gib": 9.676, + "max_temp_c": 48.066, + "max_fan_rpm": 2506.0 + }, + { + "t": 6.12, + "available_gib": 9.679, + "max_temp_c": 47.893, + "max_fan_rpm": 2502.0 + }, + { + "t": 7.15, + "available_gib": 9.349, + "max_temp_c": 46.853, + "max_fan_rpm": 2510.0 + }, + { + "t": 8.17, + "available_gib": 9.162, + "max_temp_c": 47.353, + "max_fan_rpm": 2497.0 + }, + { + "t": 9.18, + "available_gib": 9.018, + "max_temp_c": 47.866, + "max_fan_rpm": 2506.0 + }, + { + "t": 10.19, + "available_gib": 9.017, + "max_temp_c": 47.14, + "max_fan_rpm": 2506.0 + }, + { + "t": 11.2, + "available_gib": 9.242, + "max_temp_c": 47.533, + "max_fan_rpm": 2510.0 + }, + { + "t": 12.22, + "available_gib": 9.256, + "max_temp_c": 47.533, + "max_fan_rpm": 2510.0 + }, + { + "t": 13.24, + "available_gib": 9.253, + "max_temp_c": 48.353, + "max_fan_rpm": 2493.0 + }, + { + "t": 14.26, + "available_gib": 9.26, + "max_temp_c": 46.853, + "max_fan_rpm": 2514.0 + }, + { + "t": 15.27, + "available_gib": 9.167, + "max_temp_c": 47.56, + "max_fan_rpm": 2506.0 + }, + { + "t": 16.29, + "available_gib": 9.17, + "max_temp_c": 48.006, + "max_fan_rpm": 2489.0 + }, + { + "t": 17.31, + "available_gib": 9.177, + "max_temp_c": 47.933, + "max_fan_rpm": 2484.0 + }, + { + "t": 18.33, + "available_gib": 9.193, + "max_temp_c": 48.006, + "max_fan_rpm": 2514.0 + }, + { + "t": 19.35, + "available_gib": 9.215, + "max_temp_c": 48.026, + "max_fan_rpm": 2489.0 + }, + { + "t": 20.38, + "available_gib": 9.241, + "max_temp_c": 47.893, + "max_fan_rpm": 2510.0 + } + ], + "log_tail": " first chunk arrived, elapsed=0.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] post-first-chunk keepalive (R15 #291), elapsed=0.0s\nINFO:rapid_mlx.scheduler:[schedule] request=chatcmpl-d8f uid=2 prompt_tokens=41 tokens_to_prefill=15, 26 cached max_tokens=256 running=1 waiting=0\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-d8f first token after 0.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] poll #10 disconnected=False elapsed=5.0s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-d8f tokens=297 (41 prompt + 256 output) stored=True time=0.000s cache_entries=4 cache_mem=121MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-d8f finished normally, 256 tokens in 5.9s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-d8f cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 256 tokens in 5.95s (43.0 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe5dc97160 [rapid-mlx-infer] (most recent call first):\n File \"/usr/lib/python3.14/threading.py\", line 369 in wait\n File \"/usr/lib/python3.14/queue.py\", line 199 in get\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/telemetry/inference.py\", line 44 in _worker_main\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nThread 0x0000fffeb1c7b160 [mlx-step_0] (most recent call first):\n File \"/usr/lib/python3.14/concurrent/futures/thread.py\", line 116 in _worker\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nCurrent thread 0x0000fffecfbf47a0 [python] (most recent call first):\n Garbage-collecting\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_signal_observability.py\", line 694 in _on_signal\n File \"/usr/lib/python3.14/_weakrefset.py\", line 15 in _remove\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/routes/chat.py\", line 8898 in stream_chat_completion\n File \"/usr/lib/python3.14/asyncio/events.py\", line 94 in _run\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 2057 in _run_once\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 677 in run_forever\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 706 in run_until_complete\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 127 in run\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 204 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-python/uvicorn/server.py\", line 86 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 258 in _run_server\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 285 in run_uvicorn\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4758 in main\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 3750 in wrapped\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4776 in \n File \"\", line 88 in _run_code\n File \"\", line 198 in _run_module_as_main\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 259 chunks (1 keepalives), elapsed=6.1s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 259 chunks total, elapsed=6.1s\nINFO: Shutting down\nINFO: Waiting for application shutdown.\nINFO:__main__:[lifespan] Prefix-cache auto-save disabled with auto-load by RAPID_MLX_PREFIX_CACHE_AUTOLOAD\nINFO:rapid_mlx.engine_core:Engine stopped\nINFO:rapid_mlx.scheduler:Deep reset completed - all caches cleared\nINFO:rapid_mlx.engine.batched:BatchedEngine stopped\nINFO:__main__:Engine stopped\nINFO: Application shutdown complete.\nINFO: Finished server process [1599495]\n", + "ready_s": 14.25447158600582, + "ttft_s": 0.39503248000255553, + "total_s": 6.1046589449979365, + "completion_tokens": 256, + "token_count_source": "usage", + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 44.66141551699675, + "min_available_gib": 9.017, + "peak_temp_c": 48.353, + "round": 3, + "admission_available_gib": 11.158 + }, + { + "arm": "tensorfold", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.197, + "max_temp_c": 47.646, + "max_fan_rpm": 2493.0 + }, + { + "t": 1.04, + "available_gib": 9.935, + "max_temp_c": 48.493, + "max_fan_rpm": 2501.0 + }, + { + "t": 2.05, + "available_gib": 9.949, + "max_temp_c": 48.666, + "max_fan_rpm": 2513.0 + }, + { + "t": 3.07, + "available_gib": 9.953, + "max_temp_c": 48.453, + "max_fan_rpm": 2510.0 + }, + { + "t": 4.08, + "available_gib": 9.934, + "max_temp_c": 47.826, + "max_fan_rpm": 2506.0 + }, + { + "t": 5.1, + "available_gib": 9.942, + "max_temp_c": 48.646, + "max_fan_rpm": 2497.0 + }, + { + "t": 6.12, + "available_gib": 9.944, + "max_temp_c": 48.006, + "max_fan_rpm": 2501.0 + }, + { + "t": 7.14, + "available_gib": 9.963, + "max_temp_c": 47.866, + "max_fan_rpm": 2519.0 + }, + { + "t": 8.16, + "available_gib": 9.962, + "max_temp_c": 48.613, + "max_fan_rpm": 2501.0 + }, + { + "t": 9.17, + "available_gib": 9.962, + "max_temp_c": 48.16, + "max_fan_rpm": 2496.0 + }, + { + "t": 10.19, + "available_gib": 9.962, + "max_temp_c": 48.646, + "max_fan_rpm": 2514.0 + }, + { + "t": 11.21, + "available_gib": 9.96, + "max_temp_c": 48.16, + "max_fan_rpm": 2506.0 + }, + { + "t": 12.22, + "available_gib": 9.974, + "max_temp_c": 47.46, + "max_fan_rpm": 2502.0 + }, + { + "t": 13.23, + "available_gib": 9.955, + "max_temp_c": 48.18, + "max_fan_rpm": 2506.0 + }, + { + "t": 14.25, + "available_gib": 9.965, + "max_temp_c": 48.786, + "max_fan_rpm": 2514.0 + }, + { + "t": 15.26, + "available_gib": 9.98, + "max_temp_c": 48.26, + "max_fan_rpm": 2501.0 + }, + { + "t": 16.28, + "available_gib": 9.983, + "max_temp_c": 47.866, + "max_fan_rpm": 2501.0 + }, + { + "t": 17.3, + "available_gib": 9.987, + "max_temp_c": 49.16, + "max_fan_rpm": 2497.0 + }, + { + "t": 18.32, + "available_gib": 9.986, + "max_temp_c": 47.98, + "max_fan_rpm": 2510.0 + }, + { + "t": 19.34, + "available_gib": 9.989, + "max_temp_c": 48.68, + "max_fan_rpm": 2510.0 + }, + { + "t": 20.35, + "available_gib": 9.985, + "max_temp_c": 48.006, + "max_fan_rpm": 2505.0 + }, + { + "t": 21.37, + "available_gib": 9.994, + "max_temp_c": 48.006, + "max_fan_rpm": 2501.0 + }, + { + "t": 22.39, + "available_gib": 9.999, + "max_temp_c": 48.666, + "max_fan_rpm": 2505.0 + }, + { + "t": 23.41, + "available_gib": 10.014, + "max_temp_c": 47.826, + "max_fan_rpm": 2510.0 + }, + { + "t": 24.43, + "available_gib": 10.013, + "max_temp_c": 47.96, + "max_fan_rpm": 2476.0 + }, + { + "t": 25.44, + "available_gib": 10.017, + "max_temp_c": 48.18, + "max_fan_rpm": 2506.0 + }, + { + "t": 26.45, + "available_gib": 10.01, + "max_temp_c": 47.433, + "max_fan_rpm": 2501.0 + }, + { + "t": 27.47, + "available_gib": 10.01, + "max_temp_c": 47.273, + "max_fan_rpm": 2511.0 + }, + { + "t": 28.49, + "available_gib": 10.015, + "max_temp_c": 48.18, + "max_fan_rpm": 2502.0 + }, + { + "t": 29.51, + "available_gib": 10.001, + "max_temp_c": 48.82, + "max_fan_rpm": 2501.0 + }, + { + "t": 30.54, + "available_gib": 10.001, + "max_temp_c": 48.3, + "max_fan_rpm": 2505.0 + }, + { + "t": 31.55, + "available_gib": 10.006, + "max_temp_c": 48.16, + "max_fan_rpm": 2501.0 + }, + { + "t": 32.57, + "available_gib": 10.003, + "max_temp_c": 47.666, + "max_fan_rpm": 2505.0 + }, + { + "t": 33.58, + "available_gib": 9.985, + "max_temp_c": 47.486, + "max_fan_rpm": 2510.0 + }, + { + "t": 34.6, + "available_gib": 9.993, + "max_temp_c": 48.3, + "max_fan_rpm": 2476.0 + }, + { + "t": 35.62, + "available_gib": 9.993, + "max_temp_c": 47.666, + "max_fan_rpm": 2514.0 + }, + { + "t": 36.63, + "available_gib": 9.997, + "max_temp_c": 47.273, + "max_fan_rpm": 2493.0 + }, + { + "t": 37.65, + "available_gib": 9.996, + "max_temp_c": 47.893, + "max_fan_rpm": 2515.0 + }, + { + "t": 38.66, + "available_gib": 9.992, + "max_temp_c": 47.533, + "max_fan_rpm": 2506.0 + }, + { + "t": 39.68, + "available_gib": 9.992, + "max_temp_c": 48.18, + "max_fan_rpm": 2505.0 + }, + { + "t": 40.69, + "available_gib": 9.992, + "max_temp_c": 47.0, + "max_fan_rpm": 2514.0 + }, + { + "t": 41.71, + "available_gib": 9.993, + "max_temp_c": 48.646, + "max_fan_rpm": 2514.0 + }, + { + "t": 42.73, + "available_gib": 9.993, + "max_temp_c": 47.893, + "max_fan_rpm": 2510.0 + }, + { + "t": 43.75, + "available_gib": 9.972, + "max_temp_c": 48.026, + "max_fan_rpm": 2506.0 + }, + { + "t": 44.76, + "available_gib": 9.972, + "max_temp_c": 46.98, + "max_fan_rpm": 2510.0 + }, + { + "t": 45.79, + "available_gib": 9.993, + "max_temp_c": 47.166, + "max_fan_rpm": 2506.0 + }, + { + "t": 46.8, + "available_gib": 10.012, + "max_temp_c": 47.666, + "max_fan_rpm": 2501.0 + }, + { + "t": 47.82, + "available_gib": 10.012, + "max_temp_c": 47.893, + "max_fan_rpm": 2501.0 + }, + { + "t": 48.84, + "available_gib": 10.012, + "max_temp_c": 47.846, + "max_fan_rpm": 2501.0 + }, + { + "t": 49.85, + "available_gib": 10.012, + "max_temp_c": 48.066, + "max_fan_rpm": 2505.0 + }, + { + "t": 50.87, + "available_gib": 10.015, + "max_temp_c": 47.98, + "max_fan_rpm": 2492.0 + }, + { + "t": 51.88, + "available_gib": 10.015, + "max_temp_c": 47.893, + "max_fan_rpm": 2510.0 + }, + { + "t": 52.9, + "available_gib": 10.015, + "max_temp_c": 47.893, + "max_fan_rpm": 2497.0 + }, + { + "t": 53.91, + "available_gib": 10.025, + "max_temp_c": 47.113, + "max_fan_rpm": 2492.0 + }, + { + "t": 54.93, + "available_gib": 10.029, + "max_temp_c": 47.893, + "max_fan_rpm": 2501.0 + }, + { + "t": 55.95, + "available_gib": 10.028, + "max_temp_c": 47.933, + "max_fan_rpm": 2519.0 + }, + { + "t": 56.96, + "available_gib": 9.97, + "max_temp_c": 46.933, + "max_fan_rpm": 2501.0 + }, + { + "t": 57.98, + "available_gib": 9.987, + "max_temp_c": 46.953, + "max_fan_rpm": 2488.0 + }, + { + "t": 58.99, + "available_gib": 9.987, + "max_temp_c": 47.14, + "max_fan_rpm": 2505.0 + }, + { + "t": 60.0, + "available_gib": 9.88, + "max_temp_c": 47.013, + "max_fan_rpm": 2501.0 + }, + { + "t": 61.03, + "available_gib": 9.888, + "max_temp_c": 46.633, + "max_fan_rpm": 2506.0 + }, + { + "t": 62.05, + "available_gib": 9.889, + "max_temp_c": 46.88, + "max_fan_rpm": 2493.0 + }, + { + "t": 63.06, + "available_gib": 9.881, + "max_temp_c": 47.713, + "max_fan_rpm": 2510.0 + }, + { + "t": 64.08, + "available_gib": 9.875, + "max_temp_c": 47.426, + "max_fan_rpm": 2510.0 + }, + { + "t": 65.09, + "available_gib": 9.873, + "max_temp_c": 46.766, + "max_fan_rpm": 2501.0 + }, + { + "t": 66.11, + "available_gib": 9.864, + "max_temp_c": 46.82, + "max_fan_rpm": 2501.0 + }, + { + "t": 67.12, + "available_gib": 9.871, + "max_temp_c": 46.72, + "max_fan_rpm": 2510.0 + }, + { + "t": 68.14, + "available_gib": 9.877, + "max_temp_c": 47.04, + "max_fan_rpm": 2506.0 + }, + { + "t": 69.15, + "available_gib": 9.894, + "max_temp_c": 47.533, + "max_fan_rpm": 2497.0 + }, + { + "t": 70.18, + "available_gib": 9.883, + "max_temp_c": 47.22, + "max_fan_rpm": 2506.0 + }, + { + "t": 71.21, + "available_gib": 9.897, + "max_temp_c": 47.533, + "max_fan_rpm": 2488.0 + }, + { + "t": 72.23, + "available_gib": 9.824, + "max_temp_c": 47.913, + "max_fan_rpm": 2514.0 + }, + { + "t": 73.25, + "available_gib": 9.833, + "max_temp_c": 46.98, + "max_fan_rpm": 2505.0 + }, + { + "t": 74.26, + "available_gib": 10.387, + "max_temp_c": 47.58, + "max_fan_rpm": 2501.0 + }, + { + "t": 75.28, + "available_gib": 12.56, + "max_temp_c": 46.98, + "max_fan_rpm": 2497.0 + }, + { + "t": 76.33, + "available_gib": 12.592, + "max_temp_c": 46.933, + "max_fan_rpm": 2505.0 + }, + { + "t": 77.35, + "available_gib": 12.522, + "max_temp_c": 47.533, + "max_fan_rpm": 2489.0 + }, + { + "t": 78.37, + "available_gib": 12.523, + "max_temp_c": 47.193, + "max_fan_rpm": 2506.0 + }, + { + "t": 79.41, + "available_gib": 12.479, + "max_temp_c": 47.846, + "max_fan_rpm": 2523.0 + }, + { + "t": 80.43, + "available_gib": 12.476, + "max_temp_c": 47.353, + "max_fan_rpm": 2505.0 + }, + { + "t": 81.46, + "available_gib": 12.415, + "max_temp_c": 46.72, + "max_fan_rpm": 2506.0 + }, + { + "t": 82.48, + "available_gib": 12.443, + "max_temp_c": 47.04, + "max_fan_rpm": 2497.0 + }, + { + "t": 83.5, + "available_gib": 12.459, + "max_temp_c": 47.353, + "max_fan_rpm": 2506.0 + }, + { + "t": 84.5, + "available_gib": 12.461, + "max_temp_c": 47.76, + "max_fan_rpm": 2510.0 + }, + { + "t": 85.53, + "available_gib": 12.449, + "max_temp_c": 47.56, + "max_fan_rpm": 2506.0 + }, + { + "t": 86.54, + "available_gib": 12.47, + "max_temp_c": 47.76, + "max_fan_rpm": 2510.0 + }, + { + "t": 87.55, + "available_gib": 12.473, + "max_temp_c": 46.373, + "max_fan_rpm": 2514.0 + }, + { + "t": 88.57, + "available_gib": 12.574, + "max_temp_c": 48.713, + "max_fan_rpm": 2510.0 + }, + { + "t": 89.6, + "available_gib": 12.578, + "max_temp_c": 47.193, + "max_fan_rpm": 2506.0 + }, + { + "t": 90.62, + "available_gib": 12.579, + "max_temp_c": 46.72, + "max_fan_rpm": 2472.0 + }, + { + "t": 91.64, + "available_gib": 12.58, + "max_temp_c": 47.56, + "max_fan_rpm": 2510.0 + }, + { + "t": 92.66, + "available_gib": 12.591, + "max_temp_c": 47.56, + "max_fan_rpm": 2484.0 + }, + { + "t": 93.68, + "available_gib": 12.589, + "max_temp_c": 47.066, + "max_fan_rpm": 2510.0 + }, + { + "t": 94.7, + "available_gib": 12.595, + "max_temp_c": 46.793, + "max_fan_rpm": 2510.0 + }, + { + "t": 95.72, + "available_gib": 12.617, + "max_temp_c": 47.38, + "max_fan_rpm": 2514.0 + }, + { + "t": 96.73, + "available_gib": 12.62, + "max_temp_c": 47.166, + "max_fan_rpm": 2523.0 + }, + { + "t": 97.75, + "available_gib": 12.638, + "max_temp_c": 47.166, + "max_fan_rpm": 2502.0 + }, + { + "t": 98.77, + "available_gib": 12.637, + "max_temp_c": 47.666, + "max_fan_rpm": 2501.0 + }, + { + "t": 99.79, + "available_gib": 12.639, + "max_temp_c": 47.56, + "max_fan_rpm": 2506.0 + }, + { + "t": 100.8, + "available_gib": 12.641, + "max_temp_c": 47.4, + "max_fan_rpm": 2493.0 + }, + { + "t": 101.82, + "available_gib": 12.669, + "max_temp_c": 46.346, + "max_fan_rpm": 2510.0 + }, + { + "t": 102.84, + "available_gib": 12.662, + "max_temp_c": 47.626, + "max_fan_rpm": 2501.0 + }, + { + "t": 103.86, + "available_gib": 12.661, + "max_temp_c": 47.846, + "max_fan_rpm": 2510.0 + }, + { + "t": 104.87, + "available_gib": 12.665, + "max_temp_c": 47.38, + "max_fan_rpm": 2493.0 + }, + { + "t": 105.89, + "available_gib": 12.679, + "max_temp_c": 47.78, + "max_fan_rpm": 2502.0 + }, + { + "t": 106.9, + "available_gib": 12.682, + "max_temp_c": 47.04, + "max_fan_rpm": 2510.0 + }, + { + "t": 107.92, + "available_gib": 12.682, + "max_temp_c": 47.066, + "max_fan_rpm": 2506.0 + }, + { + "t": 108.94, + "available_gib": 12.682, + "max_temp_c": 47.606, + "max_fan_rpm": 2497.0 + }, + { + "t": 109.96, + "available_gib": 12.686, + "max_temp_c": 47.193, + "max_fan_rpm": 2514.0 + }, + { + "t": 110.98, + "available_gib": 12.687, + "max_temp_c": 47.353, + "max_fan_rpm": 2497.0 + }, + { + "t": 111.99, + "available_gib": 12.688, + "max_temp_c": 47.22, + "max_fan_rpm": 2493.0 + }, + { + "t": 113.01, + "available_gib": 12.685, + "max_temp_c": 47.58, + "max_fan_rpm": 2514.0 + }, + { + "t": 114.03, + "available_gib": 12.616, + "max_temp_c": 46.533, + "max_fan_rpm": 2501.0 + }, + { + "t": 115.04, + "available_gib": 12.57, + "max_temp_c": 47.933, + "max_fan_rpm": 2489.0 + }, + { + "t": 116.05, + "available_gib": 12.522, + "max_temp_c": 47.22, + "max_fan_rpm": 2480.0 + }, + { + "t": 117.07, + "available_gib": 12.535, + "max_temp_c": 47.58, + "max_fan_rpm": 2501.0 + }, + { + "t": 118.09, + "available_gib": 12.528, + "max_temp_c": 47.4, + "max_fan_rpm": 2506.0 + }, + { + "t": 119.1, + "available_gib": 12.527, + "max_temp_c": 47.38, + "max_fan_rpm": 2514.0 + }, + { + "t": 120.12, + "available_gib": 12.541, + "max_temp_c": 47.74, + "max_fan_rpm": 2484.0 + }, + { + "t": 121.13, + "available_gib": 12.592, + "max_temp_c": 46.533, + "max_fan_rpm": 2506.0 + }, + { + "t": 122.14, + "available_gib": 12.582, + "max_temp_c": 47.166, + "max_fan_rpm": 2505.0 + }, + { + "t": 123.15, + "available_gib": 12.572, + "max_temp_c": 47.066, + "max_fan_rpm": 2510.0 + }, + { + "t": 124.16, + "available_gib": 12.561, + "max_temp_c": 46.473, + "max_fan_rpm": 2476.0 + }, + { + "t": 125.17, + "available_gib": 12.557, + "max_temp_c": 47.56, + "max_fan_rpm": 2506.0 + }, + { + "t": 126.18, + "available_gib": 12.52, + "max_temp_c": 48.026, + "max_fan_rpm": 2510.0 + }, + { + "t": 127.19, + "available_gib": 12.527, + "max_temp_c": 48.546, + "max_fan_rpm": 2506.0 + }, + { + "t": 128.2, + "available_gib": 12.547, + "max_temp_c": 47.533, + "max_fan_rpm": 2493.0 + }, + { + "t": 129.21, + "available_gib": 12.621, + "max_temp_c": 46.98, + "max_fan_rpm": 2506.0 + }, + { + "t": 130.23, + "available_gib": 12.611, + "max_temp_c": 46.666, + "max_fan_rpm": 2485.0 + }, + { + "t": 131.24, + "available_gib": 12.609, + "max_temp_c": 47.193, + "max_fan_rpm": 2497.0 + }, + { + "t": 132.26, + "available_gib": 12.609, + "max_temp_c": 48.046, + "max_fan_rpm": 2498.0 + }, + { + "t": 133.27, + "available_gib": 12.608, + "max_temp_c": 46.906, + "max_fan_rpm": 2506.0 + }, + { + "t": 134.29, + "available_gib": 12.604, + "max_temp_c": 47.38, + "max_fan_rpm": 2485.0 + }, + { + "t": 135.3, + "available_gib": 12.616, + "max_temp_c": 46.6, + "max_fan_rpm": 2498.0 + }, + { + "t": 136.32, + "available_gib": 12.618, + "max_temp_c": 46.806, + "max_fan_rpm": 2506.0 + }, + { + "t": 137.33, + "available_gib": 12.621, + "max_temp_c": 47.933, + "max_fan_rpm": 2502.0 + }, + { + "t": 138.35, + "available_gib": 12.623, + "max_temp_c": 45.433, + "max_fan_rpm": 2502.0 + }, + { + "t": 139.37, + "available_gib": 12.668, + "max_temp_c": 47.22, + "max_fan_rpm": 2505.0 + }, + { + "t": 140.38, + "available_gib": 12.665, + "max_temp_c": 49.006, + "max_fan_rpm": 2489.0 + }, + { + "t": 141.4, + "available_gib": 12.671, + "max_temp_c": 47.626, + "max_fan_rpm": 2497.0 + }, + { + "t": 142.42, + "available_gib": 12.671, + "max_temp_c": 47.58, + "max_fan_rpm": 2510.0 + }, + { + "t": 143.44, + "available_gib": 12.676, + "max_temp_c": 46.88, + "max_fan_rpm": 2511.0 + }, + { + "t": 144.46, + "available_gib": 12.673, + "max_temp_c": 46.186, + "max_fan_rpm": 2502.0 + }, + { + "t": 145.48, + "available_gib": 12.674, + "max_temp_c": 46.793, + "max_fan_rpm": 2515.0 + }, + { + "t": 146.5, + "available_gib": 12.678, + "max_temp_c": 46.086, + "max_fan_rpm": 2498.0 + }, + { + "t": 147.52, + "available_gib": 12.678, + "max_temp_c": 47.4, + "max_fan_rpm": 2523.0 + }, + { + "t": 148.54, + "available_gib": 12.671, + "max_temp_c": 47.76, + "max_fan_rpm": 2485.0 + }, + { + "t": 149.55, + "available_gib": 12.674, + "max_temp_c": 47.653, + "max_fan_rpm": 2506.0 + }, + { + "t": 150.57, + "available_gib": 12.671, + "max_temp_c": 46.693, + "max_fan_rpm": 2515.0 + }, + { + "t": 151.6, + "available_gib": 12.679, + "max_temp_c": 47.273, + "max_fan_rpm": 2515.0 + }, + { + "t": 152.62, + "available_gib": 12.679, + "max_temp_c": 46.566, + "max_fan_rpm": 2501.0 + }, + { + "t": 153.63, + "available_gib": 12.675, + "max_temp_c": 46.28, + "max_fan_rpm": 2510.0 + }, + { + "t": 154.64, + "available_gib": 12.676, + "max_temp_c": 46.853, + "max_fan_rpm": 2484.0 + }, + { + "t": 155.65, + "available_gib": 12.678, + "max_temp_c": 47.326, + "max_fan_rpm": 2510.0 + }, + { + "t": 156.67, + "available_gib": 12.68, + "max_temp_c": 47.22, + "max_fan_rpm": 2484.0 + }, + { + "t": 157.69, + "available_gib": 12.678, + "max_temp_c": 46.593, + "max_fan_rpm": 2515.0 + }, + { + "t": 158.71, + "available_gib": 12.68, + "max_temp_c": 47.56, + "max_fan_rpm": 2510.0 + }, + { + "t": 159.73, + "available_gib": 12.681, + "max_temp_c": 46.626, + "max_fan_rpm": 2502.0 + }, + { + "t": 160.75, + "available_gib": 12.694, + "max_temp_c": 47.3, + "max_fan_rpm": 2497.0 + }, + { + "t": 161.77, + "available_gib": 12.695, + "max_temp_c": 47.913, + "max_fan_rpm": 2501.0 + }, + { + "t": 162.79, + "available_gib": 12.695, + "max_temp_c": 46.78, + "max_fan_rpm": 2506.0 + }, + { + "t": 163.81, + "available_gib": 12.682, + "max_temp_c": 46.78, + "max_fan_rpm": 2497.0 + }, + { + "t": 164.82, + "available_gib": 12.682, + "max_temp_c": 46.506, + "max_fan_rpm": 2506.0 + }, + { + "t": 165.84, + "available_gib": 12.683, + "max_temp_c": 47.56, + "max_fan_rpm": 2493.0 + }, + { + "t": 166.85, + "available_gib": 12.699, + "max_temp_c": 46.693, + "max_fan_rpm": 2497.0 + }, + { + "t": 167.87, + "available_gib": 12.699, + "max_temp_c": 47.353, + "max_fan_rpm": 2506.0 + }, + { + "t": 168.88, + "available_gib": 12.7, + "max_temp_c": 46.566, + "max_fan_rpm": 2514.0 + }, + { + "t": 169.9, + "available_gib": 12.699, + "max_temp_c": 46.573, + "max_fan_rpm": 2506.0 + }, + { + "t": 170.92, + "available_gib": 12.7, + "max_temp_c": 46.253, + "max_fan_rpm": 2476.0 + }, + { + "t": 171.94, + "available_gib": 12.703, + "max_temp_c": 47.246, + "max_fan_rpm": 2510.0 + }, + { + "t": 172.96, + "available_gib": 12.698, + "max_temp_c": 46.373, + "max_fan_rpm": 2497.0 + }, + { + "t": 173.97, + "available_gib": 12.693, + "max_temp_c": 47.326, + "max_fan_rpm": 2494.0 + }, + { + "t": 174.99, + "available_gib": 12.693, + "max_temp_c": 46.933, + "max_fan_rpm": 2467.0 + }, + { + "t": 176.01, + "available_gib": 12.692, + "max_temp_c": 46.28, + "max_fan_rpm": 2506.0 + }, + { + "t": 177.03, + "available_gib": 12.722, + "max_temp_c": 46.926, + "max_fan_rpm": 2506.0 + }, + { + "t": 178.05, + "available_gib": 12.719, + "max_temp_c": 47.48, + "max_fan_rpm": 2510.0 + }, + { + "t": 179.06, + "available_gib": 12.718, + "max_temp_c": 47.426, + "max_fan_rpm": 2484.0 + }, + { + "t": 180.07, + "available_gib": 12.716, + "max_temp_c": 47.5, + "max_fan_rpm": 2506.0 + }, + { + "t": 181.09, + "available_gib": 12.709, + "max_temp_c": 47.3, + "max_fan_rpm": 2493.0 + }, + { + "t": 182.1, + "available_gib": 12.702, + "max_temp_c": 46.5, + "max_fan_rpm": 2515.0 + } + ], + "log_tail": "[tensorfold] prompt chunks of up to 32 tokens, cut at replies 256+ tokens apart\nwarning: libtfgrammar.so is required for structured output and required tool calls (HTTP 400 when missing); restore the matching release archive's lib/ directory or run zig build grammar -Dxgrammar=DIR; prepare DIR with git clone --branch v0.2.8 --recurse-submodules https://github.com/mlc-ai/xgrammar\n[tensorfold] serving qwen35-2b at http://127.0.0.1:47479/v1 (sampling: greedy; drafts: on; context: 1024; loaded in 0.5s)\n[tensorfold] 127.0.0.1 \"GET /health HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"GET /v1/models HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-7feab0de675c3727825a53aa458854b5 prompt=41 cached=0 thinking=False effort=none tokens=256 sha=f87626954a51 finish=length rounds=255 accepted=0/0 ttft=2.898 decode=91.615 elapsed=94.513 queued=0.000 tok/s=2.8\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-5418f404e44eb77e7ae12eae2dcc766d prompt=41 cached=0 thinking=False effort=none tokens=256 sha=f87626954a51 finish=length rounds=255 accepted=0/0 ttft=2.901 decode=83.939 elapsed=86.840 queued=0.000 tok/s=3.0\n[tensorfold] shutting down (SIGTERM): draining: new requests get 503; 0 request(s) in progress may finish within 20.0 s\n[tensorfold] shutting down: drained\n[tensorfold] shutting down: stopped\n", + "ready_s": 95.51999934299965, + "ttft_s": 2.9029555359957158, + "total_s": 86.84325562999584, + "completion_tokens": 256, + "token_count_source": "usage", + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. This phenomenon is called dispersion. Violet light, having the shortest wavelength, bends the most, while red light, with the longest wavelength, bends the least.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is crucial because it sets", + "served_model": "qwen35-2b", + "text_sha256": "83887b098d88ea16a47c6d0aad022a58cf6a9ee6565c6b33e5633a90ff4a80d5", + "decode_tps": 3.037873342297318, + "min_available_gib": 9.824, + "peak_temp_c": 49.16, + "round": 3, + "admission_available_gib": 11.192 + }, + { + "arm": "mlx-5k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 13.995, + "max_temp_c": 46.373, + "max_fan_rpm": 2485.0 + }, + { + "t": 1.03, + "available_gib": 13.103, + "max_temp_c": 45.933, + "max_fan_rpm": 2506.0 + }, + { + "t": 2.04, + "available_gib": 12.544, + "max_temp_c": 46.22, + "max_fan_rpm": 2498.0 + }, + { + "t": 3.05, + "available_gib": 12.421, + "max_temp_c": 46.506, + "max_fan_rpm": 2515.0 + }, + { + "t": 4.06, + "available_gib": 12.391, + "max_temp_c": 46.026, + "max_fan_rpm": 2497.0 + }, + { + "t": 5.07, + "available_gib": 12.388, + "max_temp_c": 46.466, + "max_fan_rpm": 2511.0 + }, + { + "t": 6.07, + "available_gib": 12.39, + "max_temp_c": 46.373, + "max_fan_rpm": 2485.0 + }, + { + "t": 7.08, + "available_gib": 12.39, + "max_temp_c": 46.72, + "max_fan_rpm": 2511.0 + }, + { + "t": 8.1, + "available_gib": 12.39, + "max_temp_c": 46.666, + "max_fan_rpm": 2481.0 + }, + { + "t": 9.11, + "available_gib": 12.41, + "max_temp_c": 46.966, + "max_fan_rpm": 2524.0 + }, + { + "t": 10.12, + "available_gib": 12.424, + "max_temp_c": 46.966, + "max_fan_rpm": 2506.0 + }, + { + "t": 11.13, + "available_gib": 12.401, + "max_temp_c": 45.513, + "max_fan_rpm": 2489.0 + }, + { + "t": 12.14, + "available_gib": 12.4, + "max_temp_c": 46.253, + "max_fan_rpm": 2515.0 + }, + { + "t": 13.15, + "available_gib": 12.407, + "max_temp_c": 45.833, + "max_fan_rpm": 2489.0 + }, + { + "t": 14.16, + "available_gib": 12.408, + "max_temp_c": 46.346, + "max_fan_rpm": 2515.0 + }, + { + "t": 15.17, + "available_gib": 12.409, + "max_temp_c": 47.246, + "max_fan_rpm": 2485.0 + }, + { + "t": 16.19, + "available_gib": 12.413, + "max_temp_c": 46.566, + "max_fan_rpm": 2515.0 + }, + { + "t": 17.2, + "available_gib": 12.387, + "max_temp_c": 46.346, + "max_fan_rpm": 2497.0 + } + ], + "log_tail": "", + "ready_s": 9.874843284997041, + "ttft_s": 0.5493252939995728, + "total_s": 7.263980616000481, + "completion_tokens": 256, + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 37.97663286818008, + "min_available_gib": 12.387, + "peak_temp_c": 47.246, + "round": 3, + "admission_available_gib": 13.995 + }, + { + "arm": "mlx-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 13.882, + "max_temp_c": 47.04, + "max_fan_rpm": 2485.0 + }, + { + "t": 1.03, + "available_gib": 13.046, + "max_temp_c": 46.753, + "max_fan_rpm": 2511.0 + }, + { + "t": 2.04, + "available_gib": 12.441, + "max_temp_c": 46.806, + "max_fan_rpm": 2510.0 + }, + { + "t": 3.05, + "available_gib": 12.126, + "max_temp_c": 46.28, + "max_fan_rpm": 2460.0 + }, + { + "t": 4.06, + "available_gib": 12.0, + "max_temp_c": 46.766, + "max_fan_rpm": 2507.0 + }, + { + "t": 5.07, + "available_gib": 12.004, + "max_temp_c": 47.246, + "max_fan_rpm": 2506.0 + }, + { + "t": 6.09, + "available_gib": 12.01, + "max_temp_c": 47.146, + "max_fan_rpm": 2494.0 + }, + { + "t": 7.1, + "available_gib": 12.021, + "max_temp_c": 46.88, + "max_fan_rpm": 2498.0 + }, + { + "t": 8.11, + "available_gib": 12.109, + "max_temp_c": 47.246, + "max_fan_rpm": 2506.0 + }, + { + "t": 9.12, + "available_gib": 11.949, + "max_temp_c": 47.56, + "max_fan_rpm": 2498.0 + }, + { + "t": 10.14, + "available_gib": 11.961, + "max_temp_c": 46.88, + "max_fan_rpm": 2506.0 + }, + { + "t": 11.15, + "available_gib": 11.964, + "max_temp_c": 47.4, + "max_fan_rpm": 2502.0 + }, + { + "t": 12.16, + "available_gib": 11.968, + "max_temp_c": 47.713, + "max_fan_rpm": 2485.0 + }, + { + "t": 13.17, + "available_gib": 12.207, + "max_temp_c": 47.58, + "max_fan_rpm": 2506.0 + } + ], + "log_tail": "", + "ready_s": 8.210749058001966, + "ttft_s": 0.5051646810024977, + "total_s": 5.580210710002575, + "completion_tokens": 256, + "text": "A rainbow is a spectacular natural phenomenon that occurs when sunlight interacts with water droplets in the atmosphere, creating a spectrum of colors that we see in the sky. This optical effect is a complex interplay of physics involving refraction, reflection, dispersion, and the viewing angle. To understand how a rainbow forms, one must first consider the properties of light and the behavior of water droplets.\n\nThe process begins with the entry of sunlight into a water droplet. Sunlight is composed of all visible wavelengths of the electromagnetic spectrum, ranging from red to violet. As these rays enter the droplet, they encounter a medium with a higher refractive index than air. Consequently, the light slows down and bends, a process known as refraction. Because different wavelengths of light travel at different speeds, they refract at slightly different angles. Red light, having the longest wavelength, bends the least, while violet light, with the shortest wavelength, bends the most. This separation of colors is called dispersion.\n\nUpon entering the droplet, the light ray undergoes a second refraction as it exits the back of the droplet. However, the path of the light ray is not a straight line; it curves inward as it travels through the droplet. This curvature is the result", + "text_sha256": "3f3ac70c5d72eda0b31229d8da4d90ca6fce34ca69e6ebc24a3d6502fc816990", + "decode_tps": 50.24584970123748, + "min_available_gib": 11.949, + "peak_temp_c": 47.713, + "round": 3, + "admission_available_gib": 13.882 + } + ], + "summary": { + "mlx-5k": { + "ok_runs": 3, + "median_ttft_s": 0.5508741699959501, + "median_total_s": 7.407378256000811, + "median_decode_tps": 37.19096449172877, + "texts": [ + "3f3ac70c5d72" + ] + }, + "mlx-120k": { + "ok_runs": 3, + "median_ttft_s": 0.5593528610042995, + "median_total_s": 5.743813449000299, + "median_decode_tps": 49.275994717945956, + "texts": [ + "3f3ac70c5d72" + ] + }, + "rapid-120k": { + "ok_runs": 3, + "median_ttft_s": 0.39503248000255553, + "median_total_s": 6.265561171996524, + "median_decode_tps": 43.167204558795554, + "texts": [ + "3f3ac70c5d72" + ] + }, + "tensorfold": { + "ok_runs": 3, + "median_ttft_s": 3.1231333750038175, + "median_total_s": 95.26329574899864, + "median_decode_tps": 2.7678692552458304, + "texts": [ + "83887b098d88" + ] + } + } +} diff --git a/mseries/local-ai/receipts/2026-10-28-engine-compare-short.json b/mseries/local-ai/receipts/2026-10-28-engine-compare-short.json new file mode 100644 index 00000000..9f4ab9f7 --- /dev/null +++ b/mseries/local-ai/receipts/2026-10-28-engine-compare-short.json @@ -0,0 +1,1256 @@ +{ + "status": "complete", + "model": "mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3", + "weights_sha256": "713fe7e5d3c3965f7106b0d0ee17615f7869c23c8d327996df8c1196fbcf07d5", + "kernel": "7.2.11-elementary-aurora72-wip4", + "tensorfold_rev": "670902196c47f3e70e3f56ab933805713be31aa8", + "rapid_rev": "1d09cdb684bbf58fac130f5804b08ee2e1f56558", + "prompt_sha256": "af125b15dfba55caedb541e89e59fe1252c0f13553e5ce6bc181e237fada9926", + "max_tokens": 32, + "policy": { + "reserve_gib": 6, + "max_fan_rpm": null, + "max_temp_c": 80 + }, + "allowance_gib": 4.5, + "arms": [ + "mlx-5k", + "mlx-120k", + "rapid-120k", + "tensorfold" + ], + "runs": [ + { + "arm": "mlx-5k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.083, + "max_temp_c": 46.953, + "max_fan_rpm": 2501.0 + }, + { + "t": 1.03, + "available_gib": 11.137, + "max_temp_c": 48.786, + "max_fan_rpm": 2510.0 + }, + { + "t": 2.05, + "available_gib": 10.851, + "max_temp_c": 48.14, + "max_fan_rpm": 2485.0 + }, + { + "t": 3.06, + "available_gib": 9.733, + "max_temp_c": 48.646, + "max_fan_rpm": 2502.0 + }, + { + "t": 4.06, + "available_gib": 9.683, + "max_temp_c": 48.32, + "max_fan_rpm": 2514.0 + }, + { + "t": 5.09, + "available_gib": 9.762, + "max_temp_c": 49.146, + "max_fan_rpm": 2506.0 + }, + { + "t": 6.11, + "available_gib": 9.77, + "max_temp_c": 49.126, + "max_fan_rpm": 2510.0 + }, + { + "t": 7.13, + "available_gib": 9.861, + "max_temp_c": 48.026, + "max_fan_rpm": 2497.0 + } + ], + "log_tail": "", + "ready_s": 5.587050800000725, + "ttft_s": 0.5082284520030953, + "total_s": 1.3688199559983332, + "completion_tokens": 32, + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 36.02173604559724, + "min_available_gib": 9.683, + "peak_temp_c": 49.146, + "round": 1, + "admission_available_gib": 11.084 + }, + { + "arm": "mlx-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.323, + "max_temp_c": 48.8, + "max_fan_rpm": 2493.0 + }, + { + "t": 1.02, + "available_gib": 10.591, + "max_temp_c": 48.233, + "max_fan_rpm": 2488.0 + }, + { + "t": 2.04, + "available_gib": 9.536, + "max_temp_c": 47.646, + "max_fan_rpm": 2502.0 + }, + { + "t": 3.05, + "available_gib": 9.481, + "max_temp_c": 48.513, + "max_fan_rpm": 2514.0 + }, + { + "t": 4.06, + "available_gib": 9.567, + "max_temp_c": 48.28, + "max_fan_rpm": 2484.0 + }, + { + "t": 5.07, + "available_gib": 9.612, + "max_temp_c": 48.473, + "max_fan_rpm": 2484.0 + } + ], + "log_tail": "", + "ready_s": 3.8941716279950924, + "ttft_s": 0.48289319800096564, + "total_s": 1.1398282130030566, + "completion_tokens": 32, + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 47.18883800082011, + "min_available_gib": 9.481, + "peak_temp_c": 48.8, + "round": 1, + "admission_available_gib": 11.323 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 11.391, + "max_temp_c": 48.82, + "max_fan_rpm": 2493.0 + }, + { + "t": 1.03, + "available_gib": 11.319, + "max_temp_c": 48.453, + "max_fan_rpm": 2528.0 + }, + { + "t": 2.04, + "available_gib": 11.274, + "max_temp_c": 48.613, + "max_fan_rpm": 2484.0 + }, + { + "t": 3.05, + "available_gib": 9.954, + "max_temp_c": 47.62, + "max_fan_rpm": 2497.0 + }, + { + "t": 4.06, + "available_gib": 9.417, + "max_temp_c": 49.453, + "max_fan_rpm": 2506.0 + }, + { + "t": 5.08, + "available_gib": 9.454, + "max_temp_c": 48.16, + "max_fan_rpm": 2489.0 + }, + { + "t": 6.09, + "available_gib": 9.459, + "max_temp_c": 48.666, + "max_fan_rpm": 2511.0 + }, + { + "t": 7.11, + "available_gib": 9.477, + "max_temp_c": 49.453, + "max_fan_rpm": 2510.0 + }, + { + "t": 8.13, + "available_gib": 9.458, + "max_temp_c": 48.353, + "max_fan_rpm": 2502.0 + }, + { + "t": 9.15, + "available_gib": 9.461, + "max_temp_c": 48.666, + "max_fan_rpm": 2493.0 + }, + { + "t": 10.16, + "available_gib": 9.405, + "max_temp_c": 48.473, + "max_fan_rpm": 2497.0 + } + ], + "log_tail": "irst chunk arrived, elapsed=0.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] post-first-chunk keepalive (R15 #291), elapsed=0.0s\nINFO:rapid_mlx.scheduler:[schedule] request=chatcmpl-de4 uid=2 prompt_tokens=27 tokens_to_prefill=1, 26 cached max_tokens=32 running=1 waiting=0\nINFO:rapid_mlx.scheduler:[prompt_cache_save] request=chatcmpl-de4 prompt_tokens=27 store_time=0.000s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-de4 first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-de4 tokens=59 (27 prompt + 32 output) stored=True time=0.000s cache_entries=5 cache_mem=138MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-de4 finished normally, 32 tokens in 0.8s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-de4 cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 0.77s (41.3 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe717ff160 [rapid-mlx-infer] (most recent call first):\n File \"/usr/lib/python3.14/threading.py\", line 369 in wait\n File \"/usr/lib/python3.14/queue.py\", line 199 in get\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/telemetry/inference.py\", line 44 in _worker_main\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nThread 0x0000fffeef6ef160 [mlx-step_0] (most recent call first):\n File \"/usr/lib/python3.14/concurrent/futures/thread.py\", line 116 in _worker\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nCurrent thread 0x0000ffff116e87a0 [python] (most recent call first):\n Garbage-collecting\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_signal_observability.py\", line 694 in _on_signal\n File \"/usr/lib/python3.14/_weakrefset.py\", line 15 in _remove\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/routes/chat.py\", line 8898 in stream_chat_completion\n File \"/usr/lib/python3.14/asyncio/events.py\", line 94 in _run\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 2057 in _run_once\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 677 in run_forever\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 706 in run_until_complete\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 127 in run\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 204 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-python/uvicorn/server.py\", line 86 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 258 in _run_server\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 285 in run_uvicorn\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4758 in main\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 3750 in wrapped\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4776 in \n File \"\", line 88 in _run_code\n File \"\", line 198 in _run_module_as_main\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=0.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=0.9s\nINFO: Shutting down\nINFO: Waiting for application shutdown.\nINFO:__main__:[lifespan] Prefix-cache auto-save disabled with auto-load by RAPID_MLX_PREFIX_CACHE_AUTOLOAD\nINFO:rapid_mlx.engine_core:Engine stopped\nINFO:rapid_mlx.scheduler:Deep reset completed - all caches cleared\nINFO:rapid_mlx.engine.batched:BatchedEngine stopped\nINFO:__main__:Engine stopped\nINFO: Application shutdown complete.\nINFO: Finished server process [1573857]\n", + "ready_s": 9.653573122006492, + "ttft_s": 0.18697444399731467, + "total_s": 0.9004872189980233, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 43.44701466623245, + "min_available_gib": 9.405, + "peak_temp_c": 49.453, + "round": 1, + "admission_available_gib": 11.391 + }, + { + "arm": "tensorfold", + "stopped": null, + "samples": [ + { + "t": 0.05, + "available_gib": 11.304, + "max_temp_c": 48.986, + "max_fan_rpm": 2498.0 + }, + { + "t": 1.07, + "available_gib": 10.543, + "max_temp_c": 47.433, + "max_fan_rpm": 2510.0 + }, + { + "t": 2.08, + "available_gib": 10.117, + "max_temp_c": 48.32, + "max_fan_rpm": 2506.0 + }, + { + "t": 3.1, + "available_gib": 10.008, + "max_temp_c": 49.286, + "max_fan_rpm": 2501.0 + }, + { + "t": 4.12, + "available_gib": 10.035, + "max_temp_c": 48.1, + "max_fan_rpm": 2510.0 + }, + { + "t": 5.13, + "available_gib": 10.034, + "max_temp_c": 48.94, + "max_fan_rpm": 2484.0 + }, + { + "t": 6.14, + "available_gib": 10.05, + "max_temp_c": 48.513, + "max_fan_rpm": 2506.0 + }, + { + "t": 7.16, + "available_gib": 10.054, + "max_temp_c": 48.3, + "max_fan_rpm": 2507.0 + }, + { + "t": 8.17, + "available_gib": 10.047, + "max_temp_c": 47.8, + "max_fan_rpm": 2511.0 + }, + { + "t": 9.19, + "available_gib": 10.026, + "max_temp_c": 48.646, + "max_fan_rpm": 2489.0 + }, + { + "t": 10.21, + "available_gib": 10.01, + "max_temp_c": 48.786, + "max_fan_rpm": 2502.0 + }, + { + "t": 11.23, + "available_gib": 10.0, + "max_temp_c": 48.14, + "max_fan_rpm": 2493.0 + }, + { + "t": 12.24, + "available_gib": 10.001, + "max_temp_c": 48.333, + "max_fan_rpm": 2493.0 + }, + { + "t": 13.26, + "available_gib": 9.989, + "max_temp_c": 47.646, + "max_fan_rpm": 2515.0 + }, + { + "t": 14.27, + "available_gib": 9.872, + "max_temp_c": 48.96, + "max_fan_rpm": 2510.0 + }, + { + "t": 15.28, + "available_gib": 9.861, + "max_temp_c": 48.28, + "max_fan_rpm": 2480.0 + }, + { + "t": 16.28, + "available_gib": 9.95, + "max_temp_c": 48.786, + "max_fan_rpm": 2506.0 + }, + { + "t": 17.3, + "available_gib": 9.943, + "max_temp_c": 48.96, + "max_fan_rpm": 2493.0 + }, + { + "t": 18.31, + "available_gib": 9.945, + "max_temp_c": 48.473, + "max_fan_rpm": 2506.0 + }, + { + "t": 19.34, + "available_gib": 9.945, + "max_temp_c": 48.473, + "max_fan_rpm": 2510.0 + }, + { + "t": 20.37, + "available_gib": 9.943, + "max_temp_c": 49.113, + "max_fan_rpm": 2510.0 + }, + { + "t": 21.38, + "available_gib": 9.94, + "max_temp_c": 49.126, + "max_fan_rpm": 2501.0 + }, + { + "t": 22.41, + "available_gib": 9.963, + "max_temp_c": 48.646, + "max_fan_rpm": 2489.0 + }, + { + "t": 23.43, + "available_gib": 9.975, + "max_temp_c": 48.453, + "max_fan_rpm": 2510.0 + }, + { + "t": 24.43, + "available_gib": 9.974, + "max_temp_c": 48.433, + "max_fan_rpm": 2501.0 + }, + { + "t": 25.45, + "available_gib": 9.99, + "max_temp_c": 48.8, + "max_fan_rpm": 2498.0 + }, + { + "t": 26.46, + "available_gib": 9.984, + "max_temp_c": 48.28, + "max_fan_rpm": 2510.0 + }, + { + "t": 27.48, + "available_gib": 9.984, + "max_temp_c": 47.94, + "max_fan_rpm": 2467.0 + }, + { + "t": 28.49, + "available_gib": 9.986, + "max_temp_c": 48.473, + "max_fan_rpm": 2510.0 + }, + { + "t": 29.5, + "available_gib": 10.014, + "max_temp_c": 48.666, + "max_fan_rpm": 2506.0 + }, + { + "t": 30.51, + "available_gib": 10.007, + "max_temp_c": 47.593, + "max_fan_rpm": 2510.0 + }, + { + "t": 31.54, + "available_gib": 9.998, + "max_temp_c": 48.473, + "max_fan_rpm": 2480.0 + } + ], + "log_tail": "[tensorfold] prompt chunks of up to 32 tokens, cut at replies 256+ tokens apart\nwarning: libtfgrammar.so is required for structured output and required tool calls (HTTP 400 when missing); restore the matching release archive's lib/ directory or run zig build grammar -Dxgrammar=DIR; prepare DIR with git clone --branch v0.2.8 --recurse-submodules https://github.com/mlc-ai/xgrammar\n[tensorfold] serving qwen35-2b at http://127.0.0.1:54479/v1 (sampling: greedy; drafts: on; context: 1024; loaded in 2.3s)\n[tensorfold] 127.0.0.1 \"GET /health HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"GET /v1/models HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-1dfb7d654b92fe76056e0d1e1fea2f8a prompt=27 cached=0 thinking=False effort=none tokens=32 sha=778f678f6c4f finish=length rounds=31 accepted=0/0 ttft=2.001 decode=12.117 elapsed=14.117 queued=0.000 tok/s=2.6\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-7db1888beec5e571ce53cfd927dfe2aa prompt=27 cached=0 thinking=False effort=none tokens=32 sha=778f678f6c4f finish=length rounds=31 accepted=0/0 ttft=1.998 decode=12.913 elapsed=14.911 queued=0.000 tok/s=2.4\n[tensorfold] shutting down (SIGTERM): draining: new requests get 503; 0 request(s) in progress may finish within 20.0 s\n[tensorfold] shutting down: drained\n[tensorfold] shutting down: stopped\n", + "ready_s": 16.63831975699577, + "ttft_s": 1.9998081770027056, + "total_s": 14.91643883100187, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "served_model": "qwen35-2b", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 2.400006691404618, + "min_available_gib": 9.861, + "peak_temp_c": 49.286, + "round": 1, + "admission_available_gib": 11.295 + }, + { + "arm": "mlx-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.337, + "max_temp_c": 49.126, + "max_fan_rpm": 2489.0 + }, + { + "t": 1.03, + "available_gib": 11.267, + "max_temp_c": 48.82, + "max_fan_rpm": 2489.0 + }, + { + "t": 2.04, + "available_gib": 10.157, + "max_temp_c": 48.16, + "max_fan_rpm": 2498.0 + }, + { + "t": 3.06, + "available_gib": 9.845, + "max_temp_c": 47.666, + "max_fan_rpm": 2506.0 + }, + { + "t": 4.07, + "available_gib": 9.761, + "max_temp_c": 48.453, + "max_fan_rpm": 2511.0 + }, + { + "t": 5.09, + "available_gib": 9.654, + "max_temp_c": 48.006, + "max_fan_rpm": 2481.0 + }, + { + "t": 6.1, + "available_gib": 9.686, + "max_temp_c": 47.646, + "max_fan_rpm": 2498.0 + } + ], + "log_tail": "", + "ready_s": 4.724443837003491, + "ttft_s": 0.45086577600159217, + "total_s": 1.1251632529965718, + "completion_tokens": 32, + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 45.973774272672834, + "min_available_gib": 9.654, + "peak_temp_c": 49.126, + "round": 2, + "admission_available_gib": 11.337 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 11.39, + "max_temp_c": 48.473, + "max_fan_rpm": 2510.0 + }, + { + "t": 1.03, + "available_gib": 11.332, + "max_temp_c": 46.793, + "max_fan_rpm": 2506.0 + }, + { + "t": 2.04, + "available_gib": 11.285, + "max_temp_c": 48.18, + "max_fan_rpm": 2502.0 + }, + { + "t": 3.05, + "available_gib": 9.954, + "max_temp_c": 49.453, + "max_fan_rpm": 2511.0 + }, + { + "t": 4.07, + "available_gib": 9.751, + "max_temp_c": 48.82, + "max_fan_rpm": 2485.0 + }, + { + "t": 5.1, + "available_gib": 9.722, + "max_temp_c": 48.18, + "max_fan_rpm": 2485.0 + }, + { + "t": 6.12, + "available_gib": 9.726, + "max_temp_c": 48.646, + "max_fan_rpm": 2506.0 + }, + { + "t": 7.14, + "available_gib": 9.527, + "max_temp_c": 48.633, + "max_fan_rpm": 2532.0 + }, + { + "t": 8.17, + "available_gib": 9.355, + "max_temp_c": 49.16, + "max_fan_rpm": 2498.0 + }, + { + "t": 9.18, + "available_gib": 9.045, + "max_temp_c": 47.826, + "max_fan_rpm": 2510.0 + } + ], + "log_tail": "irst chunk arrived, elapsed=0.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] post-first-chunk keepalive (R15 #291), elapsed=0.0s\nINFO:rapid_mlx.scheduler:[schedule] request=chatcmpl-492 uid=2 prompt_tokens=27 tokens_to_prefill=1, 26 cached max_tokens=32 running=1 waiting=0\nINFO:rapid_mlx.scheduler:[prompt_cache_save] request=chatcmpl-492 prompt_tokens=27 store_time=0.000s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-492 first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-492 tokens=59 (27 prompt + 32 output) stored=True time=0.000s cache_entries=5 cache_mem=138MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-492 finished normally, 32 tokens in 0.8s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-492 cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 0.82s (39.1 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe7b6ff160 [rapid-mlx-infer] (most recent call first):\n File \"/usr/lib/python3.14/threading.py\", line 369 in wait\n File \"/usr/lib/python3.14/queue.py\", line 199 in get\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/telemetry/inference.py\", line 44 in _worker_main\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nThread 0x0000fffed632b160 [mlx-step_0] (most recent call first):\n File \"/usr/lib/python3.14/concurrent/futures/thread.py\", line 116 in _worker\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nCurrent thread 0x0000fffef42687a0 [python] (most recent call first):\n Garbage-collecting\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_signal_observability.py\", line 694 in _on_signal\n File \"/usr/lib/python3.14/_weakrefset.py\", line 15 in _remove\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/routes/chat.py\", line 8898 in stream_chat_completion\n File \"/usr/lib/python3.14/asyncio/events.py\", line 94 in _run\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 2057 in _run_once\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 677 in run_forever\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 706 in run_until_complete\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 127 in run\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 204 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-python/uvicorn/server.py\", line 86 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 258 in _run_server\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 285 in run_uvicorn\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4758 in main\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 3750 in wrapped\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4776 in \n File \"\", line 88 in _run_code\n File \"\", line 198 in _run_module_as_main\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=1.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=1.0s\nINFO: Shutting down\nINFO: Waiting for application shutdown.\nINFO:__main__:[lifespan] Prefix-cache auto-save disabled with auto-load by RAPID_MLX_PREFIX_CACHE_AUTOLOAD\nINFO:rapid_mlx.engine_core:Engine stopped\nINFO:rapid_mlx.scheduler:Deep reset completed - all caches cleared\nINFO:rapid_mlx.engine.batched:BatchedEngine stopped\nINFO:__main__:Engine stopped\nINFO: Application shutdown complete.\nINFO: Finished server process [1577055]\n", + "ready_s": 9.195346719003282, + "ttft_s": 0.20086386400362244, + "total_s": 0.9623619789999793, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 40.70922749447424, + "min_available_gib": 9.045, + "peak_temp_c": 49.453, + "round": 2, + "admission_available_gib": 11.39 + }, + { + "arm": "tensorfold", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.146, + "max_temp_c": 47.353, + "max_fan_rpm": 2510.0 + }, + { + "t": 1.01, + "available_gib": 9.925, + "max_temp_c": 47.94, + "max_fan_rpm": 2511.0 + }, + { + "t": 2.04, + "available_gib": 9.915, + "max_temp_c": 48.986, + "max_fan_rpm": 2480.0 + }, + { + "t": 3.07, + "available_gib": 9.911, + "max_temp_c": 49.473, + "max_fan_rpm": 2506.0 + }, + { + "t": 4.07, + "available_gib": 9.917, + "max_temp_c": 48.18, + "max_fan_rpm": 2510.0 + }, + { + "t": 5.08, + "available_gib": 9.889, + "max_temp_c": 47.3, + "max_fan_rpm": 2497.0 + }, + { + "t": 6.09, + "available_gib": 9.886, + "max_temp_c": 47.693, + "max_fan_rpm": 2480.0 + }, + { + "t": 7.12, + "available_gib": 9.889, + "max_temp_c": 48.006, + "max_fan_rpm": 2514.0 + }, + { + "t": 8.13, + "available_gib": 9.917, + "max_temp_c": 48.473, + "max_fan_rpm": 2489.0 + }, + { + "t": 9.14, + "available_gib": 9.901, + "max_temp_c": 48.786, + "max_fan_rpm": 2506.0 + }, + { + "t": 10.15, + "available_gib": 9.903, + "max_temp_c": 48.82, + "max_fan_rpm": 2502.0 + }, + { + "t": 11.17, + "available_gib": 9.898, + "max_temp_c": 48.16, + "max_fan_rpm": 2498.0 + }, + { + "t": 12.19, + "available_gib": 9.91, + "max_temp_c": 48.453, + "max_fan_rpm": 2510.0 + }, + { + "t": 13.2, + "available_gib": 9.885, + "max_temp_c": 48.646, + "max_fan_rpm": 2497.0 + }, + { + "t": 14.24, + "available_gib": 9.888, + "max_temp_c": 48.633, + "max_fan_rpm": 2497.0 + }, + { + "t": 15.24, + "available_gib": 9.906, + "max_temp_c": 48.473, + "max_fan_rpm": 2489.0 + }, + { + "t": 16.25, + "available_gib": 9.88, + "max_temp_c": 48.646, + "max_fan_rpm": 2510.0 + }, + { + "t": 17.27, + "available_gib": 9.872, + "max_temp_c": 48.3, + "max_fan_rpm": 2510.0 + }, + { + "t": 18.28, + "available_gib": 9.868, + "max_temp_c": 48.14, + "max_fan_rpm": 2502.0 + }, + { + "t": 19.29, + "available_gib": 9.898, + "max_temp_c": 48.3, + "max_fan_rpm": 2497.0 + }, + { + "t": 20.3, + "available_gib": 9.914, + "max_temp_c": 48.12, + "max_fan_rpm": 2510.0 + }, + { + "t": 21.32, + "available_gib": 9.927, + "max_temp_c": 48.513, + "max_fan_rpm": 2460.0 + }, + { + "t": 22.33, + "available_gib": 9.927, + "max_temp_c": 48.986, + "max_fan_rpm": 2515.0 + }, + { + "t": 23.34, + "available_gib": 9.947, + "max_temp_c": 48.526, + "max_fan_rpm": 2515.0 + }, + { + "t": 24.34, + "available_gib": 9.937, + "max_temp_c": 48.766, + "max_fan_rpm": 2511.0 + }, + { + "t": 25.36, + "available_gib": 9.937, + "max_temp_c": 48.96, + "max_fan_rpm": 2460.0 + }, + { + "t": 26.39, + "available_gib": 9.957, + "max_temp_c": 48.633, + "max_fan_rpm": 2510.0 + }, + { + "t": 27.4, + "available_gib": 9.954, + "max_temp_c": 49.253, + "max_fan_rpm": 2514.0 + } + ], + "log_tail": "[tensorfold] prompt chunks of up to 32 tokens, cut at replies 256+ tokens apart\nwarning: libtfgrammar.so is required for structured output and required tool calls (HTTP 400 when missing); restore the matching release archive's lib/ directory or run zig build grammar -Dxgrammar=DIR; prepare DIR with git clone --branch v0.2.8 --recurse-submodules https://github.com/mlc-ai/xgrammar\n[tensorfold] serving qwen35-2b at http://127.0.0.1:42769/v1 (sampling: greedy; drafts: on; context: 1024; loaded in 0.5s)\n[tensorfold] 127.0.0.1 \"GET /health HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"GET /v1/models HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-e3777fc4ce4d5e709cddbe161277bd10 prompt=27 cached=0 thinking=False effort=none tokens=32 sha=778f678f6c4f finish=length rounds=31 accepted=0/0 ttft=1.992 decode=11.552 elapsed=13.544 queued=0.000 tok/s=2.7\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-4e0daeedf8b040aeea9b86626f95d2b5 prompt=27 cached=0 thinking=False effort=none tokens=32 sha=778f678f6c4f finish=length rounds=31 accepted=0/0 ttft=1.928 decode=11.291 elapsed=13.219 queued=0.000 tok/s=2.7\n[tensorfold] shutting down (SIGTERM): draining: new requests get 503; 0 request(s) in progress may finish within 20.0 s\n[tensorfold] shutting down: drained\n[tensorfold] shutting down: stopped\n", + "ready_s": 14.549115567999252, + "ttft_s": 1.9289619990013307, + "total_s": 13.219827700995666, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "served_model": "qwen35-2b", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 2.7455822093893465, + "min_available_gib": 9.868, + "peak_temp_c": 49.473, + "round": 2, + "admission_available_gib": 11.139 + }, + { + "arm": "mlx-5k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.308, + "max_temp_c": 48.433, + "max_fan_rpm": 2506.0 + }, + { + "t": 1.03, + "available_gib": 10.575, + "max_temp_c": 49.426, + "max_fan_rpm": 2506.0 + }, + { + "t": 2.04, + "available_gib": 9.887, + "max_temp_c": 48.766, + "max_fan_rpm": 2511.0 + }, + { + "t": 3.06, + "available_gib": 9.842, + "max_temp_c": 48.833, + "max_fan_rpm": 2472.0 + }, + { + "t": 4.07, + "available_gib": 9.797, + "max_temp_c": 48.3, + "max_fan_rpm": 2510.0 + }, + { + "t": 5.09, + "available_gib": 9.798, + "max_temp_c": 48.433, + "max_fan_rpm": 2497.0 + } + ], + "log_tail": "", + "ready_s": 4.2257363030003035, + "ttft_s": 0.5313495380032691, + "total_s": 1.4577968860030524, + "completion_tokens": 32, + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 33.461156823352745, + "min_available_gib": 9.797, + "peak_temp_c": 49.426, + "round": 2, + "admission_available_gib": 11.308 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 11.212, + "max_temp_c": 49.286, + "max_fan_rpm": 2510.0 + }, + { + "t": 1.03, + "available_gib": 11.124, + "max_temp_c": 49.44, + "max_fan_rpm": 2497.0 + }, + { + "t": 2.04, + "available_gib": 10.857, + "max_temp_c": 48.453, + "max_fan_rpm": 2510.0 + }, + { + "t": 3.06, + "available_gib": 9.74, + "max_temp_c": 48.633, + "max_fan_rpm": 2493.0 + }, + { + "t": 4.07, + "available_gib": 9.637, + "max_temp_c": 49.146, + "max_fan_rpm": 2489.0 + }, + { + "t": 5.08, + "available_gib": 9.583, + "max_temp_c": 47.94, + "max_fan_rpm": 2510.0 + }, + { + "t": 6.09, + "available_gib": 9.608, + "max_temp_c": 48.926, + "max_fan_rpm": 2506.0 + }, + { + "t": 7.11, + "available_gib": 9.345, + "max_temp_c": 48.453, + "max_fan_rpm": 2497.0 + }, + { + "t": 8.12, + "available_gib": 9.023, + "max_temp_c": 48.766, + "max_fan_rpm": 2497.0 + }, + { + "t": 9.15, + "available_gib": 8.631, + "max_temp_c": 48.766, + "max_fan_rpm": 2484.0 + } + ], + "log_tail": "1856fca1\",\"object\":\"chat.completion.chunk\",\"created\":1793183067,\"model\":\"/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\",\"choices\":[{\"index\":0,\"delta\":{\"\nINFO:rapid_mlx.service.helpers:[disconnect_guard] first chunk arrived, elapsed=0.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] post-first-chunk keepalive (R15 #291), elapsed=0.0s\nINFO:rapid_mlx.scheduler:[schedule] request=chatcmpl-dbc uid=2 prompt_tokens=27 tokens_to_prefill=1, 26 cached max_tokens=32 running=1 waiting=0\nINFO:rapid_mlx.scheduler:[prompt_cache_save] request=chatcmpl-dbc prompt_tokens=27 store_time=0.000s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-dbc first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-dbc tokens=59 (27 prompt + 32 output) stored=True time=0.000s cache_entries=5 cache_mem=138MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-dbc finished normally, 32 tokens in 0.8s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-dbc cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 0.78s (40.8 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000ffff33fff160 [rapid-mlx-infer] (most recent call first):\n File \"/usr/lib/python3.14/threading.py\", line 369 in wait\n File \"/usr/lib/python3.14/queue.py\", line 199 in get\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/telemetry/inference.py\", line 44 in _worker_main\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nThread 0x0000ffff9691b160 [mlx-step_0] (most recent call first):\n File \"/usr/lib/python3.14/concurrent/futures/thread.py\", line 116 in _worker\n File \"/usr/lib/python3.14/threading.py\", line 1024 in run\n File \"/usr/lib/python3.14/threading.py\", line 1082 in _bootstrap_inner\n File \"/usr/lib/python3.14/threading.py\", line 1044 in _bootstrap\n\nCurrent thread 0x0000ffffb48f47a0 [python] (most recent call first):\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_signal_observability.py\", line 694 in _on_signal\n File \"/usr/lib/python3.14/selectors.py\", line 435 in select\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 2019 in _run_once\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 677 in run_forever\n File \"/usr/lib/python3.14/asyncio/base_events.py\", line 706 in run_until_complete\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 127 in run\n File \"/usr/lib/python3.14/asyncio/runners.py\", line 204 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-python/uvicorn/server.py\", line 86 in run\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 258 in _run_server\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/_uvicorn.py\", line 285 in run_uvicorn\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4758 in main\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 3750 in wrapped\n File \"/home/sdolbec/.cache/mseries-metal2vk/rapid-src/rapid_mlx/server.py\", line 4776 in \n File \"\", line 88 in _run_code\n File \"\", line 198 in _run_module_as_main\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=1.0s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=1.0s\nINFO: Shutting down\nINFO: Waiting for application shutdown.\nINFO:__main__:[lifespan] Prefix-cache auto-save disabled with auto-load by RAPID_MLX_PREFIX_CACHE_AUTOLOAD\nINFO:rapid_mlx.engine_core:Engine stopped\nINFO:rapid_mlx.scheduler:Deep reset completed - all caches cleared\nINFO:rapid_mlx.engine.batched:BatchedEngine stopped\nINFO:__main__:Engine stopped\nINFO: Application shutdown complete.\nINFO: Finished server process [1583235]\n", + "ready_s": 8.758055452999542, + "ttft_s": 0.18493327200121712, + "total_s": 0.9157615669973893, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 42.41762423848459, + "min_available_gib": 8.631, + "peak_temp_c": 49.44, + "round": 3, + "admission_available_gib": 11.212 + }, + { + "arm": "tensorfold", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 11.158, + "max_temp_c": 48.96, + "max_fan_rpm": 2515.0 + }, + { + "t": 1.03, + "available_gib": 9.899, + "max_temp_c": 48.473, + "max_fan_rpm": 2510.0 + }, + { + "t": 2.05, + "available_gib": 9.949, + "max_temp_c": 49.113, + "max_fan_rpm": 2489.0 + }, + { + "t": 3.06, + "available_gib": 9.956, + "max_temp_c": 48.913, + "max_fan_rpm": 2506.0 + }, + { + "t": 4.07, + "available_gib": 9.969, + "max_temp_c": 49.16, + "max_fan_rpm": 2528.0 + }, + { + "t": 5.09, + "available_gib": 9.985, + "max_temp_c": 48.766, + "max_fan_rpm": 2489.0 + }, + { + "t": 6.1, + "available_gib": 10.009, + "max_temp_c": 48.82, + "max_fan_rpm": 2510.0 + }, + { + "t": 7.11, + "available_gib": 10.0, + "max_temp_c": 48.033, + "max_fan_rpm": 2493.0 + }, + { + "t": 8.14, + "available_gib": 10.03, + "max_temp_c": 48.94, + "max_fan_rpm": 2489.0 + }, + { + "t": 9.15, + "available_gib": 10.013, + "max_temp_c": 49.266, + "max_fan_rpm": 2506.0 + }, + { + "t": 10.16, + "available_gib": 10.027, + "max_temp_c": 48.94, + "max_fan_rpm": 2497.0 + }, + { + "t": 11.18, + "available_gib": 10.018, + "max_temp_c": 49.113, + "max_fan_rpm": 2468.0 + }, + { + "t": 12.2, + "available_gib": 10.027, + "max_temp_c": 48.94, + "max_fan_rpm": 2510.0 + }, + { + "t": 13.21, + "available_gib": 10.034, + "max_temp_c": 48.14, + "max_fan_rpm": 2510.0 + }, + { + "t": 14.22, + "available_gib": 10.02, + "max_temp_c": 49.16, + "max_fan_rpm": 2489.0 + }, + { + "t": 15.23, + "available_gib": 10.0, + "max_temp_c": 48.8, + "max_fan_rpm": 2493.0 + }, + { + "t": 16.25, + "available_gib": 10.01, + "max_temp_c": 49.266, + "max_fan_rpm": 2510.0 + }, + { + "t": 17.28, + "available_gib": 10.012, + "max_temp_c": 48.94, + "max_fan_rpm": 2502.0 + }, + { + "t": 18.3, + "available_gib": 10.008, + "max_temp_c": 49.113, + "max_fan_rpm": 2506.0 + }, + { + "t": 19.31, + "available_gib": 10.02, + "max_temp_c": 48.633, + "max_fan_rpm": 2497.0 + }, + { + "t": 20.32, + "available_gib": 10.038, + "max_temp_c": 48.766, + "max_fan_rpm": 2510.0 + }, + { + "t": 21.35, + "available_gib": 10.039, + "max_temp_c": 49.413, + "max_fan_rpm": 2511.0 + }, + { + "t": 22.37, + "available_gib": 10.03, + "max_temp_c": 50.548, + "max_fan_rpm": 2510.0 + }, + { + "t": 23.38, + "available_gib": 10.035, + "max_temp_c": 48.926, + "max_fan_rpm": 2510.0 + }, + { + "t": 24.39, + "available_gib": 10.055, + "max_temp_c": 49.1, + "max_fan_rpm": 2498.0 + }, + { + "t": 25.4, + "available_gib": 10.056, + "max_temp_c": 49.253, + "max_fan_rpm": 2489.0 + }, + { + "t": 26.42, + "available_gib": 10.071, + "max_temp_c": 48.786, + "max_fan_rpm": 2510.0 + }, + { + "t": 27.44, + "available_gib": 10.069, + "max_temp_c": 49.606, + "max_fan_rpm": 2510.0 + }, + { + "t": 28.45, + "available_gib": 10.069, + "max_temp_c": 48.14, + "max_fan_rpm": 2514.0 + }, + { + "t": 29.47, + "available_gib": 10.063, + "max_temp_c": 48.926, + "max_fan_rpm": 2506.0 + }, + { + "t": 30.5, + "available_gib": 10.075, + "max_temp_c": 48.94, + "max_fan_rpm": 2459.0 + } + ], + "log_tail": "[tensorfold] prompt chunks of up to 32 tokens, cut at replies 256+ tokens apart\nwarning: libtfgrammar.so is required for structured output and required tool calls (HTTP 400 when missing); restore the matching release archive's lib/ directory or run zig build grammar -Dxgrammar=DIR; prepare DIR with git clone --branch v0.2.8 --recurse-submodules https://github.com/mlc-ai/xgrammar\n[tensorfold] serving qwen35-2b at http://127.0.0.1:50849/v1 (sampling: greedy; drafts: on; context: 1024; loaded in 0.5s)\n[tensorfold] 127.0.0.1 \"GET /health HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"GET /v1/models HTTP/1.1\" 200 -\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-b478aa4a42e25cb25e538e52203c024f prompt=27 cached=0 thinking=False effort=none tokens=32 sha=778f678f6c4f finish=length rounds=31 accepted=0/0 ttft=1.972 decode=12.664 elapsed=14.636 queued=0.000 tok/s=2.4\n[tensorfold] 127.0.0.1 \"POST /v1/chat/completions HTTP/1.1\" 200 -\n[tensorfold] done chatcmpl-53168e38f510b19205782519305d0ff0 prompt=27 cached=0 thinking=False effort=none tokens=32 sha=778f678f6c4f finish=length rounds=31 accepted=0/0 ttft=2.019 decode=13.257 elapsed=15.277 queued=0.003 tok/s=2.3\n[tensorfold] shutting down (SIGTERM): draining: new requests get 503; 0 request(s) in progress may finish within 20.0 s\n[tensorfold] shutting down: drained\n[tensorfold] shutting down: stopped\n", + "ready_s": 15.64994646699779, + "ttft_s": 2.0204737839958398, + "total_s": 15.278201920998981, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "served_model": "qwen35-2b", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 2.3382588388939034, + "min_available_gib": 9.899, + "peak_temp_c": 50.548, + "round": 3, + "admission_available_gib": 11.158 + }, + { + "arm": "mlx-5k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 11.381, + "max_temp_c": 49.453, + "max_fan_rpm": 2481.0 + }, + { + "t": 1.04, + "available_gib": 10.554, + "max_temp_c": 48.68, + "max_fan_rpm": 2514.0 + }, + { + "t": 2.05, + "available_gib": 9.939, + "max_temp_c": 48.453, + "max_fan_rpm": 2510.0 + }, + { + "t": 3.06, + "available_gib": 9.877, + "max_temp_c": 48.786, + "max_fan_rpm": 2510.0 + }, + { + "t": 4.07, + "available_gib": 9.807, + "max_temp_c": 49.266, + "max_fan_rpm": 2489.0 + }, + { + "t": 5.1, + "available_gib": 9.811, + "max_temp_c": 48.3, + "max_fan_rpm": 2484.0 + } + ], + "log_tail": "", + "ready_s": 4.145656061999034, + "ttft_s": 0.49830817200563615, + "total_s": 1.3572248039999977, + "completion_tokens": 32, + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 36.09197778371057, + "min_available_gib": 9.807, + "peak_temp_c": 49.453, + "round": 3, + "admission_available_gib": 11.381 + }, + { + "arm": "mlx-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 11.259, + "max_temp_c": 49.126, + "max_fan_rpm": 2497.0 + }, + { + "t": 1.03, + "available_gib": 10.424, + "max_temp_c": 49.453, + "max_fan_rpm": 2515.0 + }, + { + "t": 2.04, + "available_gib": 9.804, + "max_temp_c": 49.113, + "max_fan_rpm": 2506.0 + }, + { + "t": 3.05, + "available_gib": 9.755, + "max_temp_c": 48.646, + "max_fan_rpm": 2506.0 + }, + { + "t": 4.05, + "available_gib": 9.388, + "max_temp_c": 48.786, + "max_fan_rpm": 2489.0 + }, + { + "t": 5.07, + "available_gib": 9.358, + "max_temp_c": 48.786, + "max_fan_rpm": 2506.0 + } + ], + "log_tail": "", + "ready_s": 3.8934366410030634, + "ttft_s": 0.4636529519993928, + "total_s": 1.1081146340002306, + "completion_tokens": 32, + "text": "Sunlight travels through the atmosphere and gets refracted (bent) as it enters a raindrop.\nThe light then reflects off the back of the dro", + "text_sha256": "ffbf23cb27bb50106bf151750276ab30f61683b0bec1ceb077bab1d61844393e", + "decode_tps": 48.102161642497315, + "min_available_gib": 9.358, + "peak_temp_c": 49.453, + "round": 3, + "admission_available_gib": 11.259 + } + ], + "summary": { + "mlx-5k": { + "ok_runs": 3, + "median_ttft_s": 0.5082284520030953, + "median_total_s": 1.3688199559983332, + "median_decode_tps": 36.02173604559724, + "texts": [ + "ffbf23cb27bb" + ] + }, + "mlx-120k": { + "ok_runs": 3, + "median_ttft_s": 0.4636529519993928, + "median_total_s": 1.1251632529965718, + "median_decode_tps": 47.18883800082011, + "texts": [ + "ffbf23cb27bb" + ] + }, + "rapid-120k": { + "ok_runs": 3, + "median_ttft_s": 0.18697444399731467, + "median_total_s": 0.9157615669973893, + "median_decode_tps": 42.41762423848459, + "texts": [ + "ffbf23cb27bb" + ] + }, + "tensorfold": { + "ok_runs": 3, + "median_ttft_s": 1.9998081770027056, + "median_total_s": 14.91643883100187, + "median_decode_tps": 2.400006691404618, + "texts": [ + "ffbf23cb27bb" + ] + } + } +} diff --git a/mseries/local-ai/scoreboard-notes.json b/mseries/local-ai/scoreboard-notes.json new file mode 100644 index 00000000..b2433ede --- /dev/null +++ b/mseries/local-ai/scoreboard-notes.json @@ -0,0 +1,50 @@ +{ + "_about": "Rows that are not produced by engine-compare.py or mlx-gate.py on this machine. Keep 'source' honest: 'reported' means someone else's number on other hardware, never ours.", + "rows": [ + { + "model": "Qwen3.8-2B (Q4_K_M GGUF, staged)", + "engine": "ANE (omarchy-ane staged decoder)", + "settings": "fp16 / int8 staged programs", + "decode_tok_s": "12-16", + "status": "reported: 13-inch M1 (H13), not run here", + "blocker": "Needs the compiled 38-program H13 bundle and stride-aware layout binding; six incompatible packed surfaces found locally", + "source": "UZU-AND-ANE-EVALUATION-2026-10-27.md; receipts/2026-10-27-ane-binding-handoff.md" + }, + { + "model": "Qwen3.8-2B (Q4_K_M GGUF, staged)", + "engine": "ANE (ane-linux-experiments decoder preflight)", + "settings": "38 ANE submissions per token", + "decode_tok_s": "8.23", + "status": "reported: M1, peak RSS 8.38 GB, not run here", + "blocker": "Memory: does not fit beside the 6 GiB desktop reserve on our 32 GB M1 Pro today", + "source": "receipts/2026-10-27-ane-qwen-preflight.md" + }, + { + "model": "Parakeet TDT (dictation encoder)", + "engine": "ANE (whole encoder)", + "settings": "CPU-cluster boost held", + "decode_tok_s": "138 ms/encode (GPU 113 ms)", + "status": "reported: 13-inch M1, not run here", + "blocker": "Worth it for CPU and power, not speed", + "source": "ane-linux-experiments README; UZU-AND-ANE-EVALUATION-2026-10-27.md" + }, + { + "model": "Qwen3.5-2B MLX 4-bit", + "engine": "TensorFold Vulkan + submit batching", + "settings": "unpublished follow-up to PR 1517", + "decode_tok_s": "~10.6 (M1 Max), ~6.9 (M1)", + "status": "reported upstream, code not public", + "blocker": "Watched in people-watch/branch-watch; re-run engine-compare when it lands", + "source": "ashhart/TensorFold issue 1420" + }, + { + "model": "Qwen3.5 0.8B (Mirai format)", + "engine": "uzu (CPU backend)", + "settings": "backend-cpu, stable Rust", + "decode_tok_s": "0.36", + "status": "measured here 2026-10-27", + "blocker": "No Linux GPU backend; Metal only", + "source": "UZU-AND-ANE-EVALUATION-2026-10-27.md" + } + ] +} diff --git a/mseries/local-ai/scoreboard.py b/mseries/local-ai/scoreboard.py new file mode 100644 index 00000000..eed26b5e --- /dev/null +++ b/mseries/local-ai/scoreboard.py @@ -0,0 +1,184 @@ +#!/usr/bin/env python3 +"""Rebuild the local AI engine scoreboard from committed receipts. + +Reads receipts/*engine-compare-*.json (engine-compare.py), receipts/*mlx-gate-sweep*.json +(mlx-gate.py) and scoreboard-notes.json (rows measured elsewhere or reported by others), +then writes engine-scoreboard.csv and ENGINE-SCOREBOARD.md next to this script. +The newest receipt wins for each (model, engine, length). Run it after every new receipt. +""" +import csv, json, statistics +from pathlib import Path + +HERE = Path(__file__).resolve().parent +RECEIPTS = HERE / 'receipts' +ARM_SETTINGS = { + 'mlx-5k': ('MLX (omarchy-mlx, in-process)', 'defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)', 'baseline'), + 'mlx-120k': ('MLX (omarchy-mlx, in-process)', 'MLX_OMARCHY_BATCH_WORK=120000', 'work120k'), + 'rapid-120k': ('Rapid-MLX 1d09cdb (HTTP server)', 'MLX_OMARCHY_BATCH_WORK=120000', None), + 'tensorfold': ('TensorFold Vulkan PR 1517 (HTTP server)', 'serve --backend vulkan --context 1024 --no-thinking', None), +} +MODEL_NAMES = {'qwen2b': 'Qwen3.5-2B MLX 4-bit', 'qwen4b': 'Qwen3.5-4B MLX 4-bit', 'lfm3': 'LFM3-1.7B MLX 8-bit'} +FIELDS = ['best', 'model', 'engine', 'settings', 'tokens', 'decode_tok_s', 'ttft_s', 'total_s', 'runs', + 'same_output', 'gate', 'kernel', 'driver', 'date', 'status', 'source'] + + +def med(xs): + xs = [x for x in xs if x is not None] + return statistics.median(xs) if xs else None + + +def fmt(x, nd=2): + return '' if x is None else (f'{x:.{nd}f}' if isinstance(x, float) else str(x)) + + +def gate_results(): + """config name -> (gate verdict, receipt) for each model, newest sweep wins.""" + out = {} + for f in sorted(RECEIPTS.glob('*mlx-gate-sweep*.json')): + r = json.loads(f.read_text()) + key = 'qwen2b' if '2B' in r.get('model', '') else r.get('model_key', '?') + for name, row in r.get('configs', {}).items(): + out[(key, name)] = (row.get('gate'), f.name) + return out + + +def measured_rows(): + gates = gate_results() + latest = {} + for f in sorted(RECEIPTS.glob('*engine-compare-*.json')): + r = json.loads(f.read_text()) + if r.get('status') != 'complete': + continue + model = r.get('model_key', 'qwen2b') + for arm in r['arms']: + latest[(model, arm, r['max_tokens'])] = (f, r) + rows = [] + for (model, arm, tokens), (f, r) in sorted(latest.items()): + ok = [x for x in r['runs'] if x['arm'] == arm and 'text' in x and not x.get('error')] + if not ok: + continue + texts = {x['text_sha256'] for x in ok} + base = {x['text_sha256'] for x in r['runs'] if x['arm'] == 'mlx-5k' and 'text_sha256' in x} + if arm == 'mlx-5k' or not base: + same = 'reference' if arm == 'mlx-5k' else 'n/a' + elif texts == base: + same = 'yes' + else: + mt = next(x['text'] for x in r['runs'] if x['arm'] == 'mlx-5k' and 'text' in x) + at = ok[0]['text'] + i = next((i for i, (u, v) in enumerate(zip(mt, at)) if u != v), min(len(mt), len(at))) + same = f'no: diverges after {i} of {len(mt)} chars' + engine, settings, gate_key = ARM_SETTINGS[arm] + gate = gates.get((model, gate_key), (None, None))[0] if gate_key else None + rows.append({ + 'model': MODEL_NAMES.get(model, model), 'engine': engine, 'settings': settings, 'tokens': tokens, + 'decode_tok_s': med([x.get('decode_tps') for x in ok]), 'ttft_s': med([x['ttft_s'] for x in ok]), + 'total_s': med([x['total_s'] for x in ok]), 'runs': len(ok), + 'same_output': same if len(texts) == 1 else f'{same}; {len(texts)} variants across its own runs', + 'gate': gate or 'not gated', 'kernel': r.get('kernel', ''), + 'driver': r.get('driver', 'Honeykrisp Mesa 7faf04c065'), 'date': f.name[:10], + 'status': 'measured here', 'source': f'receipts/{f.name}', '_model': model}) + # Most functional per model and length: fastest decode among rows whose output matched + # and whose gate did not fail. + for key in {(x['_model'], x['tokens']) for x in rows}: + group = [x for x in rows if (x['_model'], x['tokens']) == key and x['gate'] != 'FAIL' + and x['same_output'] in ('yes', 'reference') and x['decode_tok_s']] + if group: + max(group, key=lambda x: x['decode_tok_s'])['best'] = '★' + return rows + + +def chart(rows): + """Plain SVG bar chart of decode tok/s, one block per (model, tokens); no plotting deps.""" + groups = {} + for x in sorted(rows, key=lambda x: (x['_model'], x['tokens'], -(x['decode_tok_s'] or 0))): + groups.setdefault((x['model'], x['tokens']), []).append(x) + top = max((x['decode_tok_s'] or 0 for x in rows), default=1) + w, label_w, bar_w, row_h = 760, 300, 380, 22 + y = 30; parts = [] + for (model, tokens), xs in groups.items(): + parts.append(f'{model}, {tokens} tokens'); y += 10 + for x in xs: + v = x['decode_tok_s'] or 0; bw = max(2, bar_w * v / top) + cls = 'best' if x.get('best') else 'bar' + name = x['engine'].split(' (')[0] + (' tuned' if '120000' in x['settings'] else ' default' if 'defaults' in x['settings'] else '') + parts.append(f'{name}' + f'' + f'{v:.1f} tok/s{" ★" if x.get("best") else ""}') + y += row_h + y += 18 + style = ('') + return (f'' + f'Decode speed by engine on Apple M1 Pro{style}{"".join(parts)}\n') + + +def main(): + rows = measured_rows() + notes = json.loads((HERE / 'scoreboard-notes.json').read_text())['rows'] + with (HERE / 'engine-scoreboard.csv').open('w', newline='') as fh: + w = csv.DictWriter(fh, fieldnames=FIELDS + ['blocker'], extrasaction='ignore') + w.writeheader() + for x in rows: + w.writerow({k: (fmt(v) if isinstance(v, float) else v) for k, v in x.items()}) + for n in notes: + w.writerow({**n, 'best': ''}) + md = ['# Local AI engine scoreboard', '', + 'One table for every engine we run or watch on the M1 Pro. ★ marks the most functional setup per model and ' + 'length: the fastest decode whose output matched every other engine and whose correctness gate did not fail. ' + 'Regenerate with `python3 mseries/local-ai/scoreboard.py` after adding a receipt. Tracked in the ' + '"Local AI engine scoreboard" issue.', '', + '![Decode speed by engine](engine-scoreboard.svg)', '', + '## Measured on this machine', '', + '| ★ | Model | Engine | Settings | Tokens | Decode tok/s | TTFT s | Total s | Runs | Same output as MLX default | Gate | Kernel | Driver | Date | Receipt |', + '|---|---|---|---|---:|---:|---:|---:|---:|---|---|---|---|---|---|'] + for x in sorted(rows, key=lambda x: (x['_model'], x['tokens'], -(x['decode_tok_s'] or 0))): + b = '**' if x.get('best') else '' + md.append(f"| {x.get('best', '')} | {x['model']} | {b}{x['engine']}{b} | `{x['settings']}` | {x['tokens']} | " + f"{b}{fmt(x['decode_tok_s'])}{b} | {fmt(x['ttft_s'])} | {fmt(x['total_s'])} | {x['runs']} | {x['same_output']} | " + f"{x['gate']} | `{x['kernel']}` | {x['driver']} | {x['date']} | [{Path(x['source']).name}]({x['source'].replace('receipts/', 'receipts/')}) |") + md += ['', '## Watched or reported elsewhere (not comparable to the table above)', '', + '| Model | Engine | Settings | Decode | Status | Blocker | Source |', '|---|---|---|---|---|---|---|'] + for n in notes: + md.append(f"| {n['model']} | {n['engine']} | {n['settings']} | {n['decode_tok_s']} | {n['status']} | {n['blocker']} | {n['source']} |") + md += ['', '## How we track upstream', '', + 'The engines above move fast, so this page is a living record on `dev`, not a one-off report.', '', + '1. **Watch.** `people-watch.json` and `branch-watch.json` list the people and repos we follow ' + '(Joshua Warren\'s omarchy-mlx, metal2vk, omarchy-cluster, ane-linux-experiments, TensorFold and its fork). ' + '`github-watch.py` runs every 6 hours (`.github/workflows/upstream-watch.yml`) and keeps one ' + '"Upstream watch" issue listing unacknowledged pushes, branches and PRs.', + '2. **Triage.** For each flagged change, decide whether it can affect a row here (new engine, runtime pin bump, ' + 'kernel or driver change). Record that decision on the scoreboard tracking issue.', + '3. **Re-test.** Build it in a private prefix (never system-wide), run its own gates first ' + '(`tensorfold-vulkan.sh test` / `gpu`, `mlx-gate.py sweep`), then `engine-compare.py` with the same ' + 'models, prompts and guards.', + '4. **Publish.** Commit the new receipt JSON, run `scoreboard.py`, and open a PR to `dev` with the regenerated ' + 'CSV, SVG and this page. Rows are replaced by the newest receipt; old receipts stay for history.', + '5. **Adopt.** A setting becomes our default only when it holds ★ *and* passes the MLX gate; ' + 'change defaults in a separate PR.', '', + 'Rules: everything is documented in our own repo only; we do not post to upstream projects. ' + 'Rows under "reported elsewhere" are other people\'s numbers on other hardware and are never ranked against ours.', '', + '## Reproduce', '', + '- Kernel `7.2.11-elementary-aurora72-wip4` (techmore/ElementaryOS_MSeries-Kernel), Apple M1 Pro 32 GB.', + '- GPU driver: private Honeykrisp ICD shipped by omarchy-mlx, selected per process only: ' + '`VK_DRIVER_FILES=$HOME/.local/share/mlx-omarchy/vulkan/honeykrisp_icd.aarch64.json`. Desktop Mesa is untouched.', + '- Guards on every run: shared worker lock, 6 GiB desktop memory reserve, 80 °C limit, one engine at a time.', + '- Same prompt, greedy decoding, no thinking; each run is a fresh process with one warmup, three rotated rounds.', + '- MLX rows time in-process; server rows time a streamed loopback HTTP request. Compare like with like.', '', + '```bash', + 'cd mseries/local-ai', + 'python3 engine-compare.py --model qwen2b # 32 tokens; add --long for 256', + 'python3 engine-compare.py --model qwen4b --admission-wait-seconds 1800', + 'python3 engine-compare.py --model lfm3', + 'python3 mlx-gate.py reference && python3 mlx-gate.py sweep', + './tensorfold-vulkan.sh build && ./tensorfold-vulkan.sh gpu', + 'python3 scoreboard.py', + '```', ''] + (HERE / 'engine-scoreboard.svg').write_text(chart(rows)) + (HERE / 'ENGINE-SCOREBOARD.md').write_text('\n'.join(md)) + print(f'{len(rows)} measured rows, {len(notes)} noted rows') + + +if __name__ == '__main__': + main() diff --git a/mseries/local-ai/tensorfold-vulkan.sh b/mseries/local-ai/tensorfold-vulkan.sh new file mode 100755 index 00000000..c0c4ff3c --- /dev/null +++ b/mseries/local-ai/tensorfold-vulkan.sh @@ -0,0 +1,106 @@ +#!/usr/bin/env bash +# Build the opt-in TensorFold native Vulkan backend (ashhart/TensorFold PR 1517) +# in a private prefix, against our private Honeykrisp ICD. Nothing is installed +# system-wide; the desktop Mesa, the kernel and the MLX workers are untouched. +# +# tensorfold-vulkan.sh build fetch the pinned source + Zig, build server and probes +# tensorfold-vulkan.sh test GPU-free host suites (no device work) +# tensorfold-vulkan.sh gpu stage 1-5 GPU operator gates on the M1 Pro (private ICD only) +# +# Kernel: no change needed. The backend talks to Honeykrisp through the existing +# Asahi DRM UAPI; it requires a Vulkan 1.3 device and wip4's Honeykrisp reports 1.4. +set -euo pipefail + +# Pinned inputs. Bump together and re-run all three modes. +TF_REPO=https://github.com/ashhart/TensorFold.git +TF_REF=pull/1517/head +TF_REV=670902196c47f3e70e3f56ab933805713be31aa8 +ZIG_VERSION=0.17.0 +ZIG_URL=https://ziglang.org/download/0.17.0/zig-aarch64-linux-0.17.0.tar.xz +ZIG_SHA256=9e8d11661d4ae3bd57702a3832781e23ad151dde5798e16a5ccd503f65234ff8 + +# Never /tmp: it is RAM-backed on this machine. +ROOT=${MSERIES_TENSORFOLD_ROOT:-$HOME/.cache/mseries-tensorfold} +SRC=$ROOT/src +ZIG=$ROOT/zig/zig +ICD=${MSERIES_HK_ICD:-$HOME/.local/share/mlx-omarchy/vulkan/honeykrisp_icd.aarch64.json} +export ZIG_GLOBAL_CACHE_DIR=$ROOT/zig-global ZIG_LOCAL_CACHE_DIR=$ROOT/zig-local +MIN_FREE_GIB=5 + +check_disk() { + local free + free=$(df --output=avail -BG "$HOME" | tail -1 | tr -dc 0-9) + if (( free < MIN_FREE_GIB )); then + echo "refusing: ${free} GiB free under \$HOME, floor is ${MIN_FREE_GIB} GiB" >&2 + exit 1 + fi +} + +fetch() { + mkdir -p "$ROOT" + if [[ ! -x $ZIG ]] || [[ $("$ZIG" version) != "$ZIG_VERSION" ]]; then + curl -sSfL -o "$ROOT/zig.tar.xz" "$ZIG_URL" + echo "$ZIG_SHA256 $ROOT/zig.tar.xz" | sha256sum -c --quiet + rm -rf "$ROOT/zig" && mkdir -p "$ROOT/zig" + tar -xJf "$ROOT/zig.tar.xz" -C "$ROOT/zig" --strip-components=1 + rm "$ROOT/zig.tar.xz" + fi + [[ -d $SRC/.git ]] || git init -q "$SRC" + if [[ $(git -C "$SRC" rev-parse -q --verify HEAD 2>/dev/null) != "$TF_REV" ]]; then + git -C "$SRC" fetch -q --depth 1 "$TF_REPO" "$TF_REF" + git -C "$SRC" checkout -q --detach FETCH_HEAD + fi + local have + have=$(git -C "$SRC" rev-parse HEAD) + if [[ $have != "$TF_REV" ]]; then + echo "PR head moved: have $have, pinned $TF_REV; review the new commits, then bump TF_REV" >&2 + exit 1 + fi +} + +zb() { (cd "$SRC" && "$ZIG" build -Dvulkan=true -Doptimize=ReleaseSafe "$@"); } + +case ${1:-build} in +build) + check_disk; fetch + zb native-vulkan vulkan-model-probe-build vulkan-probe-build \ + stage1-gpu-build stage2-gpu-build stage3-gpu-build stage4-gpu-build stage5-gpu-build + echo "server: $SRC/zig-out/native/bin probes: $SRC/zig-out/bin" + ;; +test) + check_disk; fetch + # Zig 0.17 shows a passing test's stderr under a red "failed command:" header. + # Only "error:" lines, "'' failed" or a non-zero exit mean a failure. + if (cd "$SRC" && "$ZIG" build -Dvulkan=true --summary all \ + vulkan-host-test qwen35-model-host-test model-host-test); then + echo "HOST TESTS: PASS" + else + echo "HOST TESTS: FAIL" >&2; exit 1 + fi + ;; +gpu) + check_disk; fetch + [[ -f $ICD ]] || { echo "private Honeykrisp ICD not found: $ICD" >&2; exit 1; } + # Process-local driver selection only. HK_SYSMEM is deliberately left unset: + # Honeykrisp's default heap (half of RAM) keeps the 6 GiB desktop reserve. + export VK_DRIVER_FILES=$ICD + bin=$SRC/zig-out/bin + [[ -x $bin/tf-stage5-gpu ]] || { echo "run '$0 build' first" >&2; exit 1; } + # Honeykrisp reports VK_VENDOR_ID_MESA (0x10005), not Apple's PCI id 0x106b; + # pinning it refuses any other driver. Probes exit 0 pass, 1 fail, 2 usage, + # 124 fence timeout; every stage runs regardless. + failed=0 + for s in 1 2 3 4 5; do + echo "== stage $s" + rc=0; "$bin/tf-stage${s}-gpu" --vendor 0x10005 --timeout-ms 60000 || rc=$? + case $rc in + 0) echo "STAGE $s: PASS" ;; + 124) echo "STAGE $s: GPU TIMEOUT" >&2; failed=1 ;; + *) echo "STAGE $s: FAIL (exit $rc)" >&2; failed=1 ;; + esac + done + (( failed == 0 )) && echo "GPU GATES: PASS" || { echo "GPU GATES: FAIL" >&2; exit 1; } + ;; +*) + sed -n '2,10p' "$0"; exit 2 ;; +esac