Repository navigation
Releases
v3.0.0: Enterprise Sovereign Release (LUT INT4, Pluggable KMS, SQLite WAL Triage, Contextual NER & Refreshed Benchmarks)
Changelog
All notable changes to ncm-benchmarks are documented in this file.
[3.0.0] - 2026-11-14
Added & Hardened
- LUT-Accelerated
Int4Linear(ncm_bench/accel.py): Replaced slice mutation bitshifts with a vectorized(256, 2)int8 nibble lookup table (_build_nibble_lut), addedInt4Linear.from_linear(..., cache_dequantized=...), and hardenedprobe_accelerator_capabilities()to gracefully fall back to CPU if an accelerator driver fails. - Pluggable KMS & WAL SQLite Compliance (
ncm_bench/compliance.py): AddedKeyManagementProvider,LocalKeyringProvider,EnvKMSProvider, andExternalKMSHookProvider(DEK envelope wrapping) on top ofAES-256-GCMkey rotation,WAL-modeAuditSinkSQLite, and batchedverify_chain(batch_size=...). - Multi-Worker
SQLiteClassifierStore& Hybrid Triage (ncm_bench/triage.py,service/summarize_server.py): Added atomicWAL-modeSQLiteClassifierStore(auto-selected for.db/.sqliteNCM_TRIAGE_STATE_PATH), JSON persistence for/triage/feedback, async time-windowedDynamicBatchCoalescer, and hybrid lexical+concept scoring (+16.66 ppto58.33%top-1 on paraphrased triage). - Archive Quota, Table Ingestion & Built-In Contextual NER (
ncm_bench/longdoc.py): Addedmax_archive_byteszip-bomb checks,.docx<w:tbl>&.xlsxsharedStrings extraction,MRNscrubbing, anddefault_contextual_ner()(PERSON,ADDRESS,API_KEY+ optionalpresidio_analyzer). - Trainer Resumption & Deep Recursive LoRA (
ncm_train/): Restoredema_decay&dropout, addedgrad_clip,lr_schedule,grad_accum_steps,resume_from,.safetensorsserialization, recursiveinject_concept_lora, andextract_lora_state_dict/load_lora_state_dict. - Head-to-Head NCM vs. AR/Symbolic Arena (
ncm_bench/compare.py,results/hx370-cpu/ncm_vs_baselines.json): Recorded13.04xCPU latency speedup at128tokens (4.70 msvs61.23 ms),86.0%vs0.0%81-step AR /64.0%backtrack on Sudoku-Hard (n=50),28.74vs12.97TF-IDF ROUGE-L on XSum (n=24), and consolidated EPYC/V100 campaign receipts (campaign-20261113-complete.json). - Full Helm Chart & Release Packaging (
deploy/helm/ncm-benchmarks/,pyproject.toml): Added complete Kubernetes Helm templates (deployment.yaml,service.yaml,hpa.yaml,networkpolicy.yaml), syncedcryptography>=42.0.0optional extras, and bumped all charts, server API, and package metadata to3.0.0.
[2.2.0] - 2026-11-13
- Completed all 100 items across all 10 pillars in
docs/ROADMAP-100.md(Detached Ed25519/Schnorr receipts, Merkle evidence bundles, JSON grammar FSM, DPLL constraint solver, ONNX manifests, AsyncNCMClient, TypeScript SDK, Grafana dashboard, Nix flake, DevContainer, and.pyzoffline bundle).
[2.1.0] - 2026-11-13
- Multi-format ingestion (
.html,.csv,.eml),API_KEY/IBANredaction, HMAC-SHA256 audit receipts, Concept-DPO training,/triage/feedbackonline adaptation, CVE/IP extraction, and V100/EPYC multi-dataset scaling receipts.
[2.0.0] - 2026-11-12
Added
- Zero-Pickle Safetensors Support (
ncm_bench/inference.py,ncm-bench convert-safetensors): Addedexport_safetensors()and preference for.safetensors+inference_meta.jsoninsideload_bundle(), eliminating runtime pickle deserialization once converted. Verified on bothxsumandsudoku/hardcheckpoints. - Strict Fail-Closed Integrity (
verify_file_integrity(..., strict=True)): Added--strict-checksums(andNCM_STRICT_CHECKSUMS=1in Docker Compose) so missingSHA256SUMSor unlisted weights hard-fail instead of warning. - Device & Dtype Agility: Added Apple Silicon
mpsauto-detection inresolve_device(),--dtype(fp32,fp16,bf16), and--compile(torch.compile) support. - Sudoku Constraint Verification & Best-of-K Bounded Repair (
ncm_bench/inference.py): Addedrepair_sudoku_board()(clue clamping + naked-single propagation + <=64-node bounded backtracking) andsolve_sudoku(..., best_of_k=..., repair=True). Measured onn=100Sudoku-Hard boards (CPU):84.0% -> 86.0%(K=1+ repair) ->91.0%(K=4+ bounded repair). - Clean-Room Training Package (
ncm_train/,ncm-bench train-smoke): ImplementedStage1Config/train_stage1_vqvaeandStage2Config/train_stage2_ncmproducing checkpoints compatible with upstreamVQVAEandNextConceptTransformer. Verified 40-step training convergence (stage1_loss 194.08 -> 3.79,stage2_loss 3.56 -> 1.29). - Enterprise Document Intelligence (
ncm_bench/longdoc.py): Offline PDF (pypdf) / text ingestion, regex PII redaction & restoration (--redact-pii,--restore-pii), sentence-boundary chunked map-reduce summarization (--long-doc), and cryptographic SHA-256 compliance audit receipts (--audit-receipt). - MBR Cosine Utility & Progressive Diff Highlighting: Added
compute_pairwise_cosineand"cosine"utility inncm_bench/mbr.py,score_bleuviasacrebleuinncm_bench/metrics.py, and per-level token addition diff highlights inncm_bench/progressive.py. - Hardened Async Service (
service/summarize_server.py) & Client SDK (service/client.py):- Non-blocking
anyio.to_thread.run_syncinference offloading +lifespanhandler + optional OpenTelemetry tracing spans. - Endpoints:
POST /longdoc_summarize,POST /sudoku,POST /batch_mbr_summarize,POST /progressive_stream(SSE),GET /v1/models, multi-modelPOST /v1/chat/completions(ncm-xsum-88M&ncm-sudoku-25M), plus--udsandncm-bench verify --artifacts-only. - Protections:
413max request body middleware,429sliding-window IP rate limiter,NCM_STRICT_AUTHgating,NCM_CORS_ORIGINS, and Prometheusncm_inference_duration_seconds_buckethistogram.
- Non-blocking
- Turnkey Deployment & CI:
- Updated
Dockerfile(clones & patchesHazyResearch/ncm@c702742, runsncm-bench verify --artifacts-only),docker-compose.yml,.pre-commit-config.yaml,.gitattributes,deploy/systemd/ncm-summarizer.service, anddeploy/helm/ncm-summarizer/(includingservice.yamlandhpa.yaml). - Expanded
.github/workflows/ci.ymlwith OS/Python matrix and--cov-fail-under=70.
- Updated
Measured On-Hardware Checks (results/hx370-cpu/reality_checks.json)
- XSum Paired FP32 vs INT8 (
n=32, CPUbs=8): FP32 ROUGE34.61 / 12.98 / 27.89(55.93s) vs INT8 ROUGE34.23 / 11.41 / 27.65(33.26s) — -0.24 pp ROUGE-L at 1.68x speedup. - Sudoku-Hard (
n=100, CPU): Greedy (84.0%,18.93s) -> Greedy+Repair (86.0%,18.85s) -> Best-of-4+Bounded-Repair (91.0%, cell98.47%,26.46s). - Live FastAPI E2E (INT8
.safetensors):POST /summarize(1,036 ms),POST /longdoc_summarize(4,504 ms, 4 chunks, 2 PII redactions, SHA-256 receipt),POST /progressive_stream(SSE OK).
[0.1.0] - 2026-11-12
- Initial V100-SXM2 full-corpus benchmarks, HX370 CPU baseline, MBR decoding, dynamic INT8, progressive concept decoder, and FastAPI service.
v2.0.0: Non-H100 Reproduction, Best-of-4 Repair (91%), Zero-Pickle INT8 (1.68x) & Stage-1/2 Trainers
Changelog
All notable changes to ncm-benchmarks are documented in this file.
[2.0.0] - 2026-11-12
Added
- Zero-Pickle Safetensors Support (
ncm_bench/inference.py,ncm-bench convert-safetensors): Addedexport_safetensors()and preference for.safetensors+inference_meta.jsoninsideload_bundle(), eliminating runtime pickle deserialization once converted. Verified on bothxsumandsudoku/hardcheckpoints. - Strict Fail-Closed Integrity (
verify_file_integrity(..., strict=True)): Added--strict-checksums(andNCM_STRICT_CHECKSUMS=1in Docker Compose) so missingSHA256SUMSor unlisted weights hard-fail instead of warning. - Device & Dtype Agility: Added Apple Silicon
mpsauto-detection inresolve_device(),--dtype(fp32,fp16,bf16), and--compile(torch.compile) support. - Sudoku Constraint Verification & Best-of-K Bounded Repair (
ncm_bench/inference.py): Addedrepair_sudoku_board()(clue clamping + naked-single propagation + <=64-node bounded backtracking) andsolve_sudoku(..., best_of_k=..., repair=True). Measured onn=100Sudoku-Hard boards (CPU):84.0% -> 86.0%(K=1+ repair) ->91.0%(K=4+ bounded repair). - Clean-Room Training Package (
ncm_train/,ncm-bench train-smoke): ImplementedStage1Config/train_stage1_vqvaeandStage2Config/train_stage2_ncmproducing checkpoints compatible with upstreamVQVAEandNextConceptTransformer. Verified 40-step training convergence (stage1_loss 194.08 -> 3.79,stage2_loss 3.56 -> 1.29). - Enterprise Document Intelligence (
ncm_bench/longdoc.py): Offline PDF (pypdf) / text ingestion, regex PII redaction & restoration (--redact-pii,--restore-pii), sentence-boundary chunked map-reduce summarization (--long-doc), and cryptographic SHA-256 compliance audit receipts (--audit-receipt). - MBR Cosine Utility & Progressive Diff Highlighting: Added
compute_pairwise_cosineand"cosine"utility inncm_bench/mbr.py,score_bleuviasacrebleuinncm_bench/metrics.py, and per-level token addition diff highlights inncm_bench/progressive.py. - Hardened Async Service (
service/summarize_server.py) & Client SDK (service/client.py):- Non-blocking
anyio.to_thread.run_syncinference offloading +lifespanhandler + optional OpenTelemetry tracing spans. - Endpoints:
POST /longdoc_summarize,POST /sudoku,POST /batch_mbr_summarize,POST /progressive_stream(SSE),GET /v1/models, multi-modelPOST /v1/chat/completions(ncm-xsum-88M&ncm-sudoku-25M), plus--udsandncm-bench verify --artifacts-only. - Protections:
413max request body middleware,429sliding-window IP rate limiter,NCM_STRICT_AUTHgating,NCM_CORS_ORIGINS, and Prometheusncm_inference_duration_seconds_buckethistogram.
- Non-blocking
- Turnkey Deployment & CI:
- Updated
Dockerfile(clones & patchesHazyResearch/ncm@c702742, runsncm-bench verify --artifacts-only),docker-compose.yml,.pre-commit-config.yaml,.gitattributes,deploy/systemd/ncm-summarizer.service, anddeploy/helm/ncm-summarizer/(includingservice.yamlandhpa.yaml). - Expanded
.github/workflows/ci.ymlwith OS/Python matrix and--cov-fail-under=70.
- Updated
Measured On-Hardware Checks (results/hx370-cpu/reality_checks.json)
- XSum Paired FP32 vs INT8 (
n=32, CPUbs=8): FP32 ROUGE34.61 / 12.98 / 27.89(55.93s) vs INT8 ROUGE34.23 / 11.41 / 27.65(33.26s) — -0.24 pp ROUGE-L at 1.68x speedup. - Sudoku-Hard (
n=100, CPU): Greedy (84.0%,18.93s) -> Greedy+Repair (86.0%,18.85s) -> Best-of-4+Bounded-Repair (91.0%, cell98.47%,26.46s). - Live FastAPI E2E (INT8
.safetensors):POST /summarize(1,036 ms),POST /longdoc_summarize(4,504 ms, 4 chunks, 2 PII redactions, SHA-256 receipt),POST /progressive_stream(SSE OK).
[0.1.0] - 2026-11-12
- Initial V100-SXM2 full-corpus benchmarks, HX370 CPU baseline, MBR decoding, dynamic INT8, progressive concept decoder, and FastAPI service.
Complete: CPU + V100 verified reproduction
V100 leg landed. Headline: Sudoku hard FULL official 2000-board test on a shared V100-SXM2 = 86.30% solved vs paper 86.1% (exact-configuration reproduction). XSum 1000 docs: R-L 27.78 (paper 28.0 full set). Latency ladder: 2.34 s/doc (HX370 CPU) -> 0.113 s/doc (V100 bs=1), 10.4 docs/s bs=32 under co-tenant pressure (conservative floor). Includes cross-platform fetcher with all three HF sources revision-pinned.
Verified CPU reproduction (V100 pending)
First release: HX370 CPU results for NCM (arXiv:2610.14162) — Sudoku hard 84.5%/200 boards (paper 86.1%, CI-consistent), XSum R-L 27.10/96 docs (paper 28.0), 2.34 s/doc measured marginal latency, batching null result (-1.9%), device-support patch + provenance-pinned repro scripts + local-first FastAPI summarizer (smoke-tested live at 2306 ms). GPU lane row lands with the V100 run.