Planner recommends dense 27B on 32 GB vanilla Apple Silicon where it runs at ~3.6 tok/s — add bandwidth / active-params awareness

オープン
#672 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
macos, typescript

調査の方向性

The planner's model ranking and memory-fit check are the starting points; find where recommendations are scored and where the model list is built. The change adds a throughput estimate from architecture, active parameters and quantization on the detected SoC. Done means dense and MoE models get different estimates and a slow dense model is no longer auto-recommended on a 32 GB Mac.

索引モデルが issue の本文から書いたものです。

説明

What happened

The model planner recommended Qwen3.8 27B (UD-IQ3_S, 12.1 GB) for my machine: Mac mini, vanilla M6, 32 GB unified memory, Desktop 0.1.6 (macOS, arm64).

I installed it and benchmarked directly against the local llama-server endpoint (bypassing the gateway, repeated runs):

Metric Measured
Generation (steady state, clean memory) 3.6 tok/s
Prefill (~3.8k token context) ~100 tok/s
Same benchmark after fresh reboot, swap = 0 3.6 tok/s (unchanged)

The identical result on clean memory rules out swap thrashing — this is the memory-bandwidth ceiling of running a dense 27B on vanilla (non-Ultra) Apple Silicon. Every token requires pushing all ~13 GB of weights through the bus, so ~3-4 tok/s is the physical limit. The model passes the planner's memory-fit check but is practically unusable for agent workloads (a single multi-step task takes 10+ minutes).

Meanwhile, Qwen3.6 35B-A3B (MoE, 3B active) sits in the same model list without the recommendation badge. On this exact hardware it should be several times faster (throughput scales with active params on MoE), while being a more capable model — and low-active-param MoE is precisely the architecture that PolyStrata's layered placement is designed for. The planner ranks a dense model above it.

Steps to reproduce
  1. Mac mini, vanilla M6 / 32 GB unified memory
  2. Run local-model setup → planner recommends Qwen3.8 27B (UD-IQ3_S)
  3. Install, benchmark via the llama-server OpenAI-compatible endpoint with a short and a mid-length prompt
  4. Observe ~3.6 tok/s generation; reboot with clean memory and observe no improvement
Expected behavior

The planner should consider achievable throughput, not only memory fit. "Loadable" and "usable" differ by a memory-bandwidth factor on consumer Apple Silicon.

Suggestions
  1. Add a bandwidth/throughput estimate to the planner: model architecture (dense vs MoE), active parameter count, quantization bpp → estimated tok/s on the detected SoC. Avoid auto-recommending models below a usable threshold (e.g. < 5 tok/s).
  2. Show the estimate in the model list UI (e.g. "≈ 3 tok/s on this Mac") so users can make an informed choice before spending 12 GB of disk and an evening of frustration.
  3. For memory-constrained Macs, prioritize low-active-param MoE models for PolyStrata layered/paged placement over same-class dense models — this is the exact scenario the layering tech was built for, but it currently never gets picked by the planner.
  4. Optional: a lightweight user feedback signal ("too slow / unusable") that downweights a model in future planner runs on this device.

Happy to provide more benchmark details (llama-server args, KV config, exact timings) if useful.

Environment
  • Linger Desktop 0.1.6 (macOS arm64), Pi runtime
  • Mac mini, Apple M6 (vanilla), 32 GB unified memory, macOS 26.x
主要言語
TypeScript
スター
3.8k
フォーク
360
平均マージ
8時間 10分
マージ済み PR(30日)
540

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

simplexai-labs/linger のほかの issue

simplexai-labs/linger の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。