diff --git a/mseries/OS9-HANDOFF.md b/mseries/OS9-HANDOFF.md index da87fb82..dbcab729 100644 --- a/mseries/OS9-HANDOFF.md +++ b/mseries/OS9-HANDOFF.md @@ -13482,3 +13482,33 @@ that revision. This PR updates the candidate links/status; it is not published until merge and a new successful Pages deployment. No host, boot, panel, kernel, audio or power state changed. Next: merge after required review/current-head checks, then verify Pages deployment and live bytes for the merged revision. + +## Local AI engines: scoreboard, gate and 45–80% faster decode — 2026-10-28 + +TensorFold PR 1517 (native Vulkan Qwen 2B) was ported as a pinned private-prefix build +(`mseries/local-ai/tensorfold-vulkan.sh`): host tests and 39/39 GPU operator gates pass on the +M1 Pro, but it decodes at 2.4–2.8 tok/s because each GPU op is submitted and waited on alone; +upstream's batching PR is not public. No kernel change was needed (wip4 already exposes +Honeykrisp Vulkan 1.4 and `/dev/accel/accel0`). PR 1526 is the first stacked slice (runtime + +Q4 projection + kernel contract); `tensorfold-vulkan.sh contract` runs it on G13S when wanted. + +Added `engine-compare.py` (MLX in-process, Rapid-MLX, mlx-omarchy-serve, TensorFold; Qwen 2B, +Qwen 4B, LFM3; optional concurrency), `mlx-gate.py` (TensorFold-style correctness gate against +a CPU float32 reference; omarchy-mlx's CPU backend lacks `mx.fast` rms_norm/rope/SDPA, so the +reference uses plain-op versions), `honeykrisp-candidate.sh` (side driver builds selected with +`MSERIES_HK_ICD`) and `scoreboard.py` → `ENGINE-SCOREBOARD.md` + CSV + SVG. Tracking issue #659 +holds triage; the watch lists cover joshuaswarren (user), TensorFold, coreglass, metal2vk, +omarchy-cluster, ane-linux-experiments and Generated-Computers/Locals. Documentation stays in +this repo; nothing is posted upstream. mlx-lm / omarchy-mlx steps follow upstream's own default +(still mlx-lm 0.31.3 on omarchy-mlx main). + +Adopted in #664 and installed here: Honeykrisp `7faf04c065` → `9323171c12` and a 120k MLX +submit budget (G13S has no upstream calibration row and fell back to 5000). The gate passes on +both drivers with identical RMSE; text is identical. Decode: Qwen 2B 36.0 → 56.4, Qwen 4B +18.6 → 27.0, LFM3 15.3 → 27.5 tok/s; llama.cpp +8%. Receipt and rollback: +`mseries/local-ai/receipts/2026-10-28-honeykrisp-9323-adoption.md`. + +Memory audit the same day: the LFM3 assistant kept ~3 GiB of GPU memory pinned after its idle +unload (fixed in #661: exit after unload, systemd restarts it); wingpanel restarts killed +panel-launched apps (fixed in #662: `KillMode=process`). Open: mlx-omarchy-serve (what the +everyday model runs) decodes well below in-process MLX — see the server rows on the scoreboard. diff --git a/mseries/local-ai/ENGINE-SCOREBOARD.md b/mseries/local-ai/ENGINE-SCOREBOARD.md index ddfc8128..309b9f60 100644 --- a/mseries/local-ai/ENGINE-SCOREBOARD.md +++ b/mseries/local-ai/ENGINE-SCOREBOARD.md @@ -13,19 +13,27 @@ One table for every engine we run or watch on the M1 Pro. ★ marks the most fun | | LFM3-1.7B MLX 8-bit | MLX (omarchy-mlx, in-process) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 16.90 | 0.39 | 2.23 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-lfm3-short.json](receipts/2026-10-28-engine-compare-lfm3-short.json) | | | LFM3-1.7B MLX 8-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 15.27 | 0.40 | 2.38 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-lfm3-short.json](receipts/2026-10-28-engine-compare-lfm3-short.json) | | ★ | Qwen3.5-2B MLX 4-bit | **MLX (omarchy-mlx, in-process)** | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | **56.39** | 0.45 | 1.00 | 3 | yes | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json) | +| | Qwen3.5-2B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 50.63 | 0.18 | 0.80 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json) | | | Qwen3.5-2B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 48.86 | 0.46 | 1.10 | 3 | reference | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json) | +| ★ | Qwen3.5-2B MLX 4-bit | **Rapid-MLX 1d09cdb (HTTP server)** | `MLX_OMARCHY_BATCH_WORK=120000 · 8 requests at once (decode = total tok/s)` | 32 | **48.14** | 1.92 | 5.32 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json) | | | 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 | PASS | `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 · 4 requests at once (decode = total tok/s)` | 32 | **43.46** | 1.14 | 2.94 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.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 | PASS | `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-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 33.07 | 0.63 | 1.57 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json) | +| | Qwen3.5-2B MLX 4-bit | mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000 · 4 requests at once (decode = total tok/s)` | 32 | 19.92 | 4.15 | 6.43 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json) | +| | Qwen3.5-2B MLX 4-bit | mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000 · 8 requests at once (decode = total tok/s)` | 32 | 19.84 | 8.07 | 12.90 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.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 | PASS | `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 | PASS | `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) | | ★ | Qwen3.5-4B MLX 4-bit | **MLX (omarchy-mlx, in-process)** | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | **27.01** | 0.64 | 1.78 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json) | +| | Qwen3.5-4B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 25.69 | 0.21 | 1.43 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json) | | | Qwen3.5-4B MLX 4-bit | MLX (omarchy-mlx, in-process) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 24.79 | 0.71 | 1.96 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short.json](receipts/2026-10-28-engine-compare-qwen4b-short.json) | | | Qwen3.5-4B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 23.44 | 0.24 | 1.56 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short.json](receipts/2026-10-28-engine-compare-qwen4b-short.json) | | | Qwen3.5-4B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 23.14 | 0.65 | 1.99 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json) | +| | Qwen3.5-4B MLX 4-bit | mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 19.06 | 0.89 | 2.52 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json) | | | Qwen3.5-4B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 18.55 | 0.73 | 2.38 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short.json](receipts/2026-10-28-engine-compare-qwen4b-short.json) | ## Watched or reported elsewhere (not comparable to the table above) diff --git a/mseries/local-ai/engine-compare.py b/mseries/local-ai/engine-compare.py index f8d923c0..4f9201cd 100755 --- a/mseries/local-ai/engine-compare.py +++ b/mseries/local-ai/engine-compare.py @@ -24,11 +24,11 @@ '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')), + HOME / '.local/share/mlx-omarchy/venv/bin/python', ('mlx-5k', 'mlx-120k', 'rapid-120k', 'serve-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')), + HOME / '.local/share/mlx-omarchy/venv/bin/python', ('mlx-5k', 'mlx-120k', 'rapid-120k', 'serve-120k')), 'lfm3': (HOME / '.cache/mseries-metal2vk/lfm3-8bit', '2b06cea98d75527c248a0b04383f7cf0a1c72fb4ed7b45096618fc4e59d015ad', 'LiquidAI/LFM3-1.7B-MLX-8bit@ee7667f3cfccb2a41725f91820531823fcabc6b7', 4.5, @@ -45,7 +45,9 @@ 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') +ARMS = ('mlx-5k', 'mlx-120k', 'rapid-120k', 'serve-120k', 'tensorfold') +SERVE = HOME / '.local/bin/mlx-omarchy-serve' # what model-worker.py runs for the everyday model +CONCURRENCY = 1 POLICY = {'reserve_gib': 6, 'max_fan_rpm': float('inf'), 'max_temp_c': 80} DEADLINE_S = 300 MODEL_NAME = 'qwen2b' @@ -124,7 +126,37 @@ def stream_chat(port, prompt_text, max_tokens, model): 'token_count_source': 'usage' if usage else 'stream deltas', 'text': text} +def concurrent_chat(port, prompt_text, max_tokens, model): + """CONCURRENCY streamed requests at once. Each gets its own prefix so no prompt cache + can serve one request from another; the aggregate is all tokens over the shared wall time.""" + results = [None] * CONCURRENCY + def one(i): + try: + results[i] = stream_chat(port, f'Request {i + 1} of {CONCURRENCY}. ' + prompt_text, max_tokens, model) + except Exception as exc: + results[i] = {'error': f'{type(exc).__name__}: {exc}'} + threads = [threading.Thread(target=one, args=(i,)) for i in range(CONCURRENCY)] + start = time.monotonic() + for t in threads: t.start() + for t in threads: t.join() + wall = time.monotonic() - start + bad = [r for r in results if not r or 'error' in r] + if bad: + raise RuntimeError(f'{len(bad)} of {CONCURRENCY} concurrent requests failed: {bad[0]}') + tokens = sum(r['completion_tokens'] for r in results) + per = sorted((r['completion_tokens'] - 1) / (r['total_s'] - r['ttft_s']) for r in results + if r['ttft_s'] is not None and r['total_s'] > r['ttft_s'] and r['completion_tokens'] > 1) + return {'concurrency': CONCURRENCY, 'wall_s': wall, 'aggregate_tok_s': tokens / wall, + 'per_request_decode_median': per[len(per) // 2] if per else None, + 'ttft_s': sorted(r['ttft_s'] for r in results)[len(results) // 2], 'total_s': wall, + 'completion_tokens': tokens, 'text': results[0]['text'], 'requests': results} + + def server_command(arm, port): + if arm == 'serve-120k': + gib = sum(f.stat().st_size for f in MODEL.glob('*.safetensors')) / GIB + return [str(SERVE), 'serve', str(MODEL), '--server', 'mlx-lm', '--context', '4096', + '--weights-gib', f'{gib:.2f}', '--host', '127.0.0.1', '--port', str(port), '--offline', '--yes'] 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'] @@ -166,16 +198,23 @@ def drive(): 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) + ready = False + for path in ('/health', '/healthz', '/v1/models'): + try: + with urllib.request.urlopen(f'http://127.0.0.1:{port}{path}', timeout=2): + ready = True; break + except (OSError, urllib.error.HTTPError): + pass + if ready: + break + 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) + if CONCURRENCY == 1: + outcome.update(stream_chat(port, prompt_text, max_tokens, model), served_model=model) + else: + outcome.update(concurrent_chat(port, prompt_text, max_tokens, model), served_model=model) except Exception as exc: outcome['error'] = f'{type(exc).__name__}: {exc}' @@ -215,7 +254,8 @@ def drive(): 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['decode_tps'] = (row['aggregate_tok_s'] if 'aggregate_tok_s' in row else + (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 @@ -247,16 +287,18 @@ def main(): 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('--concurrency', type=int, default=1, help='server arms only: requests at once') 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 + global MODEL_NAME, CONCURRENCY MODEL_NAME = a.model + CONCURRENCY = a.concurrency 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] + arms = [x for x in a.arms.split(',') if x and x in MODEL_ARMS and not (CONCURRENCY > 1 and x.startswith('mlx'))] 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) @@ -270,13 +312,14 @@ def main(): 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'}" - + ('' if DRIVER == '7faf04c065' else f'-hk{DRIVER}') + '.json') + + ('' if DRIVER == '7faf04c065' else f'-hk{DRIVER}') + (f'-c{CONCURRENCY}' if CONCURRENCY > 1 else '') + + ('' if tuple(arms) == tuple(x for x in MODEL_ARMS if x != 'serve-120k') else '-' + '+'.join(arms)) + '.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 ' + DRIVER, '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': []} + 'arms': arms, 'concurrency': CONCURRENCY, 'runs': []} try: with tempfile.TemporaryDirectory(prefix='engine-compare-', dir=HOME / '.cache') as tmp: for r in range(a.rounds): diff --git a/mseries/local-ai/engine-scoreboard.csv b/mseries/local-ai/engine-scoreboard.csv index 3ffea0ca..36ad73b4 100644 --- a/mseries/local-ai/engine-scoreboard.csv +++ b/mseries/local-ai/engine-scoreboard.csv @@ -10,7 +10,13 @@ best,model,engine,settings,tokens,decode_tok_s,ttft_s,total_s,runs,same_output,g ,Qwen3.5-2B MLX 4-bit,"MLX (omarchy-mlx, in-process)",defaults (MLX_OMARCHY_BATCH_WORK fallback 5000),32,48.86,0.46,1.10,3,reference,PASS,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12.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,PASS,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,32,50.63,0.18,0.80,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json, +★,Qwen3.5-2B MLX 4-bit,Rapid-MLX 1d09cdb (HTTP server),MLX_OMARCHY_BATCH_WORK=120000 · 4 requests at once (decode = total tok/s),32,43.46,1.14,2.94,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json, +★,Qwen3.5-2B MLX 4-bit,Rapid-MLX 1d09cdb (HTTP server),MLX_OMARCHY_BATCH_WORK=120000 · 8 requests at once (decode = total tok/s),32,48.14,1.92,5.32,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.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,"mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model)",MLX_OMARCHY_BATCH_WORK=120000,32,33.07,0.63,1.57,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json, +,Qwen3.5-2B MLX 4-bit,"mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model)",MLX_OMARCHY_BATCH_WORK=120000 · 4 requests at once (decode = total tok/s),32,19.92,4.15,6.43,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json, +,Qwen3.5-2B MLX 4-bit,"mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model)",MLX_OMARCHY_BATCH_WORK=120000 · 8 requests at once (decode = total tok/s),32,19.84,8.07,12.90,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.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.5-4B MLX 4-bit,"MLX (omarchy-mlx, in-process)",MLX_OMARCHY_BATCH_WORK=120000,32,24.79,0.71,1.96,3,yes,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen4b-short.json, @@ -18,6 +24,8 @@ best,model,engine,settings,tokens,decode_tok_s,ttft_s,total_s,runs,same_output,g ,Qwen3.5-4B MLX 4-bit,"MLX (omarchy-mlx, in-process)",defaults (MLX_OMARCHY_BATCH_WORK fallback 5000),32,18.55,0.73,2.38,3,reference,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen4b-short.json, ,Qwen3.5-4B MLX 4-bit,"MLX (omarchy-mlx, in-process)",defaults (MLX_OMARCHY_BATCH_WORK fallback 5000),32,23.14,0.65,1.99,3,reference,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json, ,Qwen3.5-4B MLX 4-bit,Rapid-MLX 1d09cdb (HTTP server),MLX_OMARCHY_BATCH_WORK=120000,32,23.44,0.24,1.56,3,yes,not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 7faf04c065,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen4b-short.json, +,Qwen3.5-4B MLX 4-bit,Rapid-MLX 1d09cdb (HTTP server),MLX_OMARCHY_BATCH_WORK=120000,32,25.69,0.21,1.43,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json, +,Qwen3.5-4B MLX 4-bit,"mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model)",MLX_OMARCHY_BATCH_WORK=120000,32,19.06,0.89,2.52,3,yes (engines in this run agree),not gated,7.2.11-elementary-aurora72-wip4,Honeykrisp Mesa 9323171c12,2026-10-28,measured here,receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.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" diff --git a/mseries/local-ai/engine-scoreboard.svg b/mseries/local-ai/engine-scoreboard.svg index f4211fe6..55b60890 100644 --- a/mseries/local-ai/engine-scoreboard.svg +++ b/mseries/local-ai/engine-scoreboard.svg @@ -1 +1 @@ -Decode speed by engine on Apple M1 ProLFM3-1.7B MLX 8-bit, 32 tokensMLX tuned27.5 tok/s ★MLX default22.6 tok/sMLX tuned16.9 tok/sMLX default15.3 tok/sQwen3.5-2B MLX 4-bit, 32 tokensMLX tuned56.4 tok/s ★MLX default48.9 tok/sMLX tuned47.2 tok/sRapid-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/sQwen3.5-4B MLX 4-bit, 32 tokensMLX tuned27.0 tok/s ★MLX tuned24.8 tok/sRapid-MLX 1d09cdb tuned23.4 tok/sMLX default23.1 tok/sMLX default18.6 tok/s +Decode speed by engine on Apple M1 ProLFM3-1.7B MLX 8-bit, 32 tokensMLX tuned · 93231727.5 tok/s ★MLX default · 93231722.6 tok/sMLX tuned · 7faf0416.9 tok/sMLX default · 7faf0415.3 tok/sQwen3.5-2B MLX 4-bit, 32 tokensMLX tuned · 93231756.4 tok/s ★Rapid-MLX 1d09cdb tuned · 93231750.6 tok/sMLX default · 93231748.9 tok/sMLX tuned · 7faf0447.2 tok/sRapid-MLX 1d09cdb tuned · 7faf0442.4 tok/sMLX default · 7faf0436.0 tok/smlx-omarchy-serve tuned · 93231733.1 tok/sTensorFold Vulkan PR 1517 · 7faf042.4 tok/sQwen3.5-2B MLX 4-bit, 32 tokens, 4 requests at once (total)Rapid-MLX 1d09cdb tuned · 93231743.5 tok/s ★mlx-omarchy-serve tuned · 93231719.9 tok/sQwen3.5-2B MLX 4-bit, 32 tokens, 8 requests at once (total)Rapid-MLX 1d09cdb tuned · 93231748.1 tok/s ★mlx-omarchy-serve tuned · 93231719.8 tok/sQwen3.5-2B MLX 4-bit, 256 tokensMLX tuned · 7faf0449.3 tok/s ★Rapid-MLX 1d09cdb tuned · 7faf0443.2 tok/sMLX default · 7faf0437.2 tok/sTensorFold Vulkan PR 1517 · 7faf042.8 tok/sQwen3.5-4B MLX 4-bit, 32 tokensMLX tuned · 93231727.0 tok/s ★Rapid-MLX 1d09cdb tuned · 93231725.7 tok/sMLX tuned · 7faf0424.8 tok/sRapid-MLX 1d09cdb tuned · 7faf0423.4 tok/sMLX default · 93231723.1 tok/smlx-omarchy-serve tuned · 93231719.1 tok/sMLX default · 7faf0418.6 tok/s diff --git a/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json new file mode 100644 index 00000000..ede303f2 --- /dev/null +++ b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json @@ -0,0 +1,765 @@ +{ + "status": "complete", + "model_key": "qwen2b", + "model": "mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3", + "weights_sha256": "713fe7e5d3c3965f7106b0d0ee17615f7869c23c8d327996df8c1196fbcf07d5", + "kernel": "7.2.11-elementary-aurora72-wip4", + "driver": "Honeykrisp Mesa 9323171c12", + "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": [ + "rapid-120k", + "serve-120k" + ], + "concurrency": 4, + "runs": [ + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.403, + "max_temp_c": 49.693, + "max_fan_rpm": 2490.0 + }, + { + "t": 1.01, + "available_gib": 16.357, + "max_temp_c": 49.1, + "max_fan_rpm": 2491.0 + }, + { + "t": 2.02, + "available_gib": 16.043, + "max_temp_c": 49.186, + "max_fan_rpm": 2524.0 + }, + { + "t": 3.02, + "available_gib": 14.97, + "max_temp_c": 49.52, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.03, + "available_gib": 14.924, + "max_temp_c": 50.048, + "max_fan_rpm": 2503.0 + }, + { + "t": 5.04, + "available_gib": 14.903, + "max_temp_c": 48.7, + "max_fan_rpm": 2490.0 + }, + { + "t": 6.05, + "available_gib": 14.75, + "max_temp_c": 48.68, + "max_fan_rpm": 2503.0 + }, + { + "t": 7.06, + "available_gib": 14.482, + "max_temp_c": 49.68, + "max_fan_rpm": 2511.0 + }, + { + "t": 8.08, + "available_gib": 14.23, + "max_temp_c": 48.36, + "max_fan_rpm": 2512.0 + }, + { + "t": 9.1, + "available_gib": 14.078, + "max_temp_c": 49.006, + "max_fan_rpm": 2490.0 + }, + { + "t": 10.12, + "available_gib": 14.137, + "max_temp_c": 49.14, + "max_fan_rpm": 2503.0 + } + ], + "log_tail": "mpletion (stream): 32 tokens in 3.05s (10.5 tok/s)\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 3.05s (10.5 tok/s)\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 3.05s (10.5 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe612ff160 [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 0x0000ffff0297b160 [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 0x0000ffff208e07a0 [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=3.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=3.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=3.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=3.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=3.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=3.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=3.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=3.2s\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 [1788557]\n", + "ready_s": 7.853159953003342, + "concurrency": 4, + "wall_s": 3.183955219996278, + "aggregate_tok_s": 40.2015704228873, + "per_request_decode_median": 15.63144678211781, + "ttft_s": 1.19923376099905, + "total_s": 3.183955219996278, + "completion_tokens": 128, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.1965766349967453, + "total_s": 3.182979636992968, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.19923376099905, + "total_s": 3.182534511994163, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.1990484280031524, + "total_s": 3.1822301790016354, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.1996537189988885, + "total_s": 3.1820526369992876, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 40.2015704228873, + "min_available_gib": 14.078, + "peak_temp_c": 50.048, + "round": 1, + "admission_available_gib": 16.403 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.03, + "available_gib": 16.465, + "max_temp_c": 49.893, + "max_fan_rpm": 2507.0 + }, + { + "t": 1.04, + "available_gib": 15.862, + "max_temp_c": 48.68, + "max_fan_rpm": 2503.0 + }, + { + "t": 2.05, + "available_gib": 14.945, + "max_temp_c": 49.506, + "max_fan_rpm": 2507.0 + }, + { + "t": 3.06, + "available_gib": 14.849, + "max_temp_c": 48.106, + "max_fan_rpm": 2512.0 + }, + { + "t": 4.08, + "available_gib": 14.656, + "max_temp_c": 48.826, + "max_fan_rpm": 2503.0 + }, + { + "t": 5.09, + "available_gib": 14.646, + "max_temp_c": 48.313, + "max_fan_rpm": 2490.0 + }, + { + "t": 6.11, + "available_gib": 14.617, + "max_temp_c": 47.753, + "max_fan_rpm": 2511.0 + }, + { + "t": 7.12, + "available_gib": 14.568, + "max_temp_c": 50.0, + "max_fan_rpm": 2490.0 + }, + { + "t": 8.13, + "available_gib": 14.56, + "max_temp_c": 49.533, + "max_fan_rpm": 2503.0 + }, + { + "t": 9.15, + "available_gib": 14.563, + "max_temp_c": 49.666, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.16, + "available_gib": 14.598, + "max_temp_c": 50.225, + "max_fan_rpm": 2491.0 + }, + { + "t": 11.19, + "available_gib": 14.664, + "max_temp_c": 49.006, + "max_fan_rpm": 2503.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:26:23,583 - INFO - Starting httpd at 127.0.0.1 on port 40089...\n127.0.0.1 - - [28/Oct/2026 08:26:23] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:26:23] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:26:25,963 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:25,964 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:25,964 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:25,964 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:25] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:26,502 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:26:26,594 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:26:26,634 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:26:27,606 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:27,606 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:27,606 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:27,606 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:27] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:27,998 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:27,998 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:27,998 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:27,998 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:27] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:28,402 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:28,403 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:28,403 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:28,403 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:28] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:28,817 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:28,817 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:28,817 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:28,817 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:28] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:29,359 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:29,459 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:29,499 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:26:30,586 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:30,687 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:30,725 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:26:31,892 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:31,994 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:32,030 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:26:33,160 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:33,263 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:33,301 - INFO - Prompt processing progress: 33/33\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:40089\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.46 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.86 GiB\nverdict: FITS\n", + "ready_s": 4.747734952004976, + "concurrency": 4, + "wall_s": 6.634395647000929, + "aggregate_tok_s": 19.293392617888603, + "per_request_decode_median": 28.81892287819679, + "ttft_s": 4.451272740996501, + "total_s": 6.634395647000929, + "completion_tokens": 128, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.9237921169988113, + "total_s": 2.999474234995432, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 3.1455287560020224, + "total_s": 4.291515092001646, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 4.451272740996501, + "total_s": 5.558337905000371, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 5.720947554000304, + "total_s": 6.629915646000882, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 19.293392617888603, + "min_available_gib": 14.56, + "peak_temp_c": 50.225, + "round": 1, + "admission_available_gib": 16.465 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.03, + "available_gib": 16.222, + "max_temp_c": 50.983, + "max_fan_rpm": 2503.0 + }, + { + "t": 1.04, + "available_gib": 15.613, + "max_temp_c": 49.546, + "max_fan_rpm": 2486.0 + }, + { + "t": 2.06, + "available_gib": 14.871, + "max_temp_c": 48.826, + "max_fan_rpm": 2503.0 + }, + { + "t": 3.07, + "available_gib": 14.933, + "max_temp_c": 50.217, + "max_fan_rpm": 2512.0 + }, + { + "t": 4.08, + "available_gib": 14.78, + "max_temp_c": 49.36, + "max_fan_rpm": 2507.0 + }, + { + "t": 5.09, + "available_gib": 14.688, + "max_temp_c": 49.313, + "max_fan_rpm": 2503.0 + }, + { + "t": 6.11, + "available_gib": 14.548, + "max_temp_c": 48.333, + "max_fan_rpm": 2511.0 + }, + { + "t": 7.13, + "available_gib": 14.613, + "max_temp_c": 50.387, + "max_fan_rpm": 2490.0 + }, + { + "t": 8.14, + "available_gib": 14.601, + "max_temp_c": 49.826, + "max_fan_rpm": 2507.0 + }, + { + "t": 9.15, + "available_gib": 14.616, + "max_temp_c": 48.66, + "max_fan_rpm": 2502.0 + }, + { + "t": 10.17, + "available_gib": 14.626, + "max_temp_c": 49.186, + "max_fan_rpm": 2511.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:26:38,125 - INFO - Starting httpd at 127.0.0.1 on port 46379...\n127.0.0.1 - - [28/Oct/2026 08:26:38] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:26:38] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:26:40,420 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:40,420 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:40,420 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:40,420 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:40] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:40,888 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:26:40,980 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:26:41,027 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:26:42,033 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,033 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,033 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,033 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:42] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:42,357 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,357 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,357 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,357 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:42] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:42,698 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,698 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,698 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:42,698 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:42] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:43,027 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:43,027 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:43,027 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:43,027 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:43] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:43,508 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:43,601 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:43,638 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:26:44,753 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:44,858 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:44,898 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:26:46,006 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:46,113 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:46,153 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:26:47,286 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:26:47,387 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:26:47,427 - INFO - Prompt processing progress: 33/33\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:46379\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.21 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.61 GiB\nverdict: FITS\n", + "ready_s": 4.603186430002097, + "concurrency": 4, + "wall_s": 6.426893659001507, + "aggregate_tok_s": 19.916308996450127, + "per_request_decode_median": 28.549239497299755, + "ttft_s": 4.149505239001883, + "total_s": 6.426893659001507, + "completion_tokens": 128, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.6348683670003084, + "total_s": 2.7279046529947664, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 4.149505239001883, + "total_s": 5.258155069001077, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.893182345003879, + "total_s": 3.979025630003889, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 5.423983635002514, + "total_s": 6.423148449001019, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 19.916308996450127, + "min_available_gib": 14.548, + "peak_temp_c": 50.983, + "round": 2, + "admission_available_gib": 16.222 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 16.364, + "max_temp_c": 48.293, + "max_fan_rpm": 2503.0 + }, + { + "t": 1.04, + "available_gib": 16.318, + "max_temp_c": 48.7, + "max_fan_rpm": 2503.0 + }, + { + "t": 2.05, + "available_gib": 15.952, + "max_temp_c": 50.193, + "max_fan_rpm": 2502.0 + }, + { + "t": 3.07, + "available_gib": 14.965, + "max_temp_c": 48.18, + "max_fan_rpm": 2502.0 + }, + { + "t": 4.08, + "available_gib": 14.985, + "max_temp_c": 48.46, + "max_fan_rpm": 2511.0 + }, + { + "t": 5.1, + "available_gib": 15.024, + "max_temp_c": 48.773, + "max_fan_rpm": 2503.0 + }, + { + "t": 6.11, + "available_gib": 14.842, + "max_temp_c": 49.153, + "max_fan_rpm": 2512.0 + }, + { + "t": 7.12, + "available_gib": 14.453, + "max_temp_c": 49.186, + "max_fan_rpm": 2486.0 + }, + { + "t": 8.14, + "available_gib": 14.082, + "max_temp_c": 47.62, + "max_fan_rpm": 2503.0 + }, + { + "t": 9.16, + "available_gib": 13.801, + "max_temp_c": 49.493, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.18, + "available_gib": 13.688, + "max_temp_c": 50.0, + "max_fan_rpm": 2503.0 + } + ], + "log_tail": "mpletion (stream): 32 tokens in 2.71s (11.8 tok/s)\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 2.71s (11.8 tok/s)\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 2.71s (11.8 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe4edff160 [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 0x0000fffeaf7ef160 [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 0x0000fffed18bc7a0 [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=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.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 [1789180]\n", + "ready_s": 7.490133523999248, + "concurrency": 4, + "wall_s": 2.8200189170020167, + "aggregate_tok_s": 45.389766440317985, + "per_request_decode_median": 18.083895088437146, + "ttft_s": 1.1044392889962182, + "total_s": 2.8200189170020167, + "completion_tokens": 128, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.1047035379961017, + "total_s": 2.818935999996029, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.1044392889962182, + "total_s": 2.8183070839950233, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.1009587459993782, + "total_s": 2.818544166999345, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.1039738719991874, + "total_s": 2.81876458300394, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 45.389766440317985, + "min_available_gib": 13.688, + "peak_temp_c": 50.193, + "round": 2, + "admission_available_gib": 16.364 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.051, + "max_temp_c": 48.333, + "max_fan_rpm": 2490.0 + }, + { + "t": 1.01, + "available_gib": 15.992, + "max_temp_c": 49.166, + "max_fan_rpm": 2502.0 + }, + { + "t": 2.02, + "available_gib": 15.769, + "max_temp_c": 49.68, + "max_fan_rpm": 2502.0 + }, + { + "t": 3.02, + "available_gib": 14.664, + "max_temp_c": 49.82, + "max_fan_rpm": 2502.0 + }, + { + "t": 4.03, + "available_gib": 14.624, + "max_temp_c": 48.68, + "max_fan_rpm": 2507.0 + }, + { + "t": 5.04, + "available_gib": 14.634, + "max_temp_c": 48.853, + "max_fan_rpm": 2503.0 + }, + { + "t": 6.05, + "available_gib": 14.504, + "max_temp_c": 49.693, + "max_fan_rpm": 2502.0 + }, + { + "t": 7.06, + "available_gib": 14.243, + "max_temp_c": 49.806, + "max_fan_rpm": 2489.0 + }, + { + "t": 8.07, + "available_gib": 13.854, + "max_temp_c": 49.2, + "max_fan_rpm": 2503.0 + }, + { + "t": 9.09, + "available_gib": 13.853, + "max_temp_c": 48.986, + "max_fan_rpm": 2512.0 + }, + { + "t": 10.1, + "available_gib": 13.768, + "max_temp_c": 49.68, + "max_fan_rpm": 2486.0 + } + ], + "log_tail": "mpletion (stream): 32 tokens in 2.81s (11.4 tok/s)\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 2.81s (11.4 tok/s)\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 2.81s (11.4 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffeeafff160 [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 0x0000ffff4d8a7160 [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 0x0000ffff6b8687a0 [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=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 35 chunks (1 keepalives), elapsed=2.9s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=2.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 [1789358]\n", + "ready_s": 7.4609698109998135, + "concurrency": 4, + "wall_s": 2.944998268998461, + "aggregate_tok_s": 43.463523000144384, + "per_request_decode_median": 17.16073894600281, + "ttft_s": 1.1365670849991147, + "total_s": 2.944998268998461, + "completion_tokens": 128, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.1309735419999924, + "total_s": 2.9430258509964915, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.136795792997873, + "total_s": 2.9441979769981117, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.1364368759968784, + "total_s": 2.9428858929968555, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.1365670849991147, + "total_s": 2.94251226799679, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 43.463523000144384, + "min_available_gib": 13.768, + "peak_temp_c": 49.82, + "round": 3, + "admission_available_gib": 16.051 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.088, + "max_temp_c": 50.201, + "max_fan_rpm": 2502.0 + }, + { + "t": 1.01, + "available_gib": 15.532, + "max_temp_c": 50.395, + "max_fan_rpm": 2503.0 + }, + { + "t": 2.02, + "available_gib": 14.755, + "max_temp_c": 50.758, + "max_fan_rpm": 2502.0 + }, + { + "t": 3.03, + "available_gib": 14.667, + "max_temp_c": 49.666, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.05, + "available_gib": 14.512, + "max_temp_c": 49.226, + "max_fan_rpm": 2490.0 + }, + { + "t": 5.06, + "available_gib": 14.54, + "max_temp_c": 51.758, + "max_fan_rpm": 2503.0 + }, + { + "t": 6.08, + "available_gib": 14.397, + "max_temp_c": 49.98, + "max_fan_rpm": 2490.0 + }, + { + "t": 7.11, + "available_gib": 14.556, + "max_temp_c": 49.333, + "max_fan_rpm": 2503.0 + }, + { + "t": 8.13, + "available_gib": 14.602, + "max_temp_c": 49.84, + "max_fan_rpm": 2503.0 + }, + { + "t": 9.15, + "available_gib": 14.529, + "max_temp_c": 48.786, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.16, + "available_gib": 14.555, + "max_temp_c": 49.68, + "max_fan_rpm": 2507.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:27:20,251 - INFO - Starting httpd at 127.0.0.1 on port 55395...\n127.0.0.1 - - [28/Oct/2026 08:27:20] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:27:20] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:27:22,513 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:22,513 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:22,513 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:22,513 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:22] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:22,976 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:27:23,067 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:27:23,112 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:27:24,056 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,056 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,056 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,056 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:24] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:24,385 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,386 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,386 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,386 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:24] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:24,732 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,733 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,733 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:24,733 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:24] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:25,063 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:25,063 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:25,063 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:25,063 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:25] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:25,523 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:27:25,612 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:27:25,648 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:27:26,812 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:27:26,916 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:27:26,957 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:27:28,033 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:27:28,134 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:27:28,170 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:27:29,227 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:27:29,330 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:27:29,367 - INFO - Prompt processing progress: 33/33\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:55395\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.08 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.48 GiB\nverdict: FITS\n", + "ready_s": 4.520947917997546, + "concurrency": 4, + "wall_s": 6.2460191729987855, + "aggregate_tok_s": 20.493052687596176, + "per_request_decode_median": 30.01937380663311, + "ttft_s": 4.144244821000029, + "total_s": 6.2460191729987855, + "completion_tokens": 128, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.6214403650010354, + "total_s": 2.761569825001061, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 4.144244821000029, + "total_s": 5.176911264999944, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.9318568089947803, + "total_s": 3.982397838997713, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 5.338125789006881, + "total_s": 6.243238631002896, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 20.493052687596176, + "min_available_gib": 14.397, + "peak_temp_c": 51.758, + "round": 3, + "admission_available_gib": 16.088 + } + ], + "summary": { + "rapid-120k": { + "ok_runs": 3, + "median_ttft_s": 1.1365670849991147, + "median_total_s": 2.944998268998461, + "median_decode_tps": 43.463523000144384, + "texts": [ + "97af50af7f79" + ] + }, + "serve-120k": { + "ok_runs": 3, + "median_ttft_s": 4.149505239001883, + "median_total_s": 6.426893659001507, + "median_decode_tps": 19.916308996450127, + "texts": [ + "97af50af7f79" + ] + } + } +} diff --git a/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json new file mode 100644 index 00000000..1bd2d68b --- /dev/null +++ b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json @@ -0,0 +1,1125 @@ +{ + "status": "complete", + "model_key": "qwen2b", + "model": "mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3", + "weights_sha256": "713fe7e5d3c3965f7106b0d0ee17615f7869c23c8d327996df8c1196fbcf07d5", + "kernel": "7.2.11-elementary-aurora72-wip4", + "driver": "Honeykrisp Mesa 9323171c12", + "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": [ + "rapid-120k", + "serve-120k" + ], + "concurrency": 8, + "runs": [ + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.349, + "max_temp_c": 48.773, + "max_fan_rpm": 2490.0 + }, + { + "t": 1.01, + "available_gib": 16.264, + "max_temp_c": 49.333, + "max_fan_rpm": 2507.0 + }, + { + "t": 2.02, + "available_gib": 15.968, + "max_temp_c": 50.032, + "max_fan_rpm": 2503.0 + }, + { + "t": 3.02, + "available_gib": 14.893, + "max_temp_c": 50.403, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.03, + "available_gib": 14.834, + "max_temp_c": 49.62, + "max_fan_rpm": 2490.0 + }, + { + "t": 5.06, + "available_gib": 14.796, + "max_temp_c": 49.213, + "max_fan_rpm": 2511.0 + }, + { + "t": 6.08, + "available_gib": 14.628, + "max_temp_c": 49.373, + "max_fan_rpm": 2502.0 + }, + { + "t": 7.11, + "available_gib": 14.476, + "max_temp_c": 48.846, + "max_fan_rpm": 2507.0 + }, + { + "t": 8.12, + "available_gib": 14.186, + "max_temp_c": 48.36, + "max_fan_rpm": 2490.0 + }, + { + "t": 9.13, + "available_gib": 13.783, + "max_temp_c": 48.54, + "max_fan_rpm": 2502.0 + }, + { + "t": 10.14, + "available_gib": 13.58, + "max_temp_c": 49.7, + "max_fan_rpm": 2489.0 + }, + { + "t": 11.16, + "available_gib": 13.7, + "max_temp_c": 48.413, + "max_fan_rpm": 2512.0 + }, + { + "t": 12.17, + "available_gib": 13.947, + "max_temp_c": 48.613, + "max_fan_rpm": 2502.0 + }, + { + "t": 13.18, + "available_gib": 14.171, + "max_temp_c": 49.606, + "max_fan_rpm": 2502.0 + } + ], + "log_tail": "86b160 [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 0x0000fffece8487a0 [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, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.3s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.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 [1789787]\n", + "ready_s": 7.918842796003446, + "concurrency": 8, + "wall_s": 5.31751807800174, + "aggregate_tok_s": 48.14276063471358, + "per_request_decode_median": 9.119989192753804, + "ttft_s": 1.9155452830018476, + "total_s": 5.31751807800174, + "completion_tokens": 256, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.9158964920061408, + "total_s": 5.314998786001524, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.9157998250011588, + "total_s": 5.31492666000122, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.9156238249997841, + "total_s": 5.314782494002429, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.9155452830018476, + "total_s": 5.314688744001614, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.915472700005921, + "total_s": 5.314804285000719, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.9150873659964418, + "total_s": 5.314286660002836, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.9148486160047469, + "total_s": 5.3138052850044915, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.9141789080022136, + "total_s": 5.313243327000237, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 48.14276063471358, + "min_available_gib": 13.58, + "peak_temp_c": 50.403, + "round": 1, + "admission_available_gib": 16.349 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.03, + "available_gib": 16.394, + "max_temp_c": 48.32, + "max_fan_rpm": 2490.0 + }, + { + "t": 1.05, + "available_gib": 15.724, + "max_temp_c": 48.753, + "max_fan_rpm": 2503.0 + }, + { + "t": 2.06, + "available_gib": 15.014, + "max_temp_c": 48.1, + "max_fan_rpm": 2503.0 + }, + { + "t": 3.07, + "available_gib": 14.907, + "max_temp_c": 48.646, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.08, + "available_gib": 14.753, + "max_temp_c": 47.893, + "max_fan_rpm": 2507.0 + }, + { + "t": 5.1, + "available_gib": 14.589, + "max_temp_c": 48.633, + "max_fan_rpm": 2507.0 + }, + { + "t": 6.11, + "available_gib": 14.581, + "max_temp_c": 47.96, + "max_fan_rpm": 2490.0 + }, + { + "t": 7.13, + "available_gib": 14.558, + "max_temp_c": 49.5, + "max_fan_rpm": 2490.0 + }, + { + "t": 8.14, + "available_gib": 14.712, + "max_temp_c": 47.546, + "max_fan_rpm": 2503.0 + }, + { + "t": 9.15, + "available_gib": 14.519, + "max_temp_c": 48.82, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.17, + "available_gib": 14.512, + "max_temp_c": 49.253, + "max_fan_rpm": 2490.0 + }, + { + "t": 11.19, + "available_gib": 14.532, + "max_temp_c": 48.613, + "max_fan_rpm": 2507.0 + }, + { + "t": 12.2, + "available_gib": 14.534, + "max_temp_c": 48.32, + "max_fan_rpm": 2503.0 + }, + { + "t": 13.21, + "available_gib": 14.572, + "max_temp_c": 48.593, + "max_fan_rpm": 2490.0 + }, + { + "t": 14.22, + "available_gib": 14.572, + "max_temp_c": 49.673, + "max_fan_rpm": 2503.0 + }, + { + "t": 15.23, + "available_gib": 14.615, + "max_temp_c": 48.1, + "max_fan_rpm": 2503.0 + }, + { + "t": 16.25, + "available_gib": 14.613, + "max_temp_c": 48.613, + "max_fan_rpm": 2503.0 + }, + { + "t": 17.29, + "available_gib": 14.654, + "max_temp_c": 48.613, + "max_fan_rpm": 2499.0 + } + ], + "log_tail": "/v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:57,083 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,083 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,083 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,083 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:57] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:57,401 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,401 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,401 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,401 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:57] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:57,727 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,727 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,728 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:57,728 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:57] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:58,054 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,054 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,055 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,055 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:58] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:58,363 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,363 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,363 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,363 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:58] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:58,689 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,689 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,689 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:27:58,689 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:27:58] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:27:59,958 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:00,060 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:00,098 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:01,225 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:01,325 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:01,363 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:02,515 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:02,615 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:02,655 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:03,827 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:03,928 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:03,968 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:05,128 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:05,229 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:05,269 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:06,399 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:06,498 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:06,540 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:07,703 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:07,814 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:07,851 - INFO - Prompt processing progress: 33/33\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:54483\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.38 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.78 GiB\nverdict: FITS\n", + "ready_s": 4.487489412997093, + "concurrency": 8, + "wall_s": 12.923471119000169, + "aggregate_tok_s": 19.808919572979676, + "per_request_decode_median": 27.485210737995768, + "ttft_s": 8.06714019300125, + "total_s": 12.923471119000169, + "completion_tokens": 256, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 0.6334463020029943, + "total_s": 4.035776054995949, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 6.755751248994784, + "total_s": 7.902483710000524, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 4.197079537996615, + "total_s": 5.299587283996516, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 5.46467043300072, + "total_s": 6.592549723995035, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 8.06714019300125, + "total_s": 9.202008611006022, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 9.36946171800082, + "total_s": 10.474870465004642, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 10.638665323000168, + "total_s": 11.792098577003344, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 11.949292224999226, + "total_s": 12.918048283994722, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 19.808919572979676, + "min_available_gib": 14.512, + "peak_temp_c": 49.673, + "round": 1, + "admission_available_gib": 16.394 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.427, + "max_temp_c": 48.786, + "max_fan_rpm": 2507.0 + }, + { + "t": 1.02, + "available_gib": 15.818, + "max_temp_c": 49.04, + "max_fan_rpm": 2507.0 + }, + { + "t": 2.02, + "available_gib": 14.875, + "max_temp_c": 49.286, + "max_fan_rpm": 2503.0 + }, + { + "t": 3.03, + "available_gib": 14.798, + "max_temp_c": 49.76, + "max_fan_rpm": 2490.0 + }, + { + "t": 4.04, + "available_gib": 14.656, + "max_temp_c": 48.766, + "max_fan_rpm": 2511.0 + }, + { + "t": 5.05, + "available_gib": 14.659, + "max_temp_c": 49.44, + "max_fan_rpm": 2499.0 + }, + { + "t": 6.07, + "available_gib": 14.598, + "max_temp_c": 48.473, + "max_fan_rpm": 2507.0 + }, + { + "t": 7.08, + "available_gib": 14.585, + "max_temp_c": 48.893, + "max_fan_rpm": 2490.0 + }, + { + "t": 8.09, + "available_gib": 14.401, + "max_temp_c": 48.633, + "max_fan_rpm": 2503.0 + }, + { + "t": 9.1, + "available_gib": 14.34, + "max_temp_c": 48.453, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.12, + "available_gib": 14.34, + "max_temp_c": 48.233, + "max_fan_rpm": 2507.0 + }, + { + "t": 11.13, + "available_gib": 14.347, + "max_temp_c": 48.96, + "max_fan_rpm": 2503.0 + }, + { + "t": 12.16, + "available_gib": 14.367, + "max_temp_c": 48.633, + "max_fan_rpm": 2507.0 + }, + { + "t": 13.18, + "available_gib": 14.374, + "max_temp_c": 48.453, + "max_fan_rpm": 2503.0 + }, + { + "t": 14.18, + "available_gib": 14.37, + "max_temp_c": 49.76, + "max_fan_rpm": 2503.0 + }, + { + "t": 15.2, + "available_gib": 14.403, + "max_temp_c": 49.253, + "max_fan_rpm": 2503.0 + }, + { + "t": 16.21, + "available_gib": 14.42, + "max_temp_c": 49.266, + "max_fan_rpm": 2486.0 + } + ], + "log_tail": "O - - user: 0 sequences, 0.00 GB\n2026-10-28 08:28:17,292 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:28:17] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:28:17,624 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:28:17,624 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:28:17,624 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:28:17,624 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:28:17] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:28:17,965 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:28:17,965 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:28:17,965 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:28:17,965 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:28:17] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:28:18,288 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,288 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,288 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,288 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:28:18] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:28:18,621 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,621 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,621 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,621 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:28:18] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:28:18,969 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,969 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,969 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:28:18,969 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:28:18] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:28:19,440 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:19,544 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:19,587 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:20,691 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:20,796 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:20,834 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:21,875 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:21,976 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:22,014 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:23,116 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:23,214 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:23,255 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:24,350 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:24,452 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:24,501 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:25,555 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:25,655 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:25,693 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:26,754 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:26,858 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:26,901 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:28:27,931 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:28:28,041 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:28:28,082 - INFO - Prompt processing progress: 33/33\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:50933\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.41 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.81 GiB\nverdict: FITS\n", + "ready_s": 4.541783921995375, + "concurrency": 8, + "wall_s": 12.407850167997822, + "aggregate_tok_s": 20.63209956066943, + "per_request_decode_median": 30.120622580529844, + "ttft_s": 7.900715960000525, + "total_s": 12.407850167997822, + "completion_tokens": 256, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 2.989545691998501, + "total_s": 4.071669518998533, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 4.233765543001937, + "total_s": 5.251290610001888, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 7.900715960000525, + "total_s": 8.929911153994908, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 5.414377966997563, + "total_s": 6.494448334997287, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 6.654964025001391, + "total_s": 7.725968684004329, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 9.091704885999206, + "total_s": 10.133089707000181, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 11.480015198001638, + "total_s": 12.401663750999433, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 10.298083772002428, + "total_s": 11.305471546002082, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 20.63209956066943, + "min_available_gib": 14.34, + "peak_temp_c": 49.76, + "round": 2, + "admission_available_gib": 16.427 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.03, + "available_gib": 16.436, + "max_temp_c": 48.94, + "max_fan_rpm": 2511.0 + }, + { + "t": 1.04, + "available_gib": 16.35, + "max_temp_c": 48.233, + "max_fan_rpm": 2503.0 + }, + { + "t": 2.04, + "available_gib": 15.985, + "max_temp_c": 49.58, + "max_fan_rpm": 2502.0 + }, + { + "t": 3.05, + "available_gib": 14.925, + "max_temp_c": 49.913, + "max_fan_rpm": 2508.0 + }, + { + "t": 4.05, + "available_gib": 14.711, + "max_temp_c": 48.786, + "max_fan_rpm": 2512.0 + }, + { + "t": 5.06, + "available_gib": 14.668, + "max_temp_c": 48.94, + "max_fan_rpm": 2503.0 + }, + { + "t": 6.07, + "available_gib": 14.512, + "max_temp_c": 49.1, + "max_fan_rpm": 2504.0 + }, + { + "t": 7.08, + "available_gib": 14.159, + "max_temp_c": 49.92, + "max_fan_rpm": 2508.0 + }, + { + "t": 8.09, + "available_gib": 13.174, + "max_temp_c": 49.58, + "max_fan_rpm": 2503.0 + }, + { + "t": 9.1, + "available_gib": 13.557, + "max_temp_c": 48.94, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.12, + "available_gib": 13.537, + "max_temp_c": 49.286, + "max_fan_rpm": 2512.0 + }, + { + "t": 11.13, + "available_gib": 13.729, + "max_temp_c": 49.066, + "max_fan_rpm": 2503.0 + }, + { + "t": 12.14, + "available_gib": 13.951, + "max_temp_c": 49.606, + "max_fan_rpm": 2503.0 + } + ], + "log_tail": "3eb160 [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 0x0000fffef736c7a0 [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, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=5.2s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=5.2s\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 [1790990]\n", + "ready_s": 7.52285198699974, + "concurrency": 8, + "wall_s": 5.179695765997167, + "aggregate_tok_s": 49.423752198062985, + "per_request_decode_median": 9.442569025009739, + "ttft_s": 1.8925501129997429, + "total_s": 5.179695765997167, + "completion_tokens": 256, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 1.8877361129998462, + "total_s": 5.17843534900021, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.8925501129997429, + "total_s": 5.177524389997416, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.8956964050012175, + "total_s": 5.1762220569944475, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.893931030004751, + "total_s": 5.176903099003539, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.89250882199849, + "total_s": 5.1761114740002085, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.8958041130026686, + "total_s": 5.175497889998951, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.8920124459982617, + "total_s": 5.175265555997612, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 1.891913820996706, + "total_s": 5.174918680997507, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 49.423752198062985, + "min_available_gib": 13.174, + "peak_temp_c": 49.92, + "round": 2, + "admission_available_gib": 16.436 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 14.019, + "max_temp_c": 49.426, + "max_fan_rpm": 2512.0 + }, + { + "t": 1.03, + "available_gib": 12.573, + "max_temp_c": 49.426, + "max_fan_rpm": 2507.0 + }, + { + "t": 2.04, + "available_gib": 11.522, + "max_temp_c": 49.066, + "max_fan_rpm": 2512.0 + }, + { + "t": 3.04, + "available_gib": 9.94, + "max_temp_c": 49.253, + "max_fan_rpm": 2490.0 + }, + { + "t": 4.05, + "available_gib": 9.317, + "max_temp_c": 49.066, + "max_fan_rpm": 2503.0 + }, + { + "t": 5.05, + "available_gib": 9.209, + "max_temp_c": 49.413, + "max_fan_rpm": 2507.0 + }, + { + "t": 6.06, + "available_gib": 9.358, + "max_temp_c": 49.893, + "max_fan_rpm": 2499.0 + }, + { + "t": 7.08, + "available_gib": 9.398, + "max_temp_c": 47.866, + "max_fan_rpm": 2499.0 + }, + { + "t": 8.08, + "available_gib": 9.186, + "max_temp_c": 50.072, + "max_fan_rpm": 2495.0 + }, + { + "t": 9.1, + "available_gib": 8.823, + "max_temp_c": 49.426, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.11, + "available_gib": 8.418, + "max_temp_c": 49.58, + "max_fan_rpm": 2503.0 + }, + { + "t": 11.12, + "available_gib": 7.961, + "max_temp_c": 49.58, + "max_fan_rpm": 2503.0 + }, + { + "t": 12.14, + "available_gib": 7.943, + "max_temp_c": 49.726, + "max_fan_rpm": 2503.0 + }, + { + "t": 13.16, + "available_gib": 8.288, + "max_temp_c": 49.713, + "max_fan_rpm": 2521.0 + }, + { + "t": 14.17, + "available_gib": 8.637, + "max_temp_c": 49.24, + "max_fan_rpm": 2491.0 + }, + { + "t": 15.19, + "available_gib": 8.832, + "max_temp_c": 49.413, + "max_fan_rpm": 2508.0 + }, + { + "t": 16.2, + "available_gib": 8.857, + "max_temp_c": 49.56, + "max_fan_rpm": 2503.0 + }, + { + "t": 17.23, + "available_gib": 8.823, + "max_temp_c": 50.443, + "max_fan_rpm": 2499.0 + } + ], + "log_tail": "7ef160 [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 0x0000ffffb9d787a0 [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, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] generator exhausted normally, 21 chunks (1 keepalives), elapsed=7.7s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 21 chunks total, elapsed=7.7s\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 [1791341]\n", + "ready_s": 9.842184496999835, + "concurrency": 8, + "wall_s": 7.640515545994276, + "aggregate_tok_s": 33.505592451050525, + "per_request_decode_median": 6.283502486243446, + "ttft_s": 2.7010148569970625, + "total_s": 7.640515545994276, + "completion_tokens": 256, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 2.698137023995514, + "total_s": 7.635225961996184, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.701662858002237, + "total_s": 7.635217044997262, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.701525940996362, + "total_s": 7.634826044995862, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.7012561070005177, + "total_s": 7.634743337002874, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.7010148569970625, + "total_s": 7.637660920998314, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.700538440993114, + "total_s": 7.636394711997127, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.7002023160021054, + "total_s": 7.633483211997373, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 2.7001726489979774, + "total_s": 7.636260711995419, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 33.505592451050525, + "min_available_gib": 7.943, + "peak_temp_c": 50.443, + "round": 3, + "admission_available_gib": 14.184 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 15.738, + "max_temp_c": 49.7, + "max_fan_rpm": 2508.0 + }, + { + "t": 1.04, + "available_gib": 15.764, + "max_temp_c": 49.9, + "max_fan_rpm": 2490.0 + }, + { + "t": 2.05, + "available_gib": 15.188, + "max_temp_c": 50.056, + "max_fan_rpm": 2511.0 + }, + { + "t": 3.06, + "available_gib": 14.449, + "max_temp_c": 50.233, + "max_fan_rpm": 2490.0 + }, + { + "t": 4.07, + "available_gib": 14.318, + "max_temp_c": 49.88, + "max_fan_rpm": 2512.0 + }, + { + "t": 5.08, + "available_gib": 14.139, + "max_temp_c": 50.629, + "max_fan_rpm": 2486.0 + }, + { + "t": 6.09, + "available_gib": 14.237, + "max_temp_c": 50.233, + "max_fan_rpm": 2503.0 + }, + { + "t": 7.1, + "available_gib": 14.215, + "max_temp_c": 49.533, + "max_fan_rpm": 2490.0 + }, + { + "t": 8.11, + "available_gib": 14.225, + "max_temp_c": 50.008, + "max_fan_rpm": 2507.0 + }, + { + "t": 9.12, + "available_gib": 14.105, + "max_temp_c": 50.225, + "max_fan_rpm": 2503.0 + }, + { + "t": 10.13, + "available_gib": 14.111, + "max_temp_c": 49.52, + "max_fan_rpm": 2503.0 + }, + { + "t": 11.14, + "available_gib": 14.096, + "max_temp_c": 50.427, + "max_fan_rpm": 2507.0 + }, + { + "t": 12.16, + "available_gib": 13.989, + "max_temp_c": 49.693, + "max_fan_rpm": 2520.0 + }, + { + "t": 13.17, + "available_gib": 13.967, + "max_temp_c": 50.806, + "max_fan_rpm": 2503.0 + }, + { + "t": 14.19, + "available_gib": 14.038, + "max_temp_c": 51.379, + "max_fan_rpm": 2511.0 + }, + { + "t": 15.2, + "available_gib": 14.356, + "max_temp_c": 50.032, + "max_fan_rpm": 2486.0 + }, + { + "t": 16.21, + "available_gib": 14.358, + "max_temp_c": 51.564, + "max_fan_rpm": 2507.0 + }, + { + "t": 17.24, + "available_gib": 14.392, + "max_temp_c": 51.37, + "max_fan_rpm": 2507.0 + }, + { + "t": 18.25, + "available_gib": 14.417, + "max_temp_c": 50.233, + "max_fan_rpm": 2498.0 + } + ], + "log_tail": "O - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:15,860 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:15] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:16,192 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,192 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,192 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,192 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:16] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:16,518 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,518 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,518 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,518 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:16] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:16,848 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,848 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,848 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:16,848 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:16] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:17,171 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:29:17,171 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:29:17,171 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:17,171 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:17] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:17,497 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:29:17,497 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:29:17,497 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:17,497 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:17] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:17,974 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:18,076 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:18,113 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:29:19,290 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:19,393 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:19,431 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:29:20,603 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:20,706 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:20,750 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:29:21,961 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:22,064 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:22,104 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:29:23,217 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:23,320 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:23,356 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:29:24,416 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:24,519 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:24,563 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:29:25,712 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:25,814 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:25,852 - INFO - Prompt processing progress: 33/33\n2026-10-28 08:29:26,988 - INFO - Prompt processing progress: 29/33\n2026-10-28 08:29:27,089 - INFO - Prompt processing progress: 32/33\n2026-10-28 08:29:27,127 - INFO - Prompt processing progress: 33/33\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:40095\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 15.74 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.14 GiB\nverdict: FITS\n", + "ready_s": 5.520668607998232, + "concurrency": 8, + "wall_s": 12.900306699004432, + "aggregate_tok_s": 19.844489435259437, + "per_request_decode_median": 27.900253942497493, + "ttft_s": 8.210277297002904, + "total_s": 12.900306699004432, + "completion_tokens": 256, + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors,", + "requests": [ + { + "ttft_s": 2.9750428979969, + "total_s": 4.127448109997204, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 4.287861925004108, + "total_s": 5.434265595002216, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 5.608120995995705, + "total_s": 6.792056045997015, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 8.210277297002904, + "total_s": 9.24676699200063, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 6.9565800700002, + "total_s": 8.047995856999478, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 9.416538558994944, + "total_s": 10.545512183998653, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 10.706636332994094, + "total_s": 11.817737330995442, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + }, + { + "ttft_s": 11.980532312998548, + "total_s": 12.896989406996, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "1. Sunlight travels through the atmosphere and gets scattered by water droplets in the air.\n2. This scattering separates the light into its different colors," + } + ], + "served_model": "/home/sdolbec/.cache/mseries-metal2vk/qwen35-2b", + "text_sha256": "97af50af7f7909e68d8670dd08652563bf801d48f9186dcd506215b7d652c5db", + "decode_tps": 19.844489435259437, + "min_available_gib": 13.967, + "peak_temp_c": 51.564, + "round": 3, + "admission_available_gib": 15.726 + } + ], + "summary": { + "rapid-120k": { + "ok_runs": 3, + "median_ttft_s": 1.9155452830018476, + "median_total_s": 5.31751807800174, + "median_decode_tps": 48.14276063471358, + "texts": [ + "97af50af7f79" + ] + }, + "serve-120k": { + "ok_runs": 3, + "median_ttft_s": 8.06714019300125, + "median_total_s": 12.900306699004432, + "median_decode_tps": 19.844489435259437, + "texts": [ + "97af50af7f79" + ] + } + } +} diff --git a/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json new file mode 100644 index 00000000..6bf44f5c --- /dev/null +++ b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json @@ -0,0 +1,447 @@ +{ + "status": "complete", + "model_key": "qwen2b", + "model": "mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3", + "weights_sha256": "713fe7e5d3c3965f7106b0d0ee17615f7869c23c8d327996df8c1196fbcf07d5", + "kernel": "7.2.11-elementary-aurora72-wip4", + "driver": "Honeykrisp Mesa 9323171c12", + "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": [ + "rapid-120k", + "serve-120k" + ], + "concurrency": 1, + "runs": [ + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.339, + "max_temp_c": 47.96, + "max_fan_rpm": 2491.0 + }, + { + "t": 1.01, + "available_gib": 16.292, + "max_temp_c": 47.3, + "max_fan_rpm": 2525.0 + }, + { + "t": 2.03, + "available_gib": 16.248, + "max_temp_c": 47.773, + "max_fan_rpm": 2487.0 + }, + { + "t": 3.05, + "available_gib": 15.042, + "max_temp_c": 48.36, + "max_fan_rpm": 2513.0 + }, + { + "t": 4.06, + "available_gib": 14.742, + "max_temp_c": 47.68, + "max_fan_rpm": 2504.0 + }, + { + "t": 5.08, + "available_gib": 14.786, + "max_temp_c": 47.82, + "max_fan_rpm": 2504.0 + }, + { + "t": 6.09, + "available_gib": 14.797, + "max_temp_c": 47.493, + "max_fan_rpm": 2491.0 + }, + { + "t": 7.1, + "available_gib": 14.531, + "max_temp_c": 49.1, + "max_fan_rpm": 2512.0 + }, + { + "t": 8.11, + "available_gib": 14.282, + "max_temp_c": 48.753, + "max_fan_rpm": 2491.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-5c6 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-5c6 prompt_tokens=27 store_time=0.001s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-5c6 first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-5c6 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-5c6 finished normally, 32 tokens in 0.7s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-5c6 cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 0.67s (47.8 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe4487f160 [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 0x0000fffeb5c83160 [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 0x0000fffed3c307a0 [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.8s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=0.8s\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 [1787529]\n", + "ready_s": 8.296423767998931, + "ttft_s": 0.1657139000017196, + "total_s": 0.7779879480003729, + "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": 50.63092270745434, + "min_available_gib": 14.282, + "peak_temp_c": 49.1, + "round": 1, + "admission_available_gib": 16.339 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.236, + "max_temp_c": 47.82, + "max_fan_rpm": 2504.0 + }, + { + "t": 1.02, + "available_gib": 15.653, + "max_temp_c": 48.56, + "max_fan_rpm": 2504.0 + }, + { + "t": 2.03, + "available_gib": 14.805, + "max_temp_c": 48.053, + "max_fan_rpm": 2495.0 + }, + { + "t": 3.03, + "available_gib": 14.747, + "max_temp_c": 49.56, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.04, + "available_gib": 14.594, + "max_temp_c": 48.193, + "max_fan_rpm": 2491.0 + }, + { + "t": 5.08, + "available_gib": 14.565, + "max_temp_c": 49.58, + "max_fan_rpm": 2491.0 + }, + { + "t": 6.1, + "available_gib": 14.555, + "max_temp_c": 47.546, + "max_fan_rpm": 2513.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:25:15,677 - INFO - Starting httpd at 127.0.0.1 on port 38495...\n127.0.0.1 - - [28/Oct/2026 08:25:15] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:25:15] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:25:17,965 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:25:17,965 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:25:17,965 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:25:17,965 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:25:17] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:25:18,440 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:25:18,531 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:25:18,571 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:25:19,508 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:25:19,508 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:25:19,508 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:25:19,508 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:25:19] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:25:19,974 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:25:20,068 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:25:20,105 - INFO - Prompt processing progress: 27/27\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:38495\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.22 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.62 GiB\nverdict: FITS\n", + "ready_s": 4.529495627997676, + "ttft_s": 0.6291410510020796, + "total_s": 1.5861444839974865, + "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": 32.392778260962395, + "min_available_gib": 14.555, + "peak_temp_c": 49.58, + "round": 1, + "admission_available_gib": 16.236 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.216, + "max_temp_c": 48.733, + "max_fan_rpm": 2491.0 + }, + { + "t": 1.01, + "available_gib": 15.643, + "max_temp_c": 48.893, + "max_fan_rpm": 2512.0 + }, + { + "t": 2.02, + "available_gib": 14.816, + "max_temp_c": 48.56, + "max_fan_rpm": 2491.0 + }, + { + "t": 3.03, + "available_gib": 14.749, + "max_temp_c": 47.58, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.04, + "available_gib": 14.546, + "max_temp_c": 48.86, + "max_fan_rpm": 2487.0 + }, + { + "t": 5.04, + "available_gib": 14.5, + "max_temp_c": 48.54, + "max_fan_rpm": 2504.0 + }, + { + "t": 6.07, + "available_gib": 14.441, + "max_temp_c": 49.426, + "max_fan_rpm": 2491.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:25:24,981 - INFO - Starting httpd at 127.0.0.1 on port 45349...\n127.0.0.1 - - [28/Oct/2026 08:25:25] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:25:25] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:25:27,314 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:25:27,314 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:25:27,314 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:25:27,314 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:25:27] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:25:27,806 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:25:27,897 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:25:27,935 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:25:28,931 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:25:28,932 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:25:28,932 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:25:28,932 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:25:28] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:25:29,432 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:25:29,525 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:25:29,566 - INFO - Prompt processing progress: 27/27\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:45349\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.21 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.61 GiB\nverdict: FITS\n", + "ready_s": 4.660259105003206, + "ttft_s": 0.6673490149987629, + "total_s": 1.5719500650011469, + "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": 34.269250516477186, + "min_available_gib": 14.441, + "peak_temp_c": 49.426, + "round": 2, + "admission_available_gib": 16.216 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 15.84, + "max_temp_c": 48.54, + "max_fan_rpm": 2487.0 + }, + { + "t": 1.03, + "available_gib": 15.768, + "max_temp_c": 49.386, + "max_fan_rpm": 2503.0 + }, + { + "t": 2.03, + "available_gib": 15.64, + "max_temp_c": 47.573, + "max_fan_rpm": 2499.0 + }, + { + "t": 3.04, + "available_gib": 14.707, + "max_temp_c": 48.38, + "max_fan_rpm": 2512.0 + }, + { + "t": 4.05, + "available_gib": 14.657, + "max_temp_c": 48.38, + "max_fan_rpm": 2503.0 + }, + { + "t": 5.05, + "available_gib": 14.629, + "max_temp_c": 49.04, + "max_fan_rpm": 2504.0 + }, + { + "t": 6.06, + "available_gib": 14.45, + "max_temp_c": 48.106, + "max_fan_rpm": 2499.0 + }, + { + "t": 7.07, + "available_gib": 14.106, + "max_temp_c": 49.533, + "max_fan_rpm": 2503.0 + }, + { + "t": 8.08, + "available_gib": 14.079, + "max_temp_c": 49.68, + "max_fan_rpm": 2504.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-a5e 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-a5e prompt_tokens=27 store_time=0.000s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-a5e first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-a5e 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-a5e finished normally, 32 tokens in 0.7s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-a5e cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 0.67s (47.9 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000ffff3e2ff160 [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 0x0000ffff98c33160 [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 0x0000ffffb6c007a0 [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.8s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=0.8s\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 [1787973]\n", + "ready_s": 7.627935377997346, + "ttft_s": 0.181202776999271, + "total_s": 0.7959659919943078, + "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": 50.42591886414393, + "min_available_gib": 14.079, + "peak_temp_c": 49.68, + "round": 2, + "admission_available_gib": 15.832 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 15.999, + "max_temp_c": 49.68, + "max_fan_rpm": 2503.0 + }, + { + "t": 1.02, + "available_gib": 15.906, + "max_temp_c": 48.66, + "max_fan_rpm": 2503.0 + }, + { + "t": 2.03, + "available_gib": 15.775, + "max_temp_c": 49.52, + "max_fan_rpm": 2507.0 + }, + { + "t": 3.04, + "available_gib": 14.647, + "max_temp_c": 50.0, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.04, + "available_gib": 14.581, + "max_temp_c": 48.54, + "max_fan_rpm": 2491.0 + }, + { + "t": 5.07, + "available_gib": 14.535, + "max_temp_c": 49.693, + "max_fan_rpm": 2490.0 + }, + { + "t": 6.08, + "available_gib": 14.38, + "max_temp_c": 47.893, + "max_fan_rpm": 2503.0 + }, + { + "t": 7.09, + "available_gib": 14.082, + "max_temp_c": 49.64, + "max_fan_rpm": 2486.0 + }, + { + "t": 8.11, + "available_gib": 14.042, + "max_temp_c": 48.233, + "max_fan_rpm": 2503.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-9f8 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-9f8 prompt_tokens=27 store_time=0.000s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-9f8 first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-9f8 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-9f8 finished normally, 32 tokens in 0.7s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-9f8 cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 0.66s (48.4 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffeabcff160 [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 0x0000ffff0dcef160 [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 0x0000ffff2bc607a0 [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.8s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=0.8s\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 [1788238]\n", + "ready_s": 7.662931132996164, + "ttft_s": 0.2013615710020531, + "total_s": 0.809822911003721, + "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": 50.9481834949695, + "min_available_gib": 14.042, + "peak_temp_c": 50.0, + "round": 3, + "admission_available_gib": 16.002 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 16.149, + "max_temp_c": 47.626, + "max_fan_rpm": 2503.0 + }, + { + "t": 1.03, + "available_gib": 15.571, + "max_temp_c": 49.04, + "max_fan_rpm": 2516.0 + }, + { + "t": 2.03, + "available_gib": 14.735, + "max_temp_c": 49.373, + "max_fan_rpm": 2503.0 + }, + { + "t": 3.04, + "available_gib": 14.68, + "max_temp_c": 49.14, + "max_fan_rpm": 2503.0 + }, + { + "t": 4.04, + "available_gib": 14.539, + "max_temp_c": 48.68, + "max_fan_rpm": 2525.0 + }, + { + "t": 5.08, + "available_gib": 14.539, + "max_temp_c": 48.806, + "max_fan_rpm": 2490.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:25:58,507 - INFO - Starting httpd at 127.0.0.1 on port 43421...\n127.0.0.1 - - [28/Oct/2026 08:25:58] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:25:58] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:26:00,728 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:00,728 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:00,728 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:00,728 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:00] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:01,190 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:26:01,284 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:26:01,322 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:26:02,271 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:26:02,271 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:26:02,272 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:26:02,272 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:26:02] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:26:02,726 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:26:02,817 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:26:02,855 - INFO - Prompt processing progress: 27/27\nmodel: /home/sdolbec/.cache/mseries-metal2vk/qwen35-2b\nbackend: mlx-lm\nbind: 127.0.0.1:43421\ncontext: 4096 tokens\nweights: 1.60 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.14 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 4.60 GiB\nmem: headroom: 9.54 GiB\nverdict: FITS\n", + "ready_s": 4.497136623998813, + "ttft_s": 0.6175907999931951, + "total_s": 1.555075937998481, + "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": 33.06719087404371, + "min_available_gib": 14.539, + "peak_temp_c": 49.373, + "round": 3, + "admission_available_gib": 16.15 + } + ], + "summary": { + "rapid-120k": { + "ok_runs": 3, + "median_ttft_s": 0.181202776999271, + "median_total_s": 0.7959659919943078, + "median_decode_tps": 50.63092270745434, + "texts": [ + "ffbf23cb27bb" + ] + }, + "serve-120k": { + "ok_runs": 3, + "median_ttft_s": 0.6291410510020796, + "median_total_s": 1.5719500650011469, + "median_decode_tps": 33.06719087404371, + "texts": [ + "ffbf23cb27bb" + ] + } + } +} diff --git a/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json new file mode 100644 index 00000000..3d3c9364 --- /dev/null +++ b/mseries/local-ai/receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json @@ -0,0 +1,573 @@ +{ + "status": "complete", + "model_key": "qwen4b", + "model": "mlx-community/Qwen3.5-4B-MLX-4bit@32f3e8ecf65426fc3306969496342d504bfa13f3", + "weights_sha256": "5fb9acd0246866381cf8c5c354c6db1019f6498eec4ccb4f5edcc71ffeacb2db", + "kernel": "7.2.11-elementary-aurora72-wip4", + "driver": "Honeykrisp Mesa 9323171c12", + "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": 6.5, + "arms": [ + "rapid-120k", + "serve-120k" + ], + "concurrency": 1, + "runs": [ + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 16.139, + "max_temp_c": 50.048, + "max_fan_rpm": 2506.0 + }, + { + "t": 1.01, + "available_gib": 16.044, + "max_temp_c": 50.024, + "max_fan_rpm": 2511.0 + }, + { + "t": 2.02, + "available_gib": 15.988, + "max_temp_c": 50.225, + "max_fan_rpm": 2511.0 + }, + { + "t": 3.03, + "available_gib": 14.362, + "max_temp_c": 49.7, + "max_fan_rpm": 2502.0 + }, + { + "t": 4.04, + "available_gib": 13.445, + "max_temp_c": 50.604, + "max_fan_rpm": 2502.0 + }, + { + "t": 5.05, + "available_gib": 13.357, + "max_temp_c": 50.806, + "max_fan_rpm": 2502.0 + }, + { + "t": 6.05, + "available_gib": 13.251, + "max_temp_c": 50.419, + "max_fan_rpm": 2506.0 + }, + { + "t": 7.07, + "available_gib": 13.276, + "max_temp_c": 51.008, + "max_fan_rpm": 2511.0 + }, + { + "t": 8.08, + "available_gib": 13.273, + "max_temp_c": 50.024, + "max_fan_rpm": 2502.0 + }, + { + "t": 9.09, + "available_gib": 12.877, + "max_temp_c": 51.0, + "max_fan_rpm": 2489.0 + }, + { + "t": 10.1, + "available_gib": 12.601, + "max_temp_c": 50.604, + "max_fan_rpm": 2506.0 + }, + { + "t": 11.11, + "available_gib": 12.318, + "max_temp_c": 51.0, + "max_fan_rpm": 2520.0 + }, + { + "t": 12.13, + "available_gib": 12.22, + "max_temp_c": 50.217, + "max_fan_rpm": 2507.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-3b9 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-3b9 prompt_tokens=27 store_time=0.001s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-3b9 first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-3b9 tokens=59 (27 prompt + 32 output) stored=True time=0.000s cache_entries=5 cache_mem=365MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-3b9 finished normally, 32 tokens in 1.3s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-3b9 cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 1.28s (25.0 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe12377160 [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 0x0000fffed496b160 [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 0x0000fffef28c47a0 [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.4s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=1.4s\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 [1794446]\n", + "ready_s": 11.683497434998571, + "ttft_s": 0.20896173999790335, + "total_s": 1.41049779199966, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "A rainbow forms when sunlight hits raindrops in the air and gets split into its seven colors, creating a spectrum. Each raindrop acts like a tiny prism,", + "served_model": "/home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3", + "text_sha256": "bdb76d67e763d4e8ae7176616718338bafdab9ecab8cea1f66e0a73e706abe84", + "decode_tps": 25.800307821271, + "min_available_gib": 12.22, + "peak_temp_c": 51.008, + "round": 1, + "admission_available_gib": 16.139 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 15.744, + "max_temp_c": 50.79, + "max_fan_rpm": 2498.0 + }, + { + "t": 1.02, + "available_gib": 15.3, + "max_temp_c": 51.37, + "max_fan_rpm": 2507.0 + }, + { + "t": 2.03, + "available_gib": 13.464, + "max_temp_c": 50.798, + "max_fan_rpm": 2498.0 + }, + { + "t": 3.05, + "available_gib": 13.183, + "max_temp_c": 49.873, + "max_fan_rpm": 2510.0 + }, + { + "t": 4.06, + "available_gib": 12.838, + "max_temp_c": 49.68, + "max_fan_rpm": 2507.0 + }, + { + "t": 5.08, + "available_gib": 12.874, + "max_temp_c": 50.419, + "max_fan_rpm": 2528.0 + }, + { + "t": 6.09, + "available_gib": 12.898, + "max_temp_c": 50.62, + "max_fan_rpm": 2502.0 + }, + { + "t": 7.11, + "available_gib": 12.798, + "max_temp_c": 51.379, + "max_fan_rpm": 2502.0 + }, + { + "t": 8.12, + "available_gib": 12.83, + "max_temp_c": 50.427, + "max_fan_rpm": 2506.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:29:52,138 - INFO - Starting httpd at 127.0.0.1 on port 52773...\n127.0.0.1 - - [28/Oct/2026 08:29:52] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:29:52] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:29:54,985 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:29:54,985 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:29:54,985 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:54,985 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:54] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:55,538 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:29:55,722 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:29:55,792 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:29:57,422 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:29:57,423 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:29:57,423 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:29:57,423 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:29:57] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:29:57,996 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:29:58,179 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:29:58,249 - INFO - Prompt processing progress: 27/27\nmodel: /home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3\nbackend: mlx-lm\nbind: 127.0.0.1:52773\ncontext: 4096 tokens\nweights: 2.83 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 15.73 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 5.83 GiB\nmem: headroom: 7.90 GiB\nverdict: FITS\n", + "ready_s": 5.946359337998729, + "ttft_s": 0.8801874220007448, + "total_s": 2.49725482800568, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "A rainbow forms when sunlight hits raindrops in the air and gets split into its seven colors, creating a spectrum. Each raindrop acts like a tiny prism,", + "served_model": "/home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3", + "text_sha256": "bdb76d67e763d4e8ae7176616718338bafdab9ecab8cea1f66e0a73e706abe84", + "decode_tps": 19.170505746935692, + "min_available_gib": 12.798, + "peak_temp_c": 51.379, + "round": 1, + "admission_available_gib": 15.744 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 15.999, + "max_temp_c": 50.225, + "max_fan_rpm": 2506.0 + }, + { + "t": 1.03, + "available_gib": 15.537, + "max_temp_c": 51.0, + "max_fan_rpm": 2502.0 + }, + { + "t": 2.05, + "available_gib": 13.731, + "max_temp_c": 49.726, + "max_fan_rpm": 2489.0 + }, + { + "t": 3.06, + "available_gib": 13.447, + "max_temp_c": 50.814, + "max_fan_rpm": 2506.0 + }, + { + "t": 4.07, + "available_gib": 12.724, + "max_temp_c": 49.726, + "max_fan_rpm": 2507.0 + }, + { + "t": 5.1, + "available_gib": 12.718, + "max_temp_c": 50.62, + "max_fan_rpm": 2485.0 + }, + { + "t": 6.1, + "available_gib": 12.143, + "max_temp_c": 49.893, + "max_fan_rpm": 2507.0 + }, + { + "t": 7.11, + "available_gib": 10.493, + "max_temp_c": 50.024, + "max_fan_rpm": 2477.0 + }, + { + "t": 8.12, + "available_gib": 10.21, + "max_temp_c": 50.629, + "max_fan_rpm": 2507.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:30:03,888 - INFO - Starting httpd at 127.0.0.1 on port 32787...\n127.0.0.1 - - [28/Oct/2026 08:30:04] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:30:04] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:30:06,864 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:30:06,864 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:30:06,864 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:30:06,864 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:30:06] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:30:07,439 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:30:07,621 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:30:07,690 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:30:09,338 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:30:09,339 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:30:09,339 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:30:09,339 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:30:09] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:30:09,928 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:30:10,114 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:30:10,194 - INFO - Prompt processing progress: 27/27\nmodel: /home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3\nbackend: mlx-lm\nbind: 127.0.0.1:32787\ncontext: 4096 tokens\nweights: 2.83 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 16.01 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 5.83 GiB\nmem: headroom: 8.18 GiB\nverdict: FITS\n", + "ready_s": 6.128408614000364, + "ttft_s": 0.917230926999764, + "total_s": 2.543363333999878, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "A rainbow forms when sunlight hits raindrops in the air and gets split into its seven colors, creating a spectrum. Each raindrop acts like a tiny prism,", + "served_model": "/home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3", + "text_sha256": "bdb76d67e763d4e8ae7176616718338bafdab9ecab8cea1f66e0a73e706abe84", + "decode_tps": 19.063638278502022, + "min_available_gib": 10.21, + "peak_temp_c": 51.0, + "round": 2, + "admission_available_gib": 15.999 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.02, + "available_gib": 12.678, + "max_temp_c": 50.612, + "max_fan_rpm": 2507.0 + }, + { + "t": 1.03, + "available_gib": 12.587, + "max_temp_c": 49.88, + "max_fan_rpm": 2490.0 + }, + { + "t": 2.05, + "available_gib": 12.236, + "max_temp_c": 52.782, + "max_fan_rpm": 2503.0 + }, + { + "t": 3.05, + "available_gib": 10.499, + "max_temp_c": 50.427, + "max_fan_rpm": 2507.0 + }, + { + "t": 4.06, + "available_gib": 9.969, + "max_temp_c": 50.217, + "max_fan_rpm": 2503.0 + }, + { + "t": 5.07, + "available_gib": 9.923, + "max_temp_c": 50.201, + "max_fan_rpm": 2507.0 + }, + { + "t": 6.09, + "available_gib": 9.885, + "max_temp_c": 50.233, + "max_fan_rpm": 2506.0 + }, + { + "t": 7.12, + "available_gib": 9.962, + "max_temp_c": 50.612, + "max_fan_rpm": 2485.0 + }, + { + "t": 8.13, + "available_gib": 10.061, + "max_temp_c": 50.612, + "max_fan_rpm": 2511.0 + }, + { + "t": 9.13, + "available_gib": 9.189, + "max_temp_c": 50.225, + "max_fan_rpm": 2485.0 + }, + { + "t": 10.14, + "available_gib": 7.416, + "max_temp_c": 50.806, + "max_fan_rpm": 2502.0 + }, + { + "t": 11.15, + "available_gib": 6.544, + "max_temp_c": 51.201, + "max_fan_rpm": 2515.0 + }, + { + "t": 12.16, + "available_gib": 6.204, + "max_temp_c": 49.873, + "max_fan_rpm": 2506.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-986 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-986 prompt_tokens=27 store_time=0.001s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-986 first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-986 tokens=59 (27 prompt + 32 output) stored=True time=0.000s cache_entries=5 cache_mem=365MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-986 finished normally, 32 tokens in 1.3s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-986 cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 1.32s (24.2 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffee0183160 [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 0x0000ffff337ef160 [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 0x0000ffff55a887a0 [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.5s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=1.5s\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 [1795126]\n", + "ready_s": 11.030690714003867, + "ttft_s": 0.19814453000435606, + "total_s": 1.442681172004086, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "A rainbow forms when sunlight hits raindrops in the air and gets split into its seven colors, creating a spectrum. Each raindrop acts like a tiny prism,", + "served_model": "/home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3", + "text_sha256": "bdb76d67e763d4e8ae7176616718338bafdab9ecab8cea1f66e0a73e706abe84", + "decode_tps": 24.90886885434646, + "min_available_gib": 6.204, + "peak_temp_c": 52.782, + "round": 2, + "admission_available_gib": 12.682 + }, + { + "arm": "rapid-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 13.267, + "max_temp_c": 50.83, + "max_fan_rpm": 2502.0 + }, + { + "t": 1.03, + "available_gib": 13.11, + "max_temp_c": 50.62, + "max_fan_rpm": 2511.0 + }, + { + "t": 2.04, + "available_gib": 13.094, + "max_temp_c": 49.88, + "max_fan_rpm": 2503.0 + }, + { + "t": 3.07, + "available_gib": 12.901, + "max_temp_c": 49.386, + "max_fan_rpm": 2507.0 + }, + { + "t": 4.09, + "available_gib": 11.987, + "max_temp_c": 50.258, + "max_fan_rpm": 2498.0 + }, + { + "t": 5.11, + "available_gib": 11.341, + "max_temp_c": 50.241, + "max_fan_rpm": 2507.0 + }, + { + "t": 6.12, + "available_gib": 10.723, + "max_temp_c": 50.629, + "max_fan_rpm": 2507.0 + }, + { + "t": 7.13, + "available_gib": 10.418, + "max_temp_c": 49.386, + "max_fan_rpm": 2490.0 + }, + { + "t": 8.14, + "available_gib": 10.345, + "max_temp_c": 50.225, + "max_fan_rpm": 2507.0 + }, + { + "t": 9.16, + "available_gib": 10.353, + "max_temp_c": 49.88, + "max_fan_rpm": 2490.0 + }, + { + "t": 10.18, + "available_gib": 10.371, + "max_temp_c": 49.713, + "max_fan_rpm": 2503.0 + }, + { + "t": 11.19, + "available_gib": 10.011, + "max_temp_c": 50.258, + "max_fan_rpm": 2499.0 + }, + { + "t": 12.2, + "available_gib": 9.551, + "max_temp_c": 49.58, + "max_fan_rpm": 2507.0 + }, + { + "t": 13.22, + "available_gib": 9.433, + "max_temp_c": 50.056, + "max_fan_rpm": 2507.0 + }, + { + "t": 14.23, + "available_gib": 9.393, + "max_temp_c": 49.266, + "max_fan_rpm": 2507.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-52e 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-52e prompt_tokens=27 store_time=0.001s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-52e first token after 0.1s\nINFO:rapid_mlx.scheduler:[cache_store] request=chatcmpl-52e tokens=59 (27 prompt + 32 output) stored=True time=0.000s cache_entries=5 cache_mem=365MB\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-52e finished normally, 32 tokens in 1.3s\nINFO:rapid_mlx.engine_core:[stream_outputs] chatcmpl-52e cleanup done\nINFO:rapid_mlx.routes.chat:Chat completion (stream): 32 tokens in 1.28s (24.9 tok/s)\nWARNING:rapid_mlx._signal_observability:rapid-mlx received signal SIGTERM; thread stacks follow (faulthandler)\nThread 0x0000fffe9e147160 [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 0x0000ffff5bfff160 [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 0x0000ffff7de847a0 [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.4s\nINFO:rapid_mlx.service.helpers:[disconnect_guard] CLEANUP done, 35 chunks total, elapsed=1.4s\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 [1795733]\n", + "ready_s": 13.445570363001025, + "ttft_s": 0.2217090330013889, + "total_s": 1.428221920003125, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "A rainbow forms when sunlight hits raindrops in the air and gets split into its seven colors, creating a spectrum. Each raindrop acts like a tiny prism,", + "served_model": "/home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3", + "text_sha256": "bdb76d67e763d4e8ae7176616718338bafdab9ecab8cea1f66e0a73e706abe84", + "decode_tps": 25.693882207124236, + "min_available_gib": 9.393, + "peak_temp_c": 50.83, + "round": 3, + "admission_available_gib": 13.268 + }, + { + "arm": "serve-120k", + "stopped": null, + "samples": [ + { + "t": 0.01, + "available_gib": 13.01, + "max_temp_c": 48.733, + "max_fan_rpm": 2486.0 + }, + { + "t": 1.02, + "available_gib": 12.506, + "max_temp_c": 49.58, + "max_fan_rpm": 2507.0 + }, + { + "t": 2.03, + "available_gib": 10.469, + "max_temp_c": 49.266, + "max_fan_rpm": 2507.0 + }, + { + "t": 3.03, + "available_gib": 10.136, + "max_temp_c": 49.24, + "max_fan_rpm": 2486.0 + }, + { + "t": 4.04, + "available_gib": 10.21, + "max_temp_c": 49.253, + "max_fan_rpm": 2499.0 + }, + { + "t": 5.05, + "available_gib": 9.823, + "max_temp_c": 48.94, + "max_fan_rpm": 2507.0 + }, + { + "t": 6.07, + "available_gib": 9.803, + "max_temp_c": 49.086, + "max_fan_rpm": 2508.0 + }, + { + "t": 7.08, + "available_gib": 9.78, + "max_temp_c": 49.566, + "max_fan_rpm": 2465.0 + }, + { + "t": 8.1, + "available_gib": 9.815, + "max_temp_c": 48.733, + "max_fan_rpm": 2508.0 + } + ], + "log_tail": "shim: PROBE_ENV=None installing=False\nshim: uclamp placement applied (uclamp_min=1024)\n/home/sdolbec/.local/share/mlx-omarchy/venv/lib/python3.14/site-packages/mlx_lm/server.py:1730: UserWarning: mlx_lm.server is not recommended for production as it only implements basic security checks.\n warnings.warn(\n2026-10-28 08:31:20,661 - INFO - Starting httpd at 127.0.0.1 on port 52019...\n127.0.0.1 - - [28/Oct/2026 08:31:20] \"GET /health HTTP/1.1\" 200 -\n127.0.0.1 - - [28/Oct/2026 08:31:20] \"GET /v1/models HTTP/1.1\" 200 -\n2026-10-28 08:31:23,627 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:31:23,627 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:31:23,627 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:31:23,627 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:31:23] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:31:24,222 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:31:24,409 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:31:24,479 - INFO - Prompt processing progress: 27/27\n2026-10-28 08:31:26,235 - INFO - Prompt Cache: 0 sequences, 0.00 GB\n2026-10-28 08:31:26,235 - INFO - - assistant: 0 sequences, 0.00 GB\n2026-10-28 08:31:26,236 - INFO - - user: 0 sequences, 0.00 GB\n2026-10-28 08:31:26,236 - INFO - - system: 0 sequences, 0.00 GB\n127.0.0.1 - - [28/Oct/2026 08:31:26] \"POST /v1/chat/completions HTTP/1.1\" 200 -\n2026-10-28 08:31:26,817 - INFO - Prompt processing progress: 23/27\n2026-10-28 08:31:26,999 - INFO - Prompt processing progress: 26/27\n2026-10-28 08:31:27,065 - INFO - Prompt processing progress: 27/27\nmodel: /home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3\nbackend: mlx-lm\nbind: 127.0.0.1:52019\ncontext: 4096 tokens\nweights: 2.83 GiB\nkv cache: UNKNOWN -> flat 2.00 GiB margin included\nmargin: 3.00 GiB (workspace margin, unmeasured estimate)\nmem: MemAvailable: 13.01 GiB\nmem: safety reserve: 2.00 GiB\nmem: reservations: 0.00 GiB\nmem: model requirement: 5.83 GiB\nmem: headroom: 5.18 GiB\nverdict: FITS\n", + "ready_s": 6.369417191002867, + "ttft_s": 0.8897351320047164, + "total_s": 2.52347608099808, + "completion_tokens": 32, + "token_count_source": "usage", + "text": "A rainbow forms when sunlight hits raindrops in the air and gets split into its seven colors, creating a spectrum. Each raindrop acts like a tiny prism,", + "served_model": "/home/sdolbec/.cache/huggingface/hub/models--mlx-community--Qwen3.5-4B-MLX-4bit/snapshots/32f3e8ecf65426fc3306969496342d504bfa13f3", + "text_sha256": "bdb76d67e763d4e8ae7176616718338bafdab9ecab8cea1f66e0a73e706abe84", + "decode_tps": 18.974856460016372, + "min_available_gib": 9.78, + "peak_temp_c": 49.58, + "round": 3, + "admission_available_gib": 13.01 + } + ], + "summary": { + "rapid-120k": { + "ok_runs": 3, + "median_ttft_s": 0.20896173999790335, + "median_total_s": 1.428221920003125, + "median_decode_tps": 25.693882207124236, + "texts": [ + "bdb76d67e763" + ] + }, + "serve-120k": { + "ok_runs": 3, + "median_ttft_s": 0.8897351320047164, + "median_total_s": 2.52347608099808, + "median_decode_tps": 19.063638278502022, + "texts": [ + "bdb76d67e763" + ] + } + } +} diff --git a/mseries/local-ai/receipts/2026-10-28-honeykrisp-9323-adoption.md b/mseries/local-ai/receipts/2026-10-28-honeykrisp-9323-adoption.md new file mode 100644 index 00000000..6147f638 --- /dev/null +++ b/mseries/local-ai/receipts/2026-10-28-honeykrisp-9323-adoption.md @@ -0,0 +1,83 @@ +# Honeykrisp 9323171c12 and 120k submit budget — adoption, 2026-10-28 + +M1 Pro 32 GB (G13S C0), kernel `7.2.11-elementary-aurora72-wip4`, omarchy-mlx v0.7.33 +(`33630f9c`, mlx-lm 0.31.3). Adopted in #664 and installed on this machine. The live table +is in [`ENGINE-SCOREBOARD.md`](../ENGINE-SCOREBOARD.md); triage history is in issue #659. + +## Why we looked + +[coreglass](https://github.com/joshuaswarren/coreglass)'s daily ledger runs our exact MLX +build on a plain M1 at 40.8 tok/s (Qwen 2B, mlx-lm) with Honeykrisp `e7631595df`, and faster +again on its `9323171c12` "main" stack. Our M1 Pro has 2x the GPU cores of an M1 but decoded +at 36.0, on an older driver (`7faf04c065`, 2026-09-20) and with the 5,000 work-group submit +budget that omarchy-mlx uses for a board with no calibration row (G13S has none). + +## What changed + +| | before | after | +| --- | --- | --- | +| Private Honeykrisp ICD | `7faf04c065` | `9323171c12` (joshuaswarren/mesa-1, 2026-10-25) | +| MLX submit budget, `model-worker.py` MLX workers | unset → 5000 fallback | `MLX_OMARCHY_BATCH_WORK=120000` (environment wins) | +| MLX submit budget, `mseries-assistd.service` | 20000 | 120000 | + +Built with `honeykrisp-candidate.sh` (install.sh's exact Mesa flags) and installed into +`~/.local/share/mlx-omarchy/vulkan/`. The old driver is kept at +`~/.local/share/mlx-omarchy/vulkan-7faf04c065`. + +## Evidence + +**Correctness** (`mlx-gate.py`, CPU float32 reference over the same weights, 6 prompts, +32 greedy tokens, rules fixed before measuring): all 9 scheduling configs pass on both +drivers; pooled RMSE is identical (0.03647); the `SDPA_BF16_FAST` negative control fails on +both (R3: 0.04041 > 1.05 × 0.03647). Receipts: `2026-10-28-mlx-gate-sweep.json`, +`2026-10-28-mlx-gate-sweep-hk9323171c12.json`. + +**Speed** (`engine-compare.py`, 32 tokens, greedy, three rotated rounds, fresh process per run, +6 GiB reserve and 80 °C guard), median decode tok/s: + +| Model | old, default | old, 120k | new, default | new, 120k | +| --- | ---: | ---: | ---: | ---: | +| Qwen3.5 2B 4-bit | 36.0 | 47.2 | 48.9 | **56.4** | +| Qwen3.5 4B 4-bit | 18.6 | 24.8 | 23.1 | **27.0** | +| LFM3 1.7B 8-bit | 15.3 | 16.9 | 22.6 | **27.5** | + +Generated text was byte-identical between drivers for every model and budget. llama.cpp +(LFM2.5 1.2B Q4_K_M, `llama-server`, 3 requests) on the same driver swap: decode 56.6 → 61.0, +prompt 76 → 82 tok/s, identical text. After installation, the default path (no override) +decoded Qwen 2B at 53–54 tok/s with the same text. + +## Known risk and limits + +- Since `ff013781c00` the driver segfaults in `agx_ra` on software f16 cooperative matrices + when `AGX_SIMDMAT=1` (see `2026-10-19-honeykrisp-v3-candidate/`). That variable is opt-in + and unset in our stack; none of the gated paths reach it. +- Not measured: dictation speech workers (budget unchanged), long desktop sessions at 120k + beyond the short 2026-10-27 frame probes, contexts beyond the short prompts. + +## Rollback + +```bash +mv ~/.local/share/mlx-omarchy/vulkan ~/.local/share/mlx-omarchy/vulkan-9323171c12 +mv ~/.local/share/mlx-omarchy/vulkan-7faf04c065 ~/.local/share/mlx-omarchy/vulkan +systemctl --user restart mseries-assistd +``` + +and revert the `install.sh` pin in #664. + +## Server layer (after adoption, same driver and budget) + +The everyday model is served by `mlx-omarchy-serve` (mlx-lm backend, launched by +`model-worker.py`). On the new driver it loses much of the gain. Decode tok/s (for several +requests at once: total over all of them), three rotated rounds, identical text per request: + +| | Rapid-MLX 1d09cdb | mlx-omarchy-serve (mlx-lm 0.31.3) | +| --- | ---: | ---: | +| Qwen 2B, 1 request | 50.6 (TTFT 0.18 s) | 33.1 (TTFT 0.63 s) | +| Qwen 2B, 4 at once | 43.5 total | 19.9 total (TTFT ~4.2 s) | +| Qwen 2B, 8 at once | 48.1 total | 19.8 total (TTFT ~8.1 s) | +| Qwen 4B, 1 request | 25.7 | 19.1 | + +In-process MLX decodes Qwen 2B at 56.4. Upstream's mlx-lm 0.32 line carries a +`server-skip-logprob-read` patch that targets this server path; we stay on 0.31.3 until +omarchy-mlx moves its default. Moving the everyday model to Rapid-MLX is a separate decision. +Receipts: `2026-10-28-engine-compare-qwen{2b,4b}-short-hk9323171c12[-c4|-c8]-rapid-120k+serve-120k.json`. diff --git a/mseries/local-ai/scoreboard.py b/mseries/local-ai/scoreboard.py index 6b8df69f..29d43e69 100644 --- a/mseries/local-ai/scoreboard.py +++ b/mseries/local-ai/scoreboard.py @@ -15,6 +15,7 @@ '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), + 'serve-120k': ('mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model)', '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'} @@ -52,17 +53,21 @@ def measured_rows(): continue model = r.get('model_key', 'qwen2b') drv = r.get('driver', 'Honeykrisp Mesa 7faf04c065') + conc = r.get('concurrency', 1) for arm in r['arms']: - latest[(model, arm, r['max_tokens'], drv)] = (f, r) + latest[(model, arm, r['max_tokens'], drv, conc)] = (f, r) rows = [] - for (model, arm, tokens, drv), (f, r) in sorted(latest.items()): + for (model, arm, tokens, drv, conc), (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' + if arm == 'mlx-5k': + same = 'reference' + elif not base: + every = {x['text_sha256'] for x in r['runs'] if 'text_sha256' in x} + same = 'yes (engines in this run agree)' if len(every) == 1 else 'n/a (no MLX default in this run)' elif texts == base: same = 'yes' else: @@ -71,6 +76,8 @@ def measured_rows(): 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] + if conc > 1: + settings += f' · {conc} requests at once (decode = total tok/s)' gate = gates.get((model, drv, gate_key), (None, None))[0] if gate_key else None rows.append({ 'model': MODEL_NAMES.get(model, model), 'engine': engine, 'settings': settings, 'tokens': tokens, @@ -79,12 +86,12 @@ def measured_rows(): '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': drv, 'date': f.name[:10], - 'status': 'measured here', 'source': f'receipts/{f.name}', '_model': model}) + 'status': 'measured here', 'source': f'receipts/{f.name}', '_model': model, '_conc': conc}) # 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']] + for key in {(x['_model'], x['tokens'], x['_conc']) for x in rows}: + group = [x for x in rows if (x['_model'], x['tokens'], x['_conc']) == key and x['gate'] != 'FAIL' + and x['same_output'].startswith(('yes', 'reference')) and x['decode_tok_s']] if group: max(group, key=lambda x: x['decode_tok_s'])['best'] = '★' return rows @@ -93,17 +100,19 @@ def measured_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) + for x in sorted(rows, key=lambda x: (x['_model'], x['tokens'], x['_conc'], -(x['decode_tok_s'] or 0))): + groups.setdefault((x['model'], x['tokens'], x['_conc']), []).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 (model, tokens, conc), xs in groups.items(): + head = f'{model}, {tokens} tokens' + (f', {conc} requests at once (total)' if conc > 1 else '') + parts.append(f'{head}'); 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 '') + name = x['engine'].split(' (')[0].split(',')[0] + (' tuned' if '120000' in x['settings'] else ' default' if 'defaults' in x['settings'] else '') + name += ' · ' + x['driver'].split()[-1][:6] parts.append(f'{name}' f'' f'{v:.1f} tok/s{" ★" if x.get("best") else ""}')