The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(local-runtime): list Nemotron 3.5 Bolt as an opt-in model
emozilla737bd8adf6af
diff --git a/hermes_cli/local_runtime/catalog.json b/hermes_cli/local_runtime/catalog.jsonindex 7fcda3169d7..cc161e7db96 100644--- a/hermes_cli/local_runtime/catalog.json+++ b/hermes_cli/local_runtime/catalog.json@@ -189,6 +189,48 @@},"quality": 85,"decode_fraction": 0.1+ },+ {+ "id": "nemotron-3.5-bolt-74b-a9b",+ "display_name": "Nemotron 3.5 Bolt",+ "description": "NVIDIA's 74B mixture-of-experts in a 2-bit build; sees images",+ "repo": "nvidia/Nemotron-3.5-Bolt-74B-A9B-IQ2-GGUF",+ "variants": [+ {+ "quant": "IQ2",+ "files": [+ {+ "path": "NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB.gguf",+ "size_bytes": 22018326528,+ "revision": "e0fecb69cb3e5e4c5e8a056fa2aec98c78e91246"+ }+ ]+ }+ ],+ "n_ctx_train": 262144,+ "full_layers": 8,+ "recurrent_layers": 80,+ "per_layer_f16": 1024,+ "moe": true,+ "n_vocab": 131072,+ "architecture": "nemotron_h_moe",+ "mmproj": {+ "path": "mmproj-NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB.gguf",+ "size_bytes": 1733692736,+ "revision": "e0fecb69cb3e5e4c5e8a056fa2aec98c78e91246"+ },+ "min_engine": "b11671",+ "decode_fraction": 0.22,+ "recommend": false,+ "draft": {+ "path": "NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-LiLiCorr.gguf",+ "size_bytes": 998242560,+ "repo": "nvidia/Nemotron-3.5-Bolt-74B-A9B-IQ2-LiLiCorr-GGUF",+ "revision": "182d2987939e12f458298b5d5f6ef98912f4ad6c"+ },+ "draft_spec_type": "draft-dflash",+ "draft_depth": 7,+ "draft_min_engine": "b11671"}]}diff --git a/hermes_cli/local_runtime/catalog.py b/hermes_cli/local_runtime/catalog.pyindex 9167d8c5abf..95cb8f55bdf 100644--- a/hermes_cli/local_runtime/catalog.py+++ b/hermes_cli/local_runtime/catalog.py@@ -125,6 +125,9 @@ class CatalogEntry:# MoE. With memory bandwidth this predicts decode speed — the physics half of the# recommendation.decode_fraction: float = 1.0+ # False lists the entry for explicit choice only: it is never the automatic recommendation or+ # quickstart's pick on any machine, so it needs no quality ordering.+ recommend: bool = True@propertydef mtp_capable(self) -> bool:@@ -263,13 +266,14 @@ 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: 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).+ (engine too old). Entries marked ``recommend: false`` are never picked. 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).Returns None when no eligible entry runs resident at the pleasant floor; slower and spilledmodels remain available for explicit selection."""- pool = CATALOG if entries is None else entries+ pool = tuple(e for e in (CATALOG if entries is None else entries) if e.recommend)fitting = [(e, c) for e in pool if (c := select_variant(e, budget)) is not None]if not fitting:return None@@ -325,7 +329,8 @@ _SCALAR_FIELDS = {"moe": (bool, False), "mtp": (bool, False), "mtp_draft_depth": (int, 3),"n_vocab": (int, 0), "sampling": (dict, {}), "min_engine": (str, ""),"quality": (int, 0), "decode_fraction": (float, 1.0), "architecture": (str, ""),- "draft_spec_type": (str, "draft-dspark"), "draft_depth": (int, 3), "draft_min_engine": (str, ""),+ "recommend": (bool, True), "draft_spec_type": (str, "draft-dspark"), "draft_depth": (int, 3),+ "draft_min_engine": (str, ""),}diff --git a/hermes_cli/web_routers/local_models.py b/hermes_cli/web_routers/local_models.pyindex 8edb177522f..42172220d7f 100644--- a/hermes_cli/web_routers/local_models.py+++ b/hermes_cli/web_routers/local_models.py@@ -798,7 +798,7 @@ def _quickstart_target(body: QuickstartBody, budget):status_code=409,detail="No automatic recommendation for this machine — open Local Models to browse or choose a model explicitly",)- candidates = [picked[0]] + [e for e in catalog.CATALOG if e.id != picked[0].id]+ candidates = [picked[0]] + [e for e in catalog.CATALOG if e.id != picked[0].id and e.recommend]for candidate in candidates:choice = catalog.select_variant(candidate, budget)if choice is not None and not _engine_too_old(candidate.min_engine):diff --git a/tests/hermes_cli/test_catalog_variants.py b/tests/hermes_cli/test_catalog_variants.pyindex 28a6c44fe29..405a8c7a45a 100644--- a/tests/hermes_cli/test_catalog_variants.py+++ b/tests/hermes_cli/test_catalog_variants.py@@ -22,18 +22,26 @@ def budget(vram_gib: float, ram_gib: float = 64) -> HardwareBudget:ram_available_bytes=int(ram_gib * GIB))+# Builds below 4-bit that the model's maker trained for, and ships as the only build. A+# community 2-bit quant of a 4-bit model still never ships.+_MAKER_COMPRESSED = {+ "nemotron-3.5-bolt-74b-a9b": "NVIDIA ships Bolt only as its own 2-bit compression of Super",+}++def test_every_entry_ships_exactly_one_q4_build():"""No quant ladder: one Q4-class build per entry (K_M where the repoships it, XL elsewhere, and the 4-bit IQ4_XS where a vendor recipesized the build to a memory class) — the quant class current engines- optimize for. Nothing below 4-bit ever ships. Validation status is- explicit per variant in catalog.json; unvalidated builds are permitted- (day-0 entries) and surface as unbadged rows in the pane."""+ optimize for. Nothing below 4-bit ships, except a maker's own+ compression listed above. Validation status is explicit per variant in+ catalog.json; unvalidated builds are permitted (day-0 entries) and+ surface as unbadged rows in the pane."""for entry in CATALOG:assert len(entry.variants) == 1, (f"{entry.id}: {len(entry.variants)} variants — expected exactly one")build = entry.variants[0]- assert build.quant.startswith(("UD-Q4", "Q4", "UD-IQ4", "IQ4")), (+ assert entry.id in _MAKER_COMPRESSED or build.quant.startswith(("UD-Q4", "Q4", "UD-IQ4", "IQ4")), (f"{entry.id}: ships {build.quant}, not a Q4-class build")for asset in entry.download_files(build):assert asset.size_bytes > 0, f"{entry.id}: no size on {asset.path}"diff --git a/tests/hermes_cli/test_local_models_routes.py b/tests/hermes_cli/test_local_models_routes.pyindex 1ea400e57f1..5b89a547f9e 100644--- a/tests/hermes_cli/test_local_models_routes.py+++ b/tests/hermes_cli/test_local_models_routes.py@@ -217,6 +217,32 @@ def test_calibrated_catalog_and_quickstart_respect_backend(client, monkeypatch,assert local_models._quickstart_target(explicit, budget)[0].id == "qwen3.8-27b"+def test_quickstart_falls_back_past_entries_that_are_never_recommended(monkeypatch):+ """When the recommended entry can't start, quickstart tries the other recommendable entries.+ Nemotron 3.5 Bolt is an option only, so the fallback refuses rather than download it."""+ from fastapi import HTTPException++ from hermes_cli.local_runtime import catalog+ from hermes_cli.local_runtime.estimator import HardwareBudget+ from hermes_cli.web_routers import local_models++ budget = HardwareBudget(44 << 30, 48 << 30, 64 << 30, uma=False)+ bolt = catalog.catalog_by_id()["nemotron-3.5-bolt-74b-a9b"]+ the_27b = catalog.catalog_by_id()["qwen3.8-27b"]+ real_select = catalog.select_variant+ monkeypatch.setattr(local_models, "_engine_too_old", lambda min_engine: False)+ monkeypatch.setattr(catalog, "recommended_entry", lambda *a, **kw: (the_27b, "best-quality-resident"))+ monkeypatch.setattr(catalog, "select_variant",+ lambda entry, b: real_select(entry, b) if entry.id == bolt.id else None)++ assert real_select(bolt, budget) is not None+ with pytest.raises(HTTPException) as refused:+ local_models._quickstart_target(local_models.QuickstartBody(), budget)+ assert refused.value.status_code == 409+ explicit = local_models.QuickstartBody(model_id=bolt.id)+ assert local_models._quickstart_target(explicit, budget)[0].id == bolt.id++def test_catalog_never_hides_unaffordable_models(client, monkeypatch):"""Unaffordable entries stay visible with a plain reason — hiding themis how users conclude the feature is broken."""diff --git a/tests/hermes_cli/test_local_recommendation.py b/tests/hermes_cli/test_local_recommendation.pyindex e5a46eac901..573850c4a93 100644--- a/tests/hermes_cli/test_local_recommendation.py+++ b/tests/hermes_cli/test_local_recommendation.py@@ -193,15 +193,33 @@ def test_unmatched_or_spilled_profiles_keep_the_existing_estimate(def test_every_entry_carries_the_recommendation_axes():"""quality and decode_fraction are authoring requirements: an entrywithout them silently loses every quality comparison (quality=0) or- prices as dense (decode_fraction=1.0)."""+ prices as dense (decode_fraction=1.0). An entry that is never+ recommended needs no quality ordering."""for entry in CATALOG:- assert entry.quality > 0, f"{entry.id} has no quality ordering"+ if entry.recommend:+ assert entry.quality > 0, f"{entry.id} has no quality ordering"assert 0.0 < entry.decode_fraction <= 1.0, entry.idif not entry.moe:assert entry.decode_fraction == 1.0, (f"{entry.id} is dense — it reads every weight per token")[email protected]("budget", [_discrete(32), _discrete(48), _discrete(96), _unified(32), _unified(64),+ _unified(128)],+ ids=lambda b: f"{'unified' if b.uma else 'discrete'}-{b.total_device_bytes / _GIB:g}")+def test_nemotron_bolt_is_an_option_never_the_recommendation(budget):+ """NVIDIA asked for Nemotron 3.5 Bolt as an option beside the others, not a default. It runs+ resident on these machines and clears the floor, and still is never picked, even alone."""+ bolt = next(e for e in CATALOG if e.id == "nemotron-3.5-bolt-74b-a9b")+ assert not bolt.recommend+ choice = select_variant(bolt, budget)+ assert choice is not None and choice.zero_spill+ assert predicted_decode_tok_s(bolt, choice.variant, budget) >= PLEASANT_FLOOR_TOK_S+ assert recommended_entry(budget, (bolt,)) is None+ picked = recommended_entry(budget)+ assert picked is None or picked[0].id != bolt.id++def test_unified_never_recommends_a_below_floor_dense_model():"""The Spark rule, as an invariant: whatever the catalog holds, aunified-memory machine must not be told to run a model whose@@ -246,7 +264,7 @@ def test_quality_decides_where_speed_permits():pick = recommended_entry(budget)[0].idresident = [e for e in CATALOG- if (c := select_variant(e, budget)) is not None and c.zero_spill+ if e.recommend and (c := select_variant(e, budget)) is not None and c.zero_spill]assert pick == max(resident, key=lambda e: e.quality).id