diff --git a/CHANGELOG.md b/CHANGELOG.md index 99a6713..a1fa4b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to LLMRig will be documented here. +## 0.12.0 - 2026-12-02 + +- Add read-only Frontier Model Preflight for complete remote Safetensors weight sets, with revision provenance, declared precision, byte counts, RAM ratio and serialized weight shortfall. +- Fail closed on ambiguous, incomplete or conflicting size metadata; keep runtime compatibility and inference separate. +- Validate all three Amazon Ergo variants against a separate metadata audit on an Apple M4 Max 48 GiB; no weight downloads or inference. +- Pin Ubuntu CI to 24.04 to preserve Python 3.9 testing and smoke-test the installed preflight command. + ## 0.11.0 - 2026-10-18 ### LLMRig Rescue (experimental) diff --git a/CITATION.cff b/CITATION.cff index 3649210..8a096ce 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -5,8 +5,8 @@ type: software authors: - family-names: Vadlamani given-names: Sunil Kumar -version: 0.11.0 -date-released: 2026-10-18 +version: 0.12.0 +date-released: 2026-12-02 repository-code: "https://github.com/sunilteja93/llmrig" url: "https://github.com/sunilteja93/llmrig" license: MIT diff --git a/README.md b/README.md index 23d2d2b..cf3abe3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,9 @@ ## Start here -**Install LLMRig v0.11.0** using isolated [`pipx`](https://pipx.pypa.io/). +**New:** inspect frontier model weight footprints before downloading: `llmrig preflight Amazon-FMR/Ergo`. + +**Install LLMRig v0.12.0** using isolated [`pipx`](https://pipx.pypa.io/). See the [installation guide](https://github.com/sunilteja93/llmrig/blob/main/docs/INSTALL.md) for platform-specific setup. ~~~bash @@ -233,7 +235,7 @@ Every applied workflow emits a privacy-safe receipt: plan ID, receipt ID, model/ Verified measurements persist locally as graph-shaped evidence across machine × model × artifact × quantization × runtime × context × measurement. Predictions and measurements are stored as separate facts; calibration deltas are computed only when the same metric exists on both sides. No community upload happens by default. -## Frontier model preflight +## New in v0.12.0: Frontier Model Preflight Inspect an exact Hugging Face repository without downloading weights or starting runtimes: @@ -244,6 +246,8 @@ llmrig preflight Amazon-FMR/Ergo --json Preflight reports the serialized footprint of a complete listed Safetensors set, repository revision, declared precision, and its ratio to total system RAM. Ambiguous or incomplete metadata stays unknown. This is not a peak inference memory estimate, runtime compatibility claim, or benchmark; offloading and alternative conversions are not assessed. Existing execution planning remains unchanged. +**Day-zero Ergo validation** on one Apple M4 Max (48 GiB), December 1, 2026: MXFP4 626.06 GB (12.15x RAM), MXFP8 1167.23 GB (22.65x), BF16 2215.74 GB (42.99x). All three matched a separate metadata audit; no inference was run. See the [reproducible field notes](https://github.com/sunilteja93/llmrig/blob/main/docs/RELEASE_NOTES_v0.12.0.md) for revisions and limitations. + ## Runtime intelligence ```bash @@ -308,7 +312,7 @@ The SDK prints nothing and never exits the process. `SolveResult` and `SolveCand ## Installation -For LLMRig v0.10.0, use the published package via +For LLMRig v0.12.0, use the package via [`pipx`](https://pipx.pypa.io/) or a clean virtual environment: ```bash diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 2357b07..0d70da1 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -3,11 +3,11 @@ LLMRig is a Python 3.9+ command-line tool. It **does not install** Ollama, oMLX, MLX-LM or llama.cpp just because you installed the CLI. -**Published release: v0.10.0.** Use the stable PyPI package for +**Target release: v0.12.0.** Use the stable PyPI package for the demonstrated `runtimes`, model-specific `doctor`, `plan`, `run` and `report` flows. If the new version has not propagated to your package index yet, check -[the GitHub release](https://github.com/sunilteja93/llmrig/releases/tag/v0.10.0) +[the GitHub release](https://github.com/sunilteja93/llmrig/releases/tag/v0.12.0) before retrying. Installation does not start or install model runtimes. ## Recommended: isolated pipx installation @@ -37,7 +37,7 @@ pipx upgrade llmrig ``` Inspect `llmrig --help` for `runtimes`, `doctor`, `plan`, `run`, -`verify` and `report`. Probe commands must not download model weights. +`verify`, `report` and `preflight`. Probe commands must not download model weights. For development from unreleased source, install an exact Git commit: `pipx install 'git+https://github.com/sunilteja93/llmrig.git@COMMIT_SHA'`, @@ -77,8 +77,8 @@ Do not infer that editable installation succeeded solely from ## PyPI release vs GitHub source -The documented first-run workflow targets the published v0.10.0 CLI. -Pin `llmrig==0.10.0` in reproducible Python environments, or use the +The documented first-run workflow targets the v0.12.0 CLI once published. +Pin `llmrig==0.12.0` in reproducible Python environments, or use the exact Git tag/commit if testing unreleased changes. Do not assume a model runtime is installed just because the CLI is available. diff --git a/docs/RELEASE_NOTES_v0.12.0.md b/docs/RELEASE_NOTES_v0.12.0.md new file mode 100644 index 0000000..a2d597d --- /dev/null +++ b/docs/RELEASE_NOTES_v0.12.0.md @@ -0,0 +1,17 @@ +# LLMRig v0.12.0: Frontier Model Preflight + +New read-only command: `llmrig preflight OWNER/REPOSITORY [--json]`. It reports the serialized footprint of one complete listed Safetensors set, the repository revision, declared precision, and the ratio and shortfall relative to total system RAM. Ambiguous or missing size evidence remains unknown. No weights are downloaded and no inference runs. + +## Day-zero field validation + +On December 1, 2026 (Pacific time), the author ran the development CLI on an Apple M4 Max with 48 GiB RAM. These locally reported results matched a separate Hugging Face metadata audit: + +| Repository | Revision | Files | Serialized GB | GiB | RAM ratio | Shortfall GiB | +|---|---|---:|---:|---:|---:|---:| +| Amazon-FMR/Ergo | 5700ec7df58ec686f71aff5705e640c03aa530f9 | 65 | 626.06 | 583.07 | 12.15x | 535.07 | +| Amazon-FMR/Ergo-mxfp8 | badd2eca7a6b08fac13d11766c3b207084f7737c | 65 | 1167.23 | 1087.07 | 22.65x | 1039.07 | +| Amazon-FMR/Ergo-bf16 | f47e685ec4b5095a0880e05cc514a4026859f9ed | 65 | 2215.74 | 2063.57 | 42.99x | 2015.57 | + +Reproduce with `llmrig preflight Amazon-FMR/Ergo --json` and the other two exact identifiers. Remote revisions may change. These are serialized file sizes, not measured peak inference memory, runtime compatibility, independent attestation, or proof about offloading or conversion. BF16 is declared configuration dtype, not a tensor-by-tensor inspection. Existing execution planning is unchanged. + +PR #85 passed the cross-platform matrix, package checks and CodeQL before merge. Five offline preflight regression tests also passed locally. diff --git a/llmrig.py b/llmrig.py old mode 100755 new mode 100644 index 5a582f9..bd712f9 --- a/llmrig.py +++ b/llmrig.py @@ -31,7 +31,7 @@ PROJECT_NAME = "LLMRig" PROJECT_SLUG = "llmrig" -VERSION = "0.11.0" +VERSION = "0.12.0" CURATED_SNAPSHOT_DATE = "2026-08-19" DEFAULT_OLLAMA_HOST = os.environ.get("OLLAMA_HOST", "http://127.0.0.1:11434").rstrip("/") HF_MODELS_API = "https://huggingface.co/api/models" diff --git a/tests/test_autopilot_foundation.py b/tests/test_autopilot_foundation.py index 968aa90..3cea55f 100644 --- a/tests/test_autopilot_foundation.py +++ b/tests/test_autopilot_foundation.py @@ -70,7 +70,7 @@ def test_private_package_and_existing_import_identity_are_unchanged(self): self.assertEqual(Path(llmrig.__file__).name, "llmrig.py") self.assertTrue(_llmrig.__spec__.submodule_search_locations) - self.assertEqual(llmrig.VERSION, "0.11.0") + self.assertEqual(llmrig.VERSION, "0.12.0") for symbol in ( "Confidence", "RecommendationEvidence", diff --git a/tests/test_llmrig.py b/tests/test_llmrig.py index 96dbc80..95c9db3 100644 --- a/tests/test_llmrig.py +++ b/tests/test_llmrig.py @@ -156,7 +156,7 @@ def race_workload(self): def test_project_branding(self): self.assertEqual(llmrig.PROJECT_NAME, "LLMRig") self.assertEqual(llmrig.PROJECT_SLUG, "llmrig") - self.assertEqual(llmrig.VERSION, "0.11.0") + self.assertEqual(llmrig.VERSION, "0.12.0") def test_catalog_is_valid(self): self.assertEqual(llmrig.validate_curated_catalog(), []) diff --git a/tests/test_onboarding_docs.py b/tests/test_onboarding_docs.py index eecd5d7..489eba7 100644 --- a/tests/test_onboarding_docs.py +++ b/tests/test_onboarding_docs.py @@ -43,7 +43,7 @@ def test_vector_card_parses_and_labels_reconstruction(self): def test_installation_guide_does_not_confuse_unreleased_main_and_pypi(self): guide = (ROOT / "docs/INSTALL.md").read_text(encoding="utf-8") self.assertIn("PyPI", guide) - self.assertIn("v0.10.0", guide) + self.assertIn("v0.12.0", guide) self.assertIn("exact Git commit", guide) self.assertIn("(cd /tmp", guide) self.assertIn("pipx ensurepath", guide) diff --git a/tests/test_release_metadata.py b/tests/test_release_metadata.py index 7dc0025..c32d3a8 100644 --- a/tests/test_release_metadata.py +++ b/tests/test_release_metadata.py @@ -15,6 +15,12 @@ def test_release_metadata_matches_source_version(self): self.assertIsNotNone(citation_match) self.assertEqual(citation_match.group(1), llmrig.VERSION) self.assertIn(f"## {llmrig.VERSION} - ", changelog) + if llmrig.VERSION == "0.12.0": + self.assertIn("date-released: 2026-12-02", citation) + readme = (root / "README.md").read_text(encoding="utf-8") + self.assertIn("Install LLMRig v0.12.0", readme) + self.assertIn("llmrig preflight Amazon-FMR/Ergo", readme) + self.assertTrue((root / "docs/RELEASE_NOTES_v0.12.0.md").exists()) if llmrig.VERSION == "0.11.0": self.assertIn("date-released: 2026-10-18", citation) readme = (root / "README.md").read_text(encoding="utf-8")