Skip to content

The agent that grows with you

feat(local-models): the RTX Spark defaults to the 27B

emozillac71ff7ebddb6
diff --git a/apps/desktop/src/i18n/de_local_models.ts b/apps/desktop/src/i18n/de_local_models.ts
index 65784877814..7f0f49696ab 100644
--- a/apps/desktop/src/i18n/de_local_models.ts
+++ b/apps/desktop/src/i18n/de_local_models.ts
@@ -25,6 +25,7 @@ export const deLocalModels: TranslationOverride<Translations['settings']['localM
modelsTitle: 'Modelle',
recommended: 'Empfohlen',
recommendedReason: {
+ 'product-default': 'Das Standardmodell für dieses Gerät, vom Hersteller ausgewählt.',
'best-quality-resident':
'Das Modell mit der höchsten Qualität, das komplett auf Ihrer GPU mit voller Geschwindigkeit läuft. Die Auswahl wägt Qualität gegen die erwartete Geschwindigkeit auf dieser Hardware ab.',
'speed-gated-quality':
diff --git a/apps/desktop/src/i18n/en_local_models.ts b/apps/desktop/src/i18n/en_local_models.ts
index 0ae4a8250cc..6d51a56d465 100644
--- a/apps/desktop/src/i18n/en_local_models.ts
+++ b/apps/desktop/src/i18n/en_local_models.ts
@@ -26,6 +26,7 @@ export const enLocalModels: Translations['settings']['localModels'] = {
made the pick. Qualitative on purpose: predictions order candidates,
they are not promises to print. */
recommendedReason: {
+ 'product-default': 'The default model for this machine, chosen by its manufacturer.',
'best-quality-resident':
'The highest-quality model that runs entirely on your GPU at full speed. Picks weigh quality against predicted speed on this hardware.',
'speed-gated-quality':
diff --git a/apps/desktop/src/i18n/es_local_models.ts b/apps/desktop/src/i18n/es_local_models.ts
index 3da0256b9e8..209d8b0b9e5 100644
--- a/apps/desktop/src/i18n/es_local_models.ts
+++ b/apps/desktop/src/i18n/es_local_models.ts
@@ -25,6 +25,7 @@ export const esLocalModels: TranslationOverride<Translations['settings']['localM
modelsTitle: 'Modelos',
recommended: 'Recomendado',
recommendedReason: {
+ 'product-default': 'El modelo predeterminado para este equipo, elegido por su fabricante.',
'best-quality-resident':
'El modelo de mayor calidad que se ejecuta por completo en tu GPU a máxima velocidad. La selección equilibra la calidad con la velocidad prevista en este hardware.',
'speed-gated-quality':
diff --git a/apps/desktop/src/i18n/fr_local_models.ts b/apps/desktop/src/i18n/fr_local_models.ts
index dc5135b295a..875dce6ae43 100644
--- a/apps/desktop/src/i18n/fr_local_models.ts
+++ b/apps/desktop/src/i18n/fr_local_models.ts
@@ -25,6 +25,7 @@ export const frLocalModels: TranslationOverride<Translations['settings']['localM
modelsTitle: 'Modèles',
recommended: 'Recommandé',
recommendedReason: {
+ 'product-default': 'Le modèle par défaut de cette machine, choisi par son fabricant.',
'best-quality-resident':
"Le modèle de meilleure qualité qui tient entièrement dans votre GPU et s'exécute à pleine vitesse. La sélection équilibre qualité et vitesse prévue sur ce matériel.",
'speed-gated-quality':
diff --git a/apps/desktop/src/i18n/ja_local_models.ts b/apps/desktop/src/i18n/ja_local_models.ts
index b2eafbde0bc..fdec53b7695 100644
--- a/apps/desktop/src/i18n/ja_local_models.ts
+++ b/apps/desktop/src/i18n/ja_local_models.ts
@@ -25,6 +25,7 @@ export const jaLocalModels: TranslationOverride<Translations['settings']['localM
modelsTitle: 'モデル',
recommended: 'おすすめ',
recommendedReason: {
+ 'product-default': 'このマシンのメーカーが選んだ標準モデルです。',
'best-quality-resident':
'GPU に完全に載り、フルスピードで動くモデルの中で最高品質です。おすすめは品質とこのハードウェアでの予測速度を両立させて選ばれます。',
'speed-gated-quality':
diff --git a/apps/desktop/src/i18n/zh-hant_settings.ts b/apps/desktop/src/i18n/zh-hant_settings.ts
index d05092dfa8c..4add1e17394 100644
--- a/apps/desktop/src/i18n/zh-hant_settings.ts
+++ b/apps/desktop/src/i18n/zh-hant_settings.ts
@@ -1095,6 +1095,7 @@ export const zhHantSettings = {
modelsTitle: '模型',
recommended: '推薦',
recommendedReason: {
+ 'product-default': '這台機器的預設模型,由其製造商選定。',
'best-quality-resident': '在完全駐留 GPU 且保持全速的模型中品質最高。推薦會在品質與該硬體的預計速度之間權衡。',
'speed-gated-quality':
'有更高品質的模型可以裝入這台機器,但受記憶體頻寬限制回應會太慢——這是保持流暢的最佳模型。',
diff --git a/apps/desktop/src/i18n/zh_local_models.ts b/apps/desktop/src/i18n/zh_local_models.ts
index b28bd0a1e38..88f11a9bd1d 100644
--- a/apps/desktop/src/i18n/zh_local_models.ts
+++ b/apps/desktop/src/i18n/zh_local_models.ts
@@ -34,6 +34,7 @@ export const zhLocalModels: TranslationOverride<Translations['settings']['localM
modelsTitle: '模型',
recommended: '推荐',
recommendedReason: {
+ 'product-default': '这台机器的默认模型,由其制造商选定。',
'best-quality-resident': '在完全驻留 GPU 且保持全速的模型中质量最高。推荐会在质量与该硬件的预计速度之间权衡。',
'speed-gated-quality': '有更高质量的模型可以装入这台机器,但受内存带宽限制响应会太慢——这是保持流畅的最佳模型。',
'fastest-resident': '没有模型能在该硬件上达到全速;这是完全驻留 GPU 内存中最快的一个。'
diff --git a/apps/desktop/src/types/hermes.ts b/apps/desktop/src/types/hermes.ts
index 164c806dfcd..bbeec061c5d 100644
--- a/apps/desktop/src/types/hermes.ts
+++ b/apps/desktop/src/types/hermes.ts
@@ -1494,7 +1494,7 @@ export interface LocalCatalogModel {
native_context_label: string
recommended: boolean
/** Why the resolver picked this entry (recommended rows only):
- * best-quality-resident | speed-gated-quality | fastest-resident |
+ * product-default | best-quality-resident | speed-gated-quality | fastest-resident |
* least-painful-spilled. Renders as the Recommended badge's tooltip. */
recommended_reason?: string | null
downloaded: boolean
diff --git a/hermes_cli/local_runtime/catalog.py b/hermes_cli/local_runtime/catalog.py
index 7660140b591..4eb7eb0ad04 100644
--- a/hermes_cli/local_runtime/catalog.py
+++ b/hermes_cli/local_runtime/catalog.py
@@ -209,16 +209,32 @@ _MEASURED_DECODE_TOK_S = {
}
-def predicted_decode_tok_s(entry: CatalogEntry, variant: QuantVariant, budget: HardwareBudget, *,
- spilled: bool = False, backend: str = "auto") -> float:
- """Shipped measured baseline where matched, otherwise the memory-bound estimate."""
+# Defaults the maker of a recognized product chose for it, keyed like the measured rates. The
+# derived rule still decides when the chosen entry is ineligible or cannot run resident, and every
+# other entry that fits stays available. The RTX Spark ships the 27B: Flash Next fits 128 GB, but
+# Windows backs GPU memory with commit outside the carve-out, so it loads only with the carve-out
+# lowered.
+_PRODUCT_DEFAULTS = {
+ ("win32", "cuda", "NVIDIA RTX Spark N1X"): "qwen3.8-27b",
+}
+
+
+def _hardware_key(budget: HardwareBudget, backend: str) -> "tuple[str, str, str]":
+ """(platform, backend, reference GPU name) for the shipped tables; the name is empty when the
+ GPU is not recognized."""
# Drivers may append a parenthesized description to the stable device name.
gpu_name = budget.gpu_name.partition(" (")[0]
# Resolve PCI identity to the existing reference key; names only backfill missing IDs.
if budget.gpu_pci_id is not None:
gpu_name = "NVIDIA RTX Spark N1X" if is_nvidia_n1x_pci_id(budget.gpu_pci_id) else ""
effective_backend = "cuda" if backend == "auto" and gpu_name else backend
- key = (budget.platform, effective_backend, gpu_name, entry.id, variant.quant, entry.mtp_draft_depth)
+ return (budget.platform, effective_backend, gpu_name)
+
+
+def predicted_decode_tok_s(entry: CatalogEntry, variant: QuantVariant, budget: HardwareBudget, *,
+ spilled: bool = False, backend: str = "auto") -> float:
+ """Shipped measured baseline where matched, otherwise the memory-bound estimate."""
+ key = (*_hardware_key(budget, backend), entry.id, variant.quant, entry.mtp_draft_depth)
if budget.uma and entry.mtp and not spilled and (measured := _MEASURED_DECODE_TOK_S.get(key)) is not None:
return measured
bandwidth = (_HOST_BANDWIDTH_GB_S if spilled
@@ -234,10 +250,11 @@ def recommended_entry(budget: HardwareBudget,
"""The catalog's default pick for THIS machine, with its reason key.
Callers pass pre-filtered entries when some are ineligible for reasons the catalog can't know
- (engine too old). Reasons: best-quality-resident (quality won among resident entries clearing
- the pleasant floor); speed-gated-quality (same, but the floor eliminated a HIGHER quality
- candidate); fastest-resident (nothing resident clears the floor). Returns None when no
- eligible entry runs resident; spilled models remain available for explicit selection.
+ (engine too old). Reasons: product-default (the product's maker chose this entry and it runs
+ resident); best-quality-resident (quality won among resident entries clearing the pleasant
+ floor); speed-gated-quality (same, but the floor eliminated a HIGHER quality candidate);
+ fastest-resident (nothing resident clears the floor). Returns None when no eligible entry
+ runs resident; spilled models remain available for explicit selection.
"""
pool = CATALOG if entries is None else entries
fitting = [(e, c) for e in pool if (c := select_variant(e, budget)) is not None]
@@ -248,6 +265,10 @@ def recommended_entry(budget: HardwareBudget,
return predicted_decode_tok_s(t[0], t[1].variant, budget, spilled=spilled, backend=backend)
resident = [(e, c) for e, c in fitting if c.zero_spill]
+ product_default = _PRODUCT_DEFAULTS.get(_hardware_key(budget, backend))
+ for entry, _ in resident:
+ if entry.id == product_default:
+ return (entry, "product-default")
pleasant = [t for t in resident if speed(t) >= PLEASANT_FLOOR_TOK_S]
if pleasant:
pick = max(pleasant, key=lambda t: (t[0].quality, -t[1].variant.size_bytes))[0]
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index d27b856ddbe..e2edf54a1ca 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -3317,6 +3317,7 @@
"settings.localModels.recommended",
"settings.localModels.recommendedReason.best-quality-resident",
"settings.localModels.recommendedReason.fastest-resident",
+ "settings.localModels.recommendedReason.product-default",
"settings.localModels.recommendedReason.speed-gated-quality",
"settings.localModels.runtimeInstalled",
"settings.localModels.runtimeInstalledDetail",
diff --git a/tests/hermes_cli/test_local_recommendation.py b/tests/hermes_cli/test_local_recommendation.py
index 6dcf03ef221..508c3c7088d 100644
--- a/tests/hermes_cli/test_local_recommendation.py
+++ b/tests/hermes_cli/test_local_recommendation.py
@@ -3,7 +3,9 @@
The recommendation itself is DERIVED (catalog.recommended_entry: best
quality among resident entries clearing the pleasant speed floor, else
fastest resident). Spilled models stay browseable but are never automatic
-recommendations, so nobody hand-maintains per-hardware-class picks.
+recommendations, so nobody hand-maintains per-hardware-class picks. The
+one exception is a recognized product whose manufacturer chose its default
+(catalog._PRODUCT_DEFAULTS), tested at the bottom of this file.
This table pins the model and reason across discrete and unified memory
classes so changes to the recommendation remain reviewable.
@@ -130,11 +132,15 @@ def test_measured_n1x_profile_changes_speed_eligibility_not_fit_or_quality(monke
import subprocess
import urllib.request
+ from hermes_cli.local_runtime import catalog
+
def no_io(*args, **kwargs):
raise AssertionError("calibration must use shipped data, not a runtime benchmark")
monkeypatch.setattr(subprocess, "run", no_io)
monkeypatch.setattr(urllib.request, "urlopen", no_io)
+ # The derived rule alone; the RTX Spark's product default has its own tests below.
+ monkeypatch.setattr(catalog, "_PRODUCT_DEFAULTS", {})
budget = _unified(capacity)
budget.gpu_name = gpu_name
budget.platform = "win32"
@@ -227,3 +233,35 @@ def test_quality_decides_where_speed_permits():
if (c := select_variant(e, budget)) is not None and c.zero_spill
]
assert pick == max(resident, key=lambda e: e.quality).id
+
+
+# ── the RTX Spark's product default ──
+
+_N1X_PCI_ID = 0x2E1210DE # NVML packs the device ID above the 16-bit vendor ID
+
+
[email protected]("identity", [
+ {"gpu_pci_id": _N1X_PCI_ID},
+ {"gpu_name": "NVIDIA RTX Spark N1X (5120-core Blackwell RTX GPU)"},
+])
+def test_the_rtx_spark_defaults_to_the_27b_with_flash_next_still_fitting(identity):
+ """Its manufacturer's pick. Flash Next fits too and stays one click away; on Windows it loads
+ once the carve-out leaves Windows enough commit to back it."""
+ from dataclasses import replace
+
+ budget = replace(_unified(128), platform="win32", **identity)
+ picked = recommended_entry(budget)
+ assert (picked[0].id, picked[1]) == ("qwen3.8-27b", "product-default")
+ flash_next = next(e for e in CATALOG if e.id == "qwen3.8-flash-next")
+ choice = select_variant(flash_next, budget)
+ assert choice is not None and choice.zero_spill
+
+
+def test_the_derived_rule_decides_on_other_platforms_backends_and_when_the_default_is_ineligible():
+ from dataclasses import replace
+
+ spark = replace(_unified(128), platform="win32", gpu_pci_id=_N1X_PCI_ID)
+ without_the_27b = tuple(e for e in CATALOG if e.id != "qwen3.8-27b")
+ assert recommended_entry(spark, without_the_27b)[1] != "product-default"
+ assert recommended_entry(replace(spark, platform="linux"))[1] != "product-default"
+ assert recommended_entry(spark, backend="vulkan")[1] != "product-default"