MTPLX gets stuck when used with Hermes Agent
mtplx doctor --json
{
"diagnostics": {
"checks": [
{
"command": null,
"docs_url": "https://ml-explore.github.io/mlx/build/html/install.html",
"expected": "macOS >= 14.0 on Apple Silicon",
"fix": "Upgrade to macOS 14+; MLX does not support older macOS.",
"id": "os.macos_version",
"observed": "26.5",
"severity": "error",
"status": "pass"
},
{
"command": "python3 -c \"import platform; print(platform.machine(), platform.processor())\"",
"docs_url": "https://ml-explore.github.io/mlx/build/html/install.html",
"expected": "native arm64 Python, not Rosetta",
"fix": "Install/use a native arm64 Python. If needed, reinstall via Homebrew arm64 or uv.",
"id": "python.native_arm64",
"observed": {
"machine": "arm64",
"processor": "arm"
},
"severity": "error",
"status": "pass"
},
{
"command": null,
"docs_url": "https://ml-explore.github.io/mlx/build/html/install.html",
"expected": "Python >= 3.10",
"fix": "Install Python 3.10 or newer.",
"id": "python.version",
"observed": "3.13.13",
"severity": "error",
"status": "pass"
},
{
"command": "python3 -m pip install mlx",
"docs_url": "https://ml-explore.github.io/mlx/build/html/install.html",
"expected": "mlx importable",
"fix": "Install MLX into this same native Python environment.",
"id": "mlx.import",
"observed": {
"default_device": "Device(gpu, 0)",
"get_active_memory": 0,
"get_peak_memory": 0,
"mlx": "0.31.2",
"mlx_lm": "0.31.3"
},
"severity": "error",
"status": "pass"
},
{
"command": null,
"docs_url": null,
"expected": "estimated peak <= 80% of unified memory; 48 GiB+ recommended",
"fix": null,
"id": "resource.memory",
"observed": {
"estimated_peak_gib": 35.3,
"unified_memory_gib": 128.0
},
"severity": "warning",
"status": "pass"
},
{
"command": null,
"docs_url": null,
"expected": "free space for model + temp download + safety headroom",
"fix": "Free disk space or set MTPLX_MODEL_DIR to a larger volume.",
"id": "resource.model_cache_disk",
"observed": {
"cache_dir": "/Users/benmarte/.mtplx/models",
"free_gib": 3008.78,
"required_gib": 38.25
},
"severity": "warning",
"status": "pass"
},
{
"command": "mtplx pull Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
"docs_url": "https://huggingface.co/Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
"expected": "default model cached with config/tokenizer/index/mtp/runtime contract",
"fix": "Download the default model before first run.",
"id": "model.cache",
"observed": {
"exists": true,
"path": "/Users/benmarte/.mtplx/models/Youssofal--Qwen3.6-27B-MTPLX-Optimized-Speed",
"validation": {
"contract_arch_id": "qwen3-next-mtp",
"contract_error": null,
"contract_present": true,
"missing_files": [],
"ok": true,
"required_files": [
"config.json",
"tokenizer.json",
"model.safetensors.index.json",
"mtp.safetensors",
"mtplx_runtime.json"
]
}
},
"severity": "warning",
"status": "pass"
},
{
"command": "mtplx pull Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
"docs_url": "https://huggingface.co/Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
"expected": "Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
"fix": "Update DEFAULT_HF_MODEL_ID to the published optimized-speed repo.",
"id": "model.default_repo",
"observed": "Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
"severity": "error",
"status": "pass"
},
{
"command": null,
"docs_url": "https://docs.docker.com/desktop/setup/install/mac-install/",
"expected": "Docker Desktop installed for Open WebUI Docker path",
"fix": "Install Docker Desktop if you want the Open WebUI Docker integration.",
"id": "docker.binary",
"observed": "/usr/local/bin/docker",
"severity": "warning",
"status": "pass"
},
{
"command": null,
"docs_url": null,
"expected": "port free before starting mtplx serve, or already a healthy MTPLX server",
"fix": "Use --port 8001 or stop the existing process.",
"id": "port.mtplx_server",
"observed": {
"host": "127.0.0.1",
"open": true,
"port": 8000
},
"severity": "warning",
"status": "warn"
},
{
"command": null,
"docs_url": null,
"expected": "port free before starting Open WebUI, or already an Open WebUI container",
"fix": "Use a different Open WebUI host port or stop the process on 3000.",
"id": "port.openwebui",
"observed": {
"host": "127.0.0.1",
"open": true,
"port": 3000
},
"severity": "warning",
"status": "warn"
},
{
"command": null,
"docs_url": null,
"expected": "ThermalForge or TG Pro available for explicit --max only",
"fix": "Install ThermalForge only if you want opt-in fan boost.",
"id": "thermal.control",
"observed": {
"kind": "thermalforge",
"path": "/Users/benmarte/.mtplx/bin/thermalforge",
"version": {
"command": [
"/Users/benmarte/.mtplx/bin/thermalforge",
"--version"
],
"ok": true,
"returncode": 0,
"stderr": "",
"stdout": "0.1.0"
}
},
"severity": "warning",
"status": "pass"
},
{
"command": null,
"docs_url": null,
"expected": "Low Power Mode off for best sustained decode",
"fix": "Turn off Low Power Mode before benchmarking or serving long responses.",
"id": "power.low_power_mode",
"observed": {
"available": true,
"lowpowermode": null,
"powermode": "0",
"thermal": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded",
"thermal_ok": true
},
"severity": "warning",
"status": "pass"
},
{
"command": null,
"docs_url": null,
"expected": "no recorded thermal or performance warning",
"fix": "Let the Mac cool down or improve airflow before sustained benchmarks.",
"id": "power.thermal_pressure",
"observed": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded",
"severity": "warning",
"status": "pass"
}
],
"created_at": "2026-05-30T09:53:34-0400",
"host": {
"cache_dir": "/Users/benmarte/.mtplx/models",
"chip": "Apple M5 Max",
"disk_free_bytes": 3230656929792,
"disk_free_gib": 3008.78,
"mac_model": "Mac17,6",
"machine": "arm64",
"macos_version": "26.5",
"memory_bytes": 137438953472,
"memory_gib": 128.0,
"platform": "macOS-26.5-arm64-arm-64bit-Mach-O",
"processor": "arm",
"python_executable": "/opt/homebrew/var/mtplx/venv-0.3.7/bin/python",
"python_version": "3.13.13",
"system": "Darwin"
},
"overall": "warn",
"resources": {
"default_model_size_bytes": 16430000000,
"estimated_runtime_memory_bytes": 37904836480,
"required_download_free_bytes": 41075000000
},
"schema_version": 1,
"support_matrix": {
"preview_test_targets": [
"M3 Max",
"M4 Max",
"M3 Ultra / Mac Studio",
"M5 Max developer machine"
],
"supported": {
"default_model": "Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
"default_profile": "sustained",
"docker": "Docker Desktop current plus previous two macOS major releases",
"macos": ">= 14.0",
"platform": "Apple Silicon arm64 Mac",
"python": "native arm64 Python >= 3.10"
}
}
},
"environment": {
"git_branch": "hermes-refactor",
"git_status": "## hermes-refactor\nD .dockerignore\nD .env.beta\nD .env.docker\nD .env.local\nD .env.old.production\nD .env.production\nD .gitignore\nD .gitlab-ci.yml\nD README.md\nD beta-server.js\nD cloud/main.js\nD config.json\nD dashboard-config-docker.json\nD dashboard-config.json\nD docker-compose.yml\nD dockerfile\nD email-images/turn2-logo.png\nD mailgun.json\nD mongo_utils/insert-recommendationsCount.js\nD old-prod-server.js\nD org-server.js\nD package.json\nD prod-server.js\nD public/favicon.ico\nD public/favicon.png\nD public/index.html\nD public/manifest.json\nD public/robots.txt\nD public/turn2-logo-192.png\nD public/turn2-logo-512.png\nD public/turn2-logo.png\nD src/App.css\nD src/App.js\nD src/assets/images/homepage-banner.jpg\nD src/assets/images/homepage-banner1.jpg\nD src/assets/images/homepage-banner2.jpg\nD src/assets/images/homepage-image.jpg\nD src/assets/images/homepage-image1.jpg\nD src/assets/images/turn2-logo.png\nD src/assets/images/turn2-logo.svg\nD src/assets/pdfs/2019/KZJL-Upcoming-Dates-2019.pdf\nD src/assets/pdfs/2019/NYJL-Upcoming-Dates-2019.pdf\nD src/assets/pdfs/2020/KZJL-Upcoming-Dates-2020.pdf\nD src/assets/pdfs/2020/NYJL-Upcoming-Dates-2020.pdf\nD src/assets/pdfs/2021/KZJL-Upcoming-Dates-2021.pdf\nD src/assets/pdfs/2021/NYJL-Upcoming-Dates-2021.pdf\nD src/assets/pdfs/2022/KZJL-Recruitment-Dates-2022.pdf\nD src/assets/pdfs/2022/NYJL-Recruitment-Dates-2022.pdf\nD src/assets/pdfs/2023/KZJL-Recruitment-Dates-2023.pdf\nD src/assets/pdfs/2023/NYJL-Recruitment-Dates-2023.pdf\nD src/assets/pdfs/2024/KZJL-Recruitment-Dates-2024.pdf\nD src/assets/pdfs/2024/NYJL-Recruitment-Dates-2024.pdf\nD src/assets/pdfs/2025/KZJL-Recruitment-Dates-2025.pdf\nD src/assets/pdfs/2025/NYJL-Recruitment-Dates-2025.pdf\nD src/assets/pdfs/2026/KZJL-Recruitment-Dates-2026.pdf\nD src/assets/pdfs/2026/NYJL-Recruitment-Dates-2026.pdf\nD src/assets/sass/Colors.scss\nD src/assets/sass/FileUpload.scss\nD src/assets/sass/InfoBox.scss\nD src/assets/sass/Pageloader.scss\nD src/assets/sass/Recommendations.scss\nD src/assets/sass/ShortAnswers.scss\nD src/assets/sass/Step.scss\nD src/assets/sass/UserDashboard.scss\nD src/assets/sass/buttons.scss\nD src/assets/sass/flex.scss\nD src/assets/sass/home.scss\nD src/assets/sass/index.scss\nD src/assets/sass/mq.scss\nD src/assets/sass/nav.scss\nD src/assets/sass/titles.scss\nD src/assets/videos/jl-2021-recruitment-video.jpg\nD src/assets/videos/jl-2021-recruitment-video.mp4\nD src/assets/videos/turn2foundation.mp4\nD src/assets/videos/turn2foundation.png\nD src/components/Activities.jsx\nD src/components/AdminDashboard.jsx\nD src/components/CSVFile.jsx\nD src/components/CareerInterest.jsx\nD src/components/CollegeInterest.jsx\nD src/components/ContactDetails.jsx\nD src/components/Contract.jsx\nD src/components/EducationDetails.jsx\nD src/components/Email.jsx\nD src/components/FileUpload.jsx\nD src/components/Footer.jsx\nD src/components/GeneralInformation.jsx\nD src/components/GuardianDetails.jsx\nD src/components/Hobbies.jsx\nD src/components/InfoBox.jsx\nD src/components/LeadershipQualities.jsx\nD src/components/Loading.jsx\nD src/components/Login.jsx\nD src/components/MessageBox.jsx\nD src/components/Modal.jsx\nD src/components/Nav.jsx\nD src/components/PersonalDetails.jsx\nD src/components/ReadDetails.jsx\nD src/components/Recommendations.jsx\nD src/components/ShortAnswers.jsx\nD src/components/Step.jsx\nD src/components/Unauthorized.jsx\nD src/components/UserDashboard.jsx\nD src/components/old-AdminDashboard.jsx\nD src/index.css\nD src/index.js\nD src/logo.svg\nD src/pages/Applicant.jsx\nD src/pages/Home.jsx\nD src/pages/PasswordReset.jsx\nD src/pages/Recommendation.jsx\nD src/pages/Users/Users.jsx\nD src/serviceWorker.js\nD src/utils.js\nD templates/email-templates/forgot-password.html\nD templates/email-templates/forgot-password.txt\nD templates/email-templates/verification.html\nD templates/email-templates/verification.txt\nD templates/parse-templates/choose_password\nD templates/parse-templates/invalid_link.html\nD templates/parse-templates/org_choose_password\nD templates/parse-templates/password_reset_success.html\n?? .agents/\n?? .gitignore\n?? .hermes/\n?? AGENTS.md\n?? CLAUDE.md\n?? DEPLOYMENT.md\n?? README.md\n?? SPEC.md\n?? app/\n?? components.json\n?? components/\n?? convex/\n?? eslint.config.mjs\n?? lib/\n?? next.config.ts\n?? package-lock.json\n?? package.json\n?? postcss.config.mjs\n?? public/\n?? skills-lock.json\n?? specs/\n?? test-debug.mjs\n?? test-debug2.mjs\n?? test-debug3.mjs\n?? test-debug4.mjs\n?? test-debug5.mjs\n?? test-debug6.mjs\n?? test-debug7.mjs\n?? test-debug8.mjs\n?? tsconfig.json\n?? vercel.json",
"hf_path": null,
"mlx": {
"default_device": "Device(gpu, 0)",
"get_active_memory": 0,
"get_peak_memory": 0,
"mlx": "0.31.2",
"mlx_lm": "0.31.3"
},
"platform": "macOS-26.5-arm64-arm-64bit-Mach-O",
"project_root": "/Users/benmarte/Documents/gitlab/turn2/jetersleadersapplication.com",
"python_executable": "/opt/homebrew/var/mtplx/venv-0.3.7/bin/python",
"python_version": "3.13.13 (main, Apr 7 2026, 18:19:01) [Clang 21.0.0 (clang-2100.0.123.102)]",
"uv_path": "/Users/benmarte/.local/bin/uv"
},
"huggingface": {
"cache_dir": "/Users/benmarte/.mtplx/models",
"cache_exists": true,
"cache_writable": true,
"cached_models": 2,
"disk_free_bytes": 3230656929792,
"disk_free_gb": 3230.657,
"token_present": false,
"token_source": null
},
"policy": {
"benchmark_exactness_smoke_context": 2048,
"fanmax_counts_for_product_gate": false
},
"thermal_control": {
"available": true,
"clock_anchor_enabled": false,
"clock_anchor_policy": "explicit experimental only; never used for product claims",
"instructions": "Install ThermalForge and ensure the thermalforge CLI is on PATH.",
"selected": {
"kind": "thermalforge",
"path": "/Users/benmarte/.mtplx/bin/thermalforge",
"version": {
"command": [
"/Users/benmarte/.mtplx/bin/thermalforge",
"--version"
],
"ok": true,
"returncode": 0,
"stderr": "",
"stdout": "0.1.0"
}
},
"tools": [
{
"kind": "thermalforge",
"path": "/Users/benmarte/.mtplx/bin/thermalforge",
"version": {
"command": [
"/Users/benmarte/.mtplx/bin/thermalforge",
"--version"
],
"ok": true,
"returncode": 0,
"stderr": "",
"stdout": "0.1.0"
}
}
]
},
"tools": {
"powermetrics": "/usr/bin/powermetrics",
"python": "/opt/homebrew/var/mtplx/venv-0.3.7/bin/python",
"smc_atlas": null,
"smc_atlas_exists": false,
"sovereign": null,
"sovereign_exists": false,
"sudo": "/usr/bin/sudo"
}
}
First of all good job getting these speeds with Qwen and MTPLX.
I'm using MTPLX with Hermes Agent and I noticed that after about 25k context or so it just gets stuck and no progress is shown in the logs.
Exact command
mtplx quickstart --profile sustained --port 9000
Model path or repo id
Youssofal--Qwen3.6-27B-MTPLX-Optimized-Speed
Chip, RAM, macOS version
M5 MBP Max 128gb 18 Core CPU 40 Core GPU
Hi! I have the same issue with pi and opencode on mtplx 0.3.7
Exact command
mtplx quickstart --profile sustained --port 8000
Model path or repo id
Youssofal--Qwen3.6-27B-MTPLX-Optimized-Speed Youssofal--Qwen3.6-27B-MTPLX-Optimized-Quality
Chip, RAM, macOS version
Mac Studio M3 ultra 96gb
A new version of MTPLX will be releasing soon which fixes all tool calling and agent use.
1.0.0 reworked the Hermes path significantly: gateway repair, orphan tool tail recovery, hardened handoffs. There is a good chance your hang is gone. Can you retest on 1.0.0 and report back? Leaving this open until you confirm.
Still have hanging issue in KiloCode.
1.0.0 reworked the Hermes path significantly: gateway repair, orphan tool tail recovery, hardened handoffs. There is a good chance your hang is gone. Can you retest on 1.0.0 and report back? Leaving this open until you confirm.
Thanks, I will update and report back
1.0.0 reworked the Hermes path significantly: gateway repair, orphan tool tail recovery, hardened handoffs. There is a good chance your hang is gone. Can you retest on 1.0.0 and report back? Leaving this open until you confirm.
I've been testing with the Pi agent all day, haven't noticed any issues.
So it works now but the speed benefits are gone I get 27tps instead of the 55-60tps it gets on initial use, let me know if you need any logs or something that can help debug etc.
A lot of the path this report sits on changed since June: serial lane scheduling, warm prefix reuse for agent clients, cancel handling timing, and in 2.1.0 the hybrid-model restore fixes. If you are still around, could you retest on 2.1.0? If it still gets stuck, a fresh description of where it wedges would help a lot. Otherwise I will close this in a couple of weeks.
Hit what looks like the same postcommit-hang mechanism @AlexsJones described, but with a much smaller trigger — sharing in case a minimal repro helps narrow it down, since this doesn't need 25k context or a long session at all.
Minimal repro: a bare tools array hangs the very first request
Fresh mtplx quickstart, fully warmed up (waited 60s+ past the "MTPLX is ready" banner and the background warmup completion log line before sending anything). First request of the session, /v1/messages, tiny prompt, one trivial tool, no system prompt:
{
"model": "mtplx-qwen36-27b-optimized-speed",
"max_tokens": 30,
"tools": [
{"name": "Read", "description": "Read a file from the filesystem", "input_schema": {"type": "object", "properties": {"file_path": {"type": "string"}}, "required": ["file_path"]}}
],
"messages": [{"role": "user", "content": "Say hello in exactly 3 words."}]
}
This hangs indefinitely — tested to 50-60s client timeouts repeatedly, zero completion_tokens, server never returns. The identical request with the tools key removed (everything else unchanged) completes cleanly in single-digit seconds. Adding a system prompt on top of tools doesn't change anything either way — tools alone, with or without system, is sufficient and necessary to trigger it in my testing.
It's a genuine hang, not slow prefill
Watched the server process during a stuck request: ps -p <pid> -o %cpu,%mem,time showed 0.3–0.9% CPU with the TIME field barely advancing (tens of milliseconds of CPU time over 5 real seconds of wall clock). If this were a slow prefill on a big context I'd expect high sustained CPU/GPU dispatch activity; instead the process is sitting essentially idle while claiming a request is in flight. Server logs show the same mtplx_stream_silence pattern from @AlexsJones's report, firing every ~60s with completion_tokens: 0, scheduler_foreground_pending: 1, postcommit_active: false, pending_postcommit: null — consistent with a postcommit task from a prior generation stuck in a state that never releases the single serial-scheduler slot, blocking everything queued behind it. In my case, once one tools request got stuck, a subsequent plain (no-tools) request that would normally finish in ~6s instead took 23s, queued behind the stuck one.
Not scheduler-mode / batching-preset specific
Reproduced identically under both the CLI defaults (--scheduler-mode serial --batching-preset latency, what mtplx quickstart picks without those flags set) and after explicitly switching to --scheduler-mode cooperative --batching-preset agent. Plain (no-tools) requests got noticeably more reliable under cooperative/agent (consistently fast, no unprompted 45s+ hangs like I saw under serial/latency), but the tools-triggered hang reproduced identically under both configurations.
Environment
- Apple M1 Max, 64GB unified memory, macOS (Tahoe-era)
- MTPLX 2.1.0, DMG install (bundled Python 3.14.5 runtime), mlx 0.32.0, mlx-lm 0.31.3
- Model:
Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed-FP16— freshly re-downloaded viamtplx setup --model ... --download --force(confirmed clean via a direct forward-pass sanity check before this testing, so this isn't a corrupted-checkpoint artifact) --profile sustained,--ssd-session-cache off(disabled separately due to #169),--depth 3(mtplx's ownmtplx tunepicked D3 as best for this hardware, 1.4x AR)- Tested via both the actual Claude Code client (which sends
tools+ a largesystemprompt on every request — this is where I first hit it) and the minimal synthetic repro above, isolating thattoolsalone is sufficient without Claude Code's larger prompt/system context in the picture at all
Happy to run instrumented builds, grab a full debug log, or try --no-mtp / AR-only mode against the same repro if that's a useful data point — this is fully reproducible on demand with the JSON body above.
A lot of the path this report sits on changed since June: serial lane scheduling, warm prefix reuse for agent clients, cancel handling timing, and in 2.1.0 the hybrid-model restore fixes. If you are still around, could you retest on 2.1.0? If it still gets stuck, a fresh description of where it wedges would help a lot. Otherwise I will close this in a couple of weeks.
It still gets stuck with Hermes as of today -- I can't provide diagnostics yet (since this is my first time trying MTPLX), but perhaps what @phaedrus1992 shared is helpful.
Fresh wedge report (2026-08-04, MTPLX 2.5.1) — cache-miss prefill deadlocks the serial scheduler; decode never starts
Same symptom as the original: Hermes Agent (OpenClaw gateway) + MTPLX, requests hang with zero tokens until the client's 120s idle timeout kills them. Reproduced today with full telemetry.
- MTPLX 2.5.1 (
mtplx serve, launchd LaunchAgent) - macOS 27.0, MacBook Pro M1 Max, 64GB
- Model:
hawhyhb--Qwen3.6-35B-A3B-Uncensored-Heretic-MTPLX-4bit-FP16 - Flags:
--scheduler-mode serial --batching-preset solo --generation-mode mtp --ssd-session-cache on --context-window 131072(ram cache bounded 2 entries / 12GB,~/.mtplx/config.toml)
Timeline: healthy → wedge in one step
Server was healthy (decode 22-38 tok/s, prefill 249-592 tok/s) for 10 minutes, then all requests froze at once. Per-request log (request-log-8000.jsonl, logged_at_s):
time prompt cached compl el(s) decode_tok/s prefill_tok/s cache_src status session
12:08:29 336 0 1182 31.7 38.2 411.4 none OK
12:09:04 38630 34560 570 34.4 30.0 343.8 ssd OK
12:10:04 39237 38628 950 44.1 22.8 249.5 ram OK
12:12:29 16747 8192 290 26.1 34.2 592.2 ssd OK
12:14:06 355 0 3157 97.0 32.8 404.4 none OK
12:21:24 17009 0 0 373.2 0.0 0.0 ? CANCEL <- wedge starts
12:23:32 21877 0 0 120.0 0.0 0.0 ? CANCEL
12:25:33 21877 0 0 120.0 0.0 0.0 ? CANCEL
12:26:30 16751 0 0 297.3 0.0 0.0 ? CANCEL
12:32:18 41176 0 0 1060.6 0.0 0.0 ? CANCEL <- same session as 12:09/12:10, cache now MISS
All stuck requests: cached=0 (cache miss), decode_tok/s=0.0, prefill_tok/s=0.0 — the request was accepted but neither prefill nor decode ever ran. cancellation_reason: client_disconnected (OpenClaw idle timeout).
Scheduler telemetry during the wedge (mtplx_stream_silence)
Same response_id stays at completion_tokens=0 while pending queues grow:
elapsed=30s fg=1 idle=0 scheduler_active_kind=foreground postcommit_active=false
elapsed=92s fg=3 idle=37 scheduler_active_kind=foreground postcommit_active=false
elapsed=152s fg=4 idle=43 scheduler_active_kind=foreground postcommit_active=false
elapsed=335s fg=6 idle=43 scheduler_active_kind=foreground postcommit_active=false
elapsed=1004s fg=? idle=43 scheduler_active_kind=foreground postcommit_active=false
- Foreground pending climbs 1→6, idle pending climbs to 43.
postcommit_activestaysfalsethe whole time (no stuck postcommit — this is before decode).- CPU pinned ~80-93% during the wedge (spinning, not working).
- Client cancellation (120s/300s) does NOT release the lane — new requests queue behind the stuck one and also never start.
- Only a server restart clears it (fresh PID recovers to 41 tok/s, TTFT 0.4s).
Pattern: cache-miss full-prefill is the trigger
Every successful request either had a cache hit (cached=34560/38628/8192 from ssd/ram) or a tiny prompt (336-355 tokens). Every stuck request was a cache miss needing full prefill of 17-41K tokens — including the 12:32 request on anon-f3ea553ec, the same session that hit ram-cache (38628 tokens) at 12:10; when its cache was gone, full re-prefill of 41176 tokens deadlocked.
Working theory: with serial+solo, a cache-miss request that needs a large prefill (17-41K tokens, OpenClaw agent payload = system prompt + ~73 tool schemas + history) claims the foreground lane but never reaches the GPU decode stage (deadlock in prefill/session-restore/queue handoff, prefill_tok/s=0), and everything behind it queues forever. Active memory was ~38.3-38.8GB at wedge time vs 33.5-38.3GB healthy (64GB machine, bounded 12GB ram cache — not obviously OOM, no jetsam on mtplx).
Relations
- Matches @phaedrus1992's 2026-07-17 postcommit-hang report (no long session needed) — but here the wedge is before postcommit:
postcommit_active=falsefor the entire hang. - Matches the spirit of #121 (prompt cache can't extend across tool-call turns → agentic workloads re-prefill every turn): our wedge is the cache-miss re-prefill case deadlocking instead of just being slow.
Workaround in production
Watchdog that probes a tiny completion and restarts the server on decode_tok_s == 0 / prolonged silence (needed because cancellation doesn't release the lane).
Happy to run an instrumented build or attach the full request-log-8000.jsonl wedge window if helpful.
Status: the minimal repro from this thread (fresh daemon, first request to /v1/messages with a bare tools array, max_tokens 30) does not reproduce on 2.8.0: the request answers and the lane frees for the next one. 2.8.0 also bounded the wait between last content and the finish frame with live heartbeats and a stall watchdog, and cancels now emit a terminal frame, which covers the visible symptoms reported here. Leaving this open until a Hermes-shaped long soak confirms the underlying class is gone; if you can still wedge 2.8.0, the request log plus /health output would be gold.
2.9.1 changed the Hermes lane substantially: requests carry client identity and reasoning effort now, and the injected 65,536 output cap is stripped. That cap interaction matched several of the hangs described here. Anyone still seeing MTPLX get stuck with Hermes on 2.9.1, say so with mtplx trace output from a stuck session, that command now shows exactly where a request stalls. If it stays quiet here I will close this out in a week or so since most of the thread is about much older builds.
2.9.1 gave Hermes requests client identity and reasoning effort and removed its injected 65536 output cap, and 2.9.2 made serving passthrough by default. Update and retest, reopen anytime if it sticks again.