Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
4e7fea9
feat(audio): make the 100MB upload cap configurable (#3160)
aywengo Aug 27, 2026
2e3781a
fix(audio): finish configurable upload limit support (#3160)
jundot Aug 27, 2026
b1ed19d
feat: add native Qwen3.8 Flash Next multimodal support (#3169)
jonathan308 Aug 27, 2026
d3780f6
fix(ane): preserve GDN quality with recurrent-safe prefill offload (#…
jundot Aug 27, 2026
e918fa6
fix: preserve chat draft settings on first send (#3162)
jundot Aug 27, 2026
7d77098
fix: restore ANE compile cache compatibility (#3124)
jundot Aug 27, 2026
e0d7bfd
feat: harden Qwen3.8 Flash Next runtime, oQ, and Lightning MTP (#3174)
jundot Aug 27, 2026
06fdb5c
fix: normalize Qwen4 RMSNorm checkpoint dialects (#3181)
jundot Aug 27, 2026
4fc1d09
fix(load): chunk materialize_lazy_state eval to avoid Metal GPU watch…
scubamount Aug 27, 2026
dece501
fix: defer VLM parameter eval to chunked materialization (#3179)
jundot Aug 27, 2026
0514500
fix: limit lazy VLM loading to qwen4_exp (#3179)
jundot Aug 27, 2026
18b97d1
fix(admin): retry failed Xet downloads over HTTP (#3158) (#3186)
jundot Aug 27, 2026
c520d7e
feat: add GLM-5.3-Flash support
jundot Aug 27, 2026
3ae7778
fix: complete GLM-5.3 multimodal and oQe support
jundot Aug 27, 2026
9b93696
fix(vlm): preserve GLM batch convolution state
DiscoStew6082 Aug 27, 2026
9cc8d38
fix(vlm): honor model-owned batch cache conversion (#3188)
DiscoStew6082 Aug 27, 2026
7519683
fix(updater): clean up mounted update DMGs before relaunch (#3190)
chenqianhe Aug 27, 2026
7e6f422
feat(hy_v3): fuse routed MoE gate and up projections (#3055)
chenqianhe Aug 27, 2026
bceb44e
fix: cover GLM-5.3 oQe sparse calibration paths
jundot Aug 27, 2026
62bc9d6
chore: bump version to 0.6.3
jundot Aug 27, 2026
12844b4
fix(admin): let the Lightning MTP toggle through for Qwen3.8 Flash Ne…
williamxie1989 Aug 27, 2026
19f9125
fix: align Qwen4 Lightning MTP weight detection (#3200)
jundot Aug 27, 2026
85708e4
chore: finalize 0.6.3 release
jundot Aug 27, 2026
a20ec09
formula: bump to 0.6.3
github-actions[bot] Aug 27, 2026
701a6cc
fix: isolate cross-engine patches between DFlash and Lightning MTP (#…
e-Evolution Aug 29, 2026
5463c0f
fix: harden DFlash and Lightning MTP patch composition
jundot Aug 29, 2026
107ff1f
fix(glm5_next): copy strided inputs before the affine prefill tile (#…
davidtorcivia Aug 29, 2026
7aec9df
fix(scheduler): materialize restored mRoPE seed (#3279)
hesara Aug 29, 2026
ffc2d05
fix(scheduler): stop Metal resource-count exhaustion on ArraysCache h…
Pietroski Aug 29, 2026
72626eb
test: cover decode cache materialization boundary (#3227)
jundot Aug 29, 2026
5dba970
fix: handle Qwen4 late-join batching (#3246)
daveycodez Aug 29, 2026
266e9eb
fix: remove unreachable MTP fold guard (#3246)
jundot Aug 29, 2026
b6a4fca
test: cover QSA cache batch extension edges (#3214)
jundot Aug 29, 2026
1abb951
fix: apply sanitize wrapper to symlinked models (#3224)
ChildOTK Aug 29, 2026
4d274ba
fix(glm5_next): register the model in mlx-vlm's prompt MODEL_CONFIG (…
BTankut Aug 29, 2026
dd183fb
test: cover GLM-5.3 mixed image history (#3278)
JordiPosthumus Aug 29, 2026
9480045
fix: harden symlinked checkpoint shard matching
jundot Aug 29, 2026
e0f6eaa
fix(qwen4_exp): restore PLE state after rejected Lightning MTP drafts…
DT-HJ Aug 29, 2026
0bb2b5a
fix(oq): calibrate Qwen4 through RAM-safe proxies (#3269)
actualrealhuman Aug 29, 2026
ea3cc9a
fix: simplify Qwen4 calibration proxy policy
jundot Aug 29, 2026
d451552
refactor(qwen4_exp): simplify PLE rollback snapshots
jundot Aug 29, 2026
9934b28
fix(qwen4_exp): bound QSA long-prefill memory (#3283)
jundot Aug 29, 2026
119d204
fix(cache): normalize mixed Qwen4 QSA positions (#3219)
rsnow Aug 29, 2026
fe8fe7e
feat(cache): expose hybrid boundary diagnostics (#3249)
MDX-Tom Aug 29, 2026
4a082f4
fix: allow TurboQuant with Lightning MTP in macOS app (#3254)
popfido Aug 29, 2026
dc18a18
fix(admin): persist mtp_num_draft_tokens via settings PUT (#3280)
yanzhaohui1999 Aug 29, 2026
b798e65
fix(cache): keep boundary diagnostics accurate
jundot Aug 29, 2026
64e63cb
fix(admin): validate Lightning MTP draft depth (#3280)
jundot Aug 29, 2026
8706683
fix(cache): initialize boundary diagnostics in snapshot test
jundot Aug 29, 2026
7467dce
perf(qwen4): flatten exact QSA prefill and accelerate Lightning MTP (…
jonathan308 Aug 29, 2026
0a6ae09
fix(qwen4): gate wide prefill on sparse native kernel (#3244)
jundot Aug 29, 2026
1d78261
chore: bump version to 0.6.4
jundot Aug 29, 2026
e008a66
formula: bump to 0.6.4
github-actions[bot] Aug 29, 2026
8b2ade3
build: upgrade MLX to 0.32.2 with runtime compatibility (#3332)
jundot Aug 31, 2026
dc312e6
fix: validate boundary snapshots before materialization
jundot Aug 31, 2026
61e1027
fix(qwen4_exp): gather text mRoPE prefills and stop pricing them as d…
wolfyy970 Sep 1, 2026
8adac5f
test(qwen4_exp): treat broadcast text mRoPE as gathered-eligible on d…
wolfyy970 Sep 1, 2026
262a2c6
fix(qwen4_exp): pin mRoPE equal-plane cache to the live array (#3350)
wolfyy970 Sep 1, 2026
ebf4f1f
fix: handle multi-row VLM rope deltas (#3343)
jundot Sep 1, 2026
44e51e3
fix(qwen4_exp): survive batched QSA offset and mixed-rank indexer ext…
wolfyy970 Sep 1, 2026
61cd558
fix(qwen4_exp): price gathered QSA at admission, not only during forw…
wolfyy970 Sep 1, 2026
2246290
fix(qwen4): handle mixed-rank QSA cache joins (#3369)
astro-15-alive Sep 2, 2026
e680587
fix(qwen4): harden QSA batch cache joins (#3294)
jundot Sep 2, 2026
ffb5072
fix(qwen4): preserve gathered prefill across mRoPE rebinds (#3355)
jonathan308 Sep 2, 2026
6f76565
fix(qwen4_exp): price gathered QSA prefill memory (#3351)
jundot Sep 2, 2026
ba45eaa
fix(qwen4): isolate gathered prefill memory history (#3350)
jundot Sep 2, 2026
9ed3be2
fix(qwen4): reject corrupt QSA prefix states (#3294)
jundot Sep 2, 2026
e1280a2
refactor: simplify Qwen4 prefill memory accounting (#3350)
jundot Sep 2, 2026
1f6f4e2
fix(engine_pool): keep the Qwen4 PLE table resident across a model sw…
pedroberaldo87 Sep 2, 2026
33ad1ea
fix: preserve Qwen4 PLE mmap admission fallback
jundot Sep 2, 2026
1a7ab33
fix: keep restored-prefix VLM prefill inputs off the default stream (…
jundot Sep 2, 2026
e467261
fix(mac): align the macOS app UI with system conventions (#3376)
Lwrless Sep 3, 2026
080a2d9
fix(mtp): the chain rollback could not find the method behind the VLM…
Sep 2, 2026
026edef
fix(qwen4_exp): restore gathered QSA for broadcast text mRoPE lost in…
ddark-il Sep 4, 2026
30b085c
perf(qwen4_exp): keep narrow multi-row text windows on the official Q…
ddark-il Sep 4, 2026
8654ba8
perf(qwen4_exp): keep the pooled QSA index prefix across cache trims
ddark-il Sep 4, 2026
ecbd955
fix(qwen4_exp): stop QSA prefill-path logger spamming on every prefill
mvdbos Sep 5, 2026
72d76c0
fix(qwen4_exp): throttle QSA path logging when keys alternate
mvdbos Sep 5, 2026
ffa19d1
fix(qwen4_exp): bound masked SDPA256 memory pricing
mvdbos Sep 5, 2026
df5c6e3
fix(qwen4_exp): safely re-expand prefill chunks
mvdbos Sep 5, 2026
aa897e7
fix(qwen4_exp): attribute prefill overhead to runtime route
mvdbos Sep 5, 2026
ce191fb
fix(scheduler): a throttled prefill chunk must never grow past the to…
williamxie1989 Sep 6, 2026
d1743d8
fix(qwen4_exp): avoid double-counting retained prefill buffers
mvdbos Sep 6, 2026
14e11f2
fix(qwen4_exp): keep reclaimed overhead route-local
mvdbos Sep 6, 2026
9a544e3
fix: preserve external prefill progress across eviction pauses (#3414)
pedroberaldo87 Sep 6, 2026
59e497d
fix: preserve prefill progress on safety-guard eviction (#3414)
jundot Sep 6, 2026
bb02e07
fix(dflash): handle memory-pressure aborts (#3424)
saintlits Sep 6, 2026
2f6aa9a
fix(scheduler): refuse prefix reuse for unreconstructible cache class…
contrapuntal Sep 6, 2026
455090a
fix: clean up DFlash cancellations and report memory aborts (#3424)
jundot Sep 6, 2026
b2cb698
fix: skip storage for unsupported cache layouts (#3445)
jundot Sep 6, 2026
3aa0200
Merge pull request #1 from mvdbos/fix/qwen4-qsa-path-log-dedup
ddark-il Sep 6, 2026
4e6eba5
fix(ane): clear the per-module state caches when releasing ANE banks …
andyoneal Sep 6, 2026
034ceee
fix(memory): refresh ANE prefill transient reserve after bank compile…
Cianidos Sep 6, 2026
40b9f23
fix(engine_pool): escalate prefill headroom past a no-op first pass (…
Cianidos Sep 6, 2026
bccb7af
refactor: simplify ANE memory handling and fix cache test stub
jundot Sep 6, 2026
a0a1685
fix(qwen4_exp): bound masked SDPA256 memory pricing (#3461)
mvdbos Sep 6, 2026
1b8d93b
fix: bound prefill chunks to remaining tokens (#3475)
jundot Sep 6, 2026
de57ab7
refactor: shorten prefill tail comments
jundot Sep 6, 2026
e69d707
fix(mtp): the reconcile re-prefill runs in scheduler-sized chunks, no…
pedroberaldo87 Sep 6, 2026
c40bf72
fix: preserve prefill chunk size during MTP reconcile
jundot Sep 6, 2026
aeb1f68
perf: reserve QSA indexer capacity for prefill (#3455)
williamxie1989 Sep 6, 2026
2393893
fix: honor full QSA prefill reservations (#3455)
jundot Sep 6, 2026
58df5bd
fix(qwen4_exp): correct long-context prefill memory accounting (#3465)
jundot Sep 6, 2026
d90d6fc
fix: account for prefill pool releases and preserve chunk sizing (#3465)
jundot Sep 6, 2026
8827f09
fix(scheduler): gate cache-freshness deferral on restorable overlap (…
ivaniguarans Sep 6, 2026
3837bc2
merge: restore Qwen4 QSA eligibility and pooled cache reuse (#3428)
jundot Sep 6, 2026
b20f456
fix(scheduler): recover boundary-aligned live cache stores (#3288)
apcooley Sep 6, 2026
7f657a2
merge: resolve MTP rollback through VLM adapters (#3416)
jundot Sep 6, 2026
638f82e
perf: separate affine MoE dispatch thresholds (#3409)
pedroberaldo87 Sep 6, 2026
163b527
fix: segment oversized M5 sorted gather calls (#3432)
ddark-il Sep 6, 2026
df4e77a
fix: preserve reusable prefixes at request completion (#3102, #2384)
jundot Sep 6, 2026
2aab2ce
fix: scope SDPA headroom providers to engine workers (#3333)
jundot Sep 6, 2026
8327920
fix: remove QSA decode sync and restore MXFP4 dispatch (#3428, #3409)
jundot Sep 6, 2026
aa8db73
build(deps): bump ddgs from 9.15.0 to 9.16.0 (#3474)
dependabot[bot] Sep 6, 2026
0ca0953
fix: yield between contended prefill chunks (#3487)
chenqianhe Sep 8, 2026
0b1103b
fix(eval): stop a comma from swallowing the GSM8K answer (#3484)
MaxFreedomPollard Sep 8, 2026
6645b4e
fix(qwen35_prefill): drop the wrong NAX qmm tile variant 6, add a til…
ddark-il Sep 8, 2026
5f62b09
chore: remove standalone NAX tile benchmark
jundot Sep 8, 2026
be581eb
perf(qwen4_exp): host-side decode optimizations for Qwen3.8-Flash-Nex…
Rascal Sep 8, 2026
7ee3b74
fix(qwen4_exp): handle lazy fused kernel compilation (#3469)
jundot Sep 8, 2026
13ef86f
feat(cluster): add trusted discovery and pairing foundation (#3155)
jonathan308 Sep 8, 2026
5a2871a
fix(cluster): preserve pairing endpoints and check host keys
jundot Sep 8, 2026
8041983
cluster v2 Module D checkpoint: path_map schema v2 + modelsync + mani…
jonathan308 Aug 19, 2026
4e2e60d
fix: route rsync through shared cluster SSH policy; fake path_map dec…
jonathan308 Aug 19, 2026
a75eeb3
planner: RAM-proportional largest-remainder allocator for N-node plans
jonathan308 Aug 19, 2026
e6803de
fix(cluster): preserve proportional allocation routing
jonathan308 Aug 26, 2026
142c0b3
test: proportional allocator — ratios, min-1, tie-breaks, ceilings, K…
jonathan308 Aug 19, 2026
596ed74
runtime: one-action POST /admin/api/cluster/replan (deactivate→re-pla…
jonathan308 Aug 18, 2026
eb92cf1
test: replan endpoint — preview/apply dance, busy refusal, derivation…
jonathan308 Aug 19, 2026
c6a694d
test: fix busy-pool replan test — an unchanged plan short-circuits th…
jonathan308 Aug 19, 2026
a7ad928
cluster: thread path_map through the replan endpoint
jonathan308 Aug 19, 2026
d9ee584
Preserve measured rank speeds across replans
jonathan308 Aug 22, 2026
9f490c0
Preserve TP topology across cluster replans
jonathan308 Aug 23, 2026
fabe48f
feat(cluster): recommend tensor on known-fast links in catalogue
jonathan308 Aug 22, 2026
b5dcf7b
fix(cluster): strip IPv6 zone ids, order routable IPs first in hostfiles
jonathan308 Aug 22, 2026
2a131e2
fix(cluster): reconcile portable paths and planning lint
jonathan308 Aug 26, 2026
058912c
test(cluster): mark backend-first replan seam explicitly
jonathan308 Aug 26, 2026
3218bf1
fix(cluster): protect remote rsync paths from shell interpretation
jonathan308 Aug 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 35 additions & 3 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# we build against the job's Python and pin it for CMake explicitly.
run: |
python -m pip install --upgrade pip
python -m pip install build setuptools wheel "cmake>=3.27" "nanobind==2.13.0" "mlx==0.32.0"
python -m pip install build setuptools wheel "cmake>=3.27" "nanobind==2.15.0" "mlx==0.32.2"
export CMAKE_ARGS="-DPython_EXECUTABLE=$(python -c 'import sys; print(sys.executable)')"
python -m build --wheel --no-isolation

Expand All @@ -60,14 +60,46 @@ jobs:
cd /tmp
/tmp/wheel-smoke/bin/python - <<'PY'
import importlib
import mlx.core as mx

failed = []
for pkg in ("bonsai", "glm_moe_dsa", "minimax_m3", "qwen35_prefill"):
for pkg in (
"bonsai",
"decode_fast",
"glm_moe_dsa",
"minimax_m3",
"qwen35_prefill",
):
fast = importlib.import_module(f"omlx.custom_kernels.{pkg}.fast")
ok = bool(fast.is_native_available())
print(f"{pkg}: native_available={ok} import_error={fast.import_error()}")
if not ok:
failed.append(pkg)
raise SystemExit(f"native kernels missing from wheel: {failed}" if failed else 0)
if failed:
raise SystemExit(f"native kernels missing from wheel: {failed}")

# Exercise a real primitive from the newest native package, not just
# its nanobind ABI probe, so the wheel also proves dylib/metallib
# lookup and MLX 0.32.2 runtime dispatch.
from omlx.custom_kernels.decode_fast import fast as decode_fast

mx.random.seed(3142)
q = mx.random.normal((1, 4, 1, 64)).astype(mx.float16)
k = mx.random.normal((1, 2, 128, 64)).astype(mx.float16)
v = mx.random.normal((1, 2, 128, 64)).astype(mx.float16)
if not decode_fast._ext.sdpa_decode_supported(q, k, v):
raise SystemExit("decode_fast rejected the wheel smoke shape")
out = decode_fast.sdpa_decode(q, k, v, 64 ** -0.5)
ref = mx.fast.scaled_dot_product_attention(
q, k, v, scale=64 ** -0.5
)
mx.eval(out, ref)
error = mx.max(
mx.abs(out.astype(mx.float32) - ref.astype(mx.float32))
).item()
print(f"decode_fast: shape={out.shape} max_abs={error}")
if error >= 5e-3:
raise SystemExit(f"decode_fast mismatch: max_abs={error}")
PY

- name: Upload wheel artifact
Expand Down
8 changes: 4 additions & 4 deletions Formula/omlx.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
class Omlx < Formula
CUSTOM_KERNELS = %w[bonsai glm_moe_dsa minimax_m3 qwen35_prefill].freeze
CUSTOM_KERNELS = %w[bonsai decode_fast glm_moe_dsa minimax_m3 qwen35_prefill].freeze

desc "LLM inference server optimized for Apple Silicon"
homepage "https://github.com/jundot/omlx"
url "https://github.com/jundot/omlx/archive/refs/tags/v0.6.3rc3.tar.gz"
sha256 "1d08ff4585eb796f34f56d266b69cae65b51a48d98a4b213caca094d7c82a839"
url "https://github.com/jundot/omlx/archive/refs/tags/v0.6.4.tar.gz"
sha256 "5d8781c0c6a782e9b90f071d36b0d8dbe6161fafb5fef5e3f0d8ac71da214b70"
license "Apache-2.0"

head "https://github.com/jundot/omlx.git", branch: "main"

option "with-custom-kernel",
"Build native custom kernels for Bonsai, GLM-5.2, MiniMax M3 and Qwen3.5/3.6 acceleration"
"Build native custom kernels for Bonsai, GLM-5.2, MiniMax M3 and Qwen3.5/3.6/4 acceleration"
option "with-grammar", "Install xgrammar for structured output (requires torch, ~2GB)"

depends_on "rust" => :build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,5 +435,5 @@ Contributions are welcome! See [Contributing Guide](docs/CONTRIBUTING.md) for de
- [mlx-embeddings](https://github.com/Blaizzy/mlx-embeddings) - Embedding model support for Apple Silicon
- [dflash-mlx](https://github.com/bstnxbt/dflash-mlx) - Block diffusion speculative decoding on Apple Silicon
- [MTPLX](https://github.com/youssofal/mtplx) - Lightning MTP's verify-shape Metal kernels are powered by MTPLX by Youssof Altoukhi, which also inspired the depth-k pipeline
- [mlx-serve](https://github.com/ddalcu/mlx-serve) - The fused GDN verify prework kernel is adapted from mlx-serve's port of the mlxfast-challenge qwen35_packed_gdn_prework kernel
- [mlx-serve](https://github.com/ddalcu/mlx-serve) - The fused GDN verify prework kernel is adapted from mlx-serve's port of the mlxfast-challenge qwen35_packed_gdn_prework kernel; Qwen4 QSA's 128-bit K/V staging is adapted from mlx-serve's MIT-licensed `msv_attn_p256` kernel
- [SiliconScope](https://github.com/kennss/SiliconScope) - The menu bar statistics take their design and rendering approach from SiliconScope by Kennt Kim, which also inspired the energy-efficient re-render gating
108 changes: 108 additions & 0 deletions apps/omlx-mac/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -17102,6 +17102,54 @@
}
}
},
"server.advanced.max_audio_upload_size" : {
"comment" : "Advanced row label for the audio upload size limit",
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Maximum Audio Upload Size"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Максимальный размер загрузки аудио"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "最大音频上传大小"
}
}
}
},
"server.advanced.max_audio_upload_size.sub" : {
"comment" : "Sublabel describing the audio upload size limit",
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Maximum file size accepted by audio transcription and processing endpoints. Higher values can increase memory use for concurrent requests."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Максимальный размер файла для расшифровки и обработки аудио. Большие значения могут увеличить использование памяти при одновременных запросах."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "音频转录和处理接口接受的最大文件大小。较大的值可能会增加并发请求的内存使用量。"
}
}
}
},
"server.advanced.sse_keepalive" : {
"comment" : "Advanced row label for the SSE keep-alive mode picker",
"extractionState" : "manual",
Expand Down Expand Up @@ -17342,6 +17390,30 @@
}
}
},
"server.error.audio_upload_size_invalid" : {
"comment" : "Server screen error when the audio upload size is invalid",
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Maximum Audio Upload Size must be a positive value such as 100MB or 1GB."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Максимальный размер загрузки аудио должен быть положительным значением, например 100MB или 1GB."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "最大音频上传大小必须是正值,例如 100MB 或 1GB。"
}
}
}
},
"server.error.base_path_empty" : {
"comment" : "Server screen error when Base Path is empty on Apply",
"extractionState" : "manual",
Expand Down Expand Up @@ -19991,6 +20063,42 @@
}
}
},
"settings.advanced.qwen4_ssd_offload.forced" : {
"comment" : "Sublabel when Qwen4 PLE SSD offload is forced by memory limits",
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Required because resident loading exceeds the configured model-memory limit."
}
}
}
},
"settings.advanced.qwen4_ssd_offload.label" : {
"comment" : "Row label for the Qwen4 PLE SSD mmap toggle",
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "SSD N-gram Offload (Qwen4 only)"
}
}
}
},
"settings.advanced.qwen4_ssd_offload.sub" : {
"comment" : "Sublabel for the Qwen4 PLE SSD mmap toggle",
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Keep the PLE N-gram table on SSD to save memory. Prefill can be slower after context changes."
}
}
}
},
"settings.advanced.experimental.section" : {
"comment" : "Section header above the Experimental settings group",
"extractionState" : "manual",
Expand Down
33 changes: 32 additions & 1 deletion apps/omlx-mac/Sources/AppView/AppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ struct AppView: View {
let theme = scheme == .dark ? OMLXTheme.dark : OMLXTheme.light
let section = selectedSection

NavigationSplitView {
// The sidebar is the only way to switch screens, so it must never
// collapse: pin visibility to `.all` and remove the toolbar toggle,
// matching System Settings.
NavigationSplitView(columnVisibility: .constant(.all)) {
SettingsSidebar(selection: bindingForSelection())
.toolbar(removing: .sidebarToggle)
} detail: {
ContentScaffold(section: section, detailTitle: detailTitle) {
screen(for: section)
Expand Down Expand Up @@ -557,10 +561,37 @@ private struct ContentScaffold<Content: View>: View {
}
}
.navigationTitle(titleText)
.modifier(ToolbarHeightKeeper())
.background(theme.windowBg)
}
}

/// macOS collapses the unified toolbar to a compact title bar on panes
/// that contribute no toolbar items. With the sidebar toggle removed,
/// only screens with their own items (Logs, Model Settings) kept the
/// full-height bar — so every screen contributes an invisible item to
/// keep the height uniform. On macOS 26 the Liquid Glass capsule that
/// toolbars draw around every item must be hidden explicitly, or the
/// invisible item shows up as a small vertical bar.
private struct ToolbarHeightKeeper: ViewModifier {
func body(content: Content) -> some View {
if #available(macOS 26.0, *) {
content.toolbar {
ToolbarItem {
Color.clear.frame(width: 1, height: 1)
}
.sharedBackgroundVisibility(.hidden)
}
} else {
content.toolbar {
ToolbarItem {
Color.clear.frame(width: 1, height: 1)
}
}
}
}
}

/// Composite identity used by `ContentScaffold`'s deep-link scroll
/// `.task(id:)` so the scroll fires whenever either the section or the
/// anchor changes — and re-fires if the same anchor is requested twice.
Expand Down
4 changes: 2 additions & 2 deletions apps/omlx-mac/Sources/AppView/Screens/AboutScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ private struct HeroCard: View {
.padding(18)
.frame(maxWidth: .infinity, alignment: .leading)
.background(theme.groupBg)
.clipShape(RoundedRectangle(cornerRadius: 12, style: .continuous))
.clipShape(RoundedRectangle(cornerRadius: theme.cornerRadius, style: .continuous))
.overlay(
RoundedRectangle(cornerRadius: 12, style: .continuous)
RoundedRectangle(cornerRadius: theme.cornerRadius, style: .continuous)
.strokeBorder(theme.groupBorder, lineWidth: 0.5)
)
.padding(.horizontal, 14)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private struct ConfigurationSection: View {
comment: "Sublabel under the Accuracy Bench model picker")) {
Popup(
selection: $selectedModelId,
width: 320,
width: .controlWide,
options: modelOptions
)
}
Expand All @@ -222,7 +222,7 @@ private struct ConfigurationSection: View {
defaultValue: "Enable per-question reasoning traces (slower)",
comment: "Sublabel under the Accuracy Bench extended-thinking toggle")
) {
Toggle("", isOn: $enableThinking).labelsHidden().toggleStyle(.switch)
RowSwitch(isOn: $enableThinking)
}

FreeRow {
Expand Down Expand Up @@ -417,7 +417,7 @@ private struct BenchmarkCard: View {
.foregroundStyle(theme.textTertiary)
Popup(
selection: $sampleSize,
width: 90,
width: .controlNarrow,
options: sampleSizeOptions
)
}
Expand Down
31 changes: 8 additions & 23 deletions apps/omlx-mac/Sources/AppView/Screens/AppearanceScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct AppearanceScreen: View {
comment: "Appearance row sublabel for the menubar refresh cadence picker"
)
) {
Popup(selection: $refreshInterval, width: 110, options: [
Popup(selection: $refreshInterval, width: .controlCompact, options: [
(0.5, "0.5 s"),
(1.0, "1 s"),
(2.0, "2 s"),
Expand All @@ -65,9 +65,7 @@ struct AppearanceScreen: View {
comment: "Appearance row sublabel for the permanent Dock icon toggle"
)
) {
Toggle("", isOn: $showDockIcon)
.labelsHidden()
.toggleStyle(.switch)
RowSwitch(isOn: $showDockIcon)
}
// Sits right under the Dock toggle because that's where people
// look for it — the Dock icon and the menu bar icon read as one
Expand Down Expand Up @@ -140,7 +138,6 @@ struct AppearanceScreen: View {
)
),
])
.frame(width: 200)
}
}

Expand Down Expand Up @@ -170,9 +167,7 @@ struct AppearanceScreen: View {
comment: "Appearance row sublabel for the LIV menubar item toggle"
)
) {
Toggle("", isOn: $showLiveActivity)
.labelsHidden()
.toggleStyle(.switch)
RowSwitch(isOn: $showLiveActivity)
}
Row(
label: String(
Expand All @@ -186,9 +181,7 @@ struct AppearanceScreen: View {
comment: "Appearance row sublabel for the AVG menubar item toggle"
)
) {
Toggle("", isOn: $showAverageActivity)
.labelsHidden()
.toggleStyle(.switch)
RowSwitch(isOn: $showAverageActivity)
}
Row(
label: String(
Expand All @@ -202,9 +195,7 @@ struct AppearanceScreen: View {
comment: "Appearance row sublabel for the ALL menubar item toggle"
)
) {
Toggle("", isOn: $showAlltimeActivity)
.labelsHidden()
.toggleStyle(.switch)
RowSwitch(isOn: $showAlltimeActivity)
}
Row(
label: String(
Expand All @@ -218,9 +209,7 @@ struct AppearanceScreen: View {
comment: "Appearance row sublabel for the CPU usage bar menubar item toggle"
)
) {
Toggle("", isOn: $showCPUItem)
.labelsHidden()
.toggleStyle(.switch)
RowSwitch(isOn: $showCPUItem)
}
Row(
label: String(
Expand All @@ -234,9 +223,7 @@ struct AppearanceScreen: View {
comment: "Appearance row sublabel for the GPU usage bar menubar item toggle"
)
) {
Toggle("", isOn: $showGPUItem)
.labelsHidden()
.toggleStyle(.switch)
RowSwitch(isOn: $showGPUItem)
}
Row(
label: String(
Expand All @@ -251,9 +238,7 @@ struct AppearanceScreen: View {
),
isLast: true
) {
Toggle("", isOn: $showMemoryItem)
.labelsHidden()
.toggleStyle(.switch)
RowSwitch(isOn: $showMemoryItem)
}
}
}
Expand Down
Loading