v4 flagship Space (3 tiers) from registry v2 (earlier contents: 906bc45ae05c)
Browse filesFiles changed (16)
- .tlsq_deploy+1-1
- README.md+4-4
- geomgnn/SOURCES.json+7
- geomgnn/api.py+40-9
- geomgnn/farfield.pyAdded+73
- models/accurate/acc_v2m_s0.pt → models/accurate/acc_v2m_sf_s0.ptRenamed+2-2
- models/accurate/acc_v2m_s1.pt → models/accurate/acc_v2m_sf_s1.ptRenamed+2-2
- models/accurate/acc_v2m_s2.pt → models/accurate/acc_v2m_sf_s2.ptRenamed+2-2
- models/accurate/info.json+9-9
- models/balanced/bal_v2m_s1.ptDeleted-3
- models/balanced/bal_v2m_s2.ptDeleted-3
- models/balanced/bal_v2m_s0.pt → models/balanced/bal_v2m_sf_s0.ptRenamed+2-2
- models/balanced/bal_v2m_sf_s1.ptAdded+3
- models/balanced/bal_v2m_sf_s2.ptAdded+3
- models/balanced/info.json+9-9
- registry.yaml+27-14
1managed by deploy/sync.py --flagship (registry v1)1managed by deploy/sync.py --flagship (registry v2)
27 unmodified lines28293031323334353637383940415 unmodified lines4748495051525327 unmodified lines| id | tier | paper VAL | paper test in family | paper test zero-shot | paper held-out family | B5 (this model) | B5 physics alone | time on this Space (2 vCPU) | time, x86 node (2 CPUs) ||---|---|---|---|---|---|---|---|---|---|| `accurate` (default) | Accurate (~1 s) | 0.229 % (0.0674 / 0.0792 fF) | 0.177 % (0.0203 / 0.025 fF) | 0.587 % (1.092 / 1.152 fF) | 0.408 % (0.049 / 0.059 fF) | 1.034 % (0.131 / 0.189 fF) | 1.765 % (0.275 / 0.376 fF) | interdigital 0.47 s, xmon 0.91 s, 1-qubit lattice (N 15) 19.0 s, 16-conductor layout 9.9 s, 9-qubit lattice (N 67) 154 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s) | 0.845 / 5.96 s in family, 1.75 / 18.1 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.99 s median || `balanced` | Balanced (~0.5 s) | 0.343 % (0.123 / 0.138 fF) | – | – | – | 1.753 % (0.236 / 0.308 fF) | 2.681 % (0.396 / 0.583 fF) | interdigital 0.29 s, xmon 0.51 s, 1-qubit lattice (N 15) 7.7 s, 16-conductor layout 2.4 s, 9-qubit lattice (N 67) 54 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s) | 0.490 / 2.31 s in family, 1.00 / 10.0 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.56 s median || `fast` | Fast (~0.1 s) | 0.846 % (0.491 / 0.549 fF) | 0.63 % (0.113 / 0.1414 fF) | 3.576 % (4.608 / 5.058 fF) | 3.113 % (0.533 / 0.633 fF) | 3.175 % (0.583 / 0.824 fF) | 1.765 % (0.275 / 0.376 fF) | interdigital 0.036 s, xmon 0.11 s, 1-qubit lattice (N 15) 0.82 s, 16-conductor layout 0.49 s, 9-qubit lattice (N 67) 3.9 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s) | 0.091 / 0.274 s in family, 0.30 / 2.45 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.24 s median |* **Accurate** (default) beats the physics it corrects on B5 by 0.73 pp of median error (paired bootstrap 95 % CI [0.35, 1.12]), 0.144 fFof MAE and 0.187 fF of RMSE. Use it for anything that matters.* **Balanced** is about 2x faster than Accurate at 1.5-1.7x its error (paper VAL 0.343 % (0.123 / 0.138 fF) vs0.229 % (0.0674 / 0.0792 fF); B5 1.753 % (0.236 / 0.308 fF) vs 1.034 % (0.131 / 0.189 fF)).* **Fast** is for quick screening of the component families it was trained on (interdigital, paddle, concentric, star, multipad star,Xmon, TransmonPocket, shielded concentric, two-net, random, procedurally generated and synthetic campaign layouts). **On B5 (new designsof a trained family) it was worse than the physics alone**: 3.175 % (0.583 / 0.824 fF) against 1.765 % (0.275 / 0.376 fF); and in5 unmodified lines### `accurate`: Accurate (~1 s): extrapolated physics R(1.5, 3) on the corrected prior + residual networks, compiled solverTwo thin-film method-of-moments solves (corrected prior v2m, 1.5 and 3 panels per gap), Richardson-extrapolated, corrected by a 3-seed ensemble of the paper model's networks (89,858 parameters per seed, bounded residual) with a learned row-sum closure: the complete Maxwell matrix, self terms included. Networks retrained on all 45,771 on-stack Q3D layouts.Reference recipe: the paper's model (same networks and prior stack at inference; its networks were trained on 35,354 TRAIN layouts on the uncorrected prior; retrained on the corrected prior, as here, they score validation 0.218 % (0.0774 / 0.0888 fF)).27 unmodified lines28293031323334353637383940415 unmodified lines4748495051525327 unmodified lines| id | tier | paper VAL | paper test in family | paper test zero-shot | paper held-out family | B5 (this model) | B5 physics alone | time on this Space (2 vCPU) | time, x86 node (2 CPUs) ||---|---|---|---|---|---|---|---|---|---|| `accurate` (default) | Accurate (~1 s) | 0.229 % (0.0674 / 0.0792 fF) | 0.177 % (0.0203 / 0.025 fF) | 0.587 % (1.092 / 1.152 fF) | 0.408 % (0.049 / 0.059 fF) | 1.05 % (0.132 / 0.188 fF) | 1.765 % (0.275 / 0.376 fF) | interdigital 0.47 s, xmon 0.91 s, 1-qubit lattice (N 15) 19.0 s, 16-conductor layout 9.9 s, 9-qubit lattice (N 67) 154 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s) | 0.845 / 5.96 s in family, 1.75 / 18.1 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.99 s median (1.14 s on the 2026-10-20 re-run, Xeon E5-2640 v4) || `balanced` | Balanced (~0.5 s) | 0.343 % (0.123 / 0.138 fF) | – | – | – | 2.044 % (0.258 / 0.348 fF) | 2.681 % (0.396 / 0.583 fF) | interdigital 0.29 s, xmon 0.51 s, 1-qubit lattice (N 15) 7.7 s, 16-conductor layout 2.4 s, 9-qubit lattice (N 67) 54 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s) | 0.490 / 2.31 s in family, 1.00 / 10.0 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.56 s median || `fast` | Fast (~0.1 s) | 0.846 % (0.491 / 0.549 fF) | 0.63 % (0.113 / 0.1414 fF) | 3.576 % (4.608 / 5.058 fF) | 3.113 % (0.533 / 0.633 fF) | 3.175 % (0.583 / 0.824 fF) | 1.765 % (0.275 / 0.376 fF) | interdigital 0.036 s, xmon 0.11 s, 1-qubit lattice (N 15) 0.82 s, 16-conductor layout 0.49 s, 9-qubit lattice (N 67) 3.9 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s) | 0.091 / 0.274 s in family, 0.30 / 2.45 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.24 s median |* **Accurate** (default) beats the physics it corrects on B5 by 0.73 pp of median error (paired bootstrap 95 % CI [0.35, 1.12]), 0.144 fFof MAE and 0.187 fF of RMSE. Use it for anything that matters.* **Balanced** is about 2x faster than Accurate at 1.5-1.7x its error (paper VAL 0.343 % (0.123 / 0.138 fF) vs0.229 % (0.0674 / 0.0792 fF); B5 2.044 % (0.258 / 0.348 fF) vs 1.05 % (0.132 / 0.188 fF)).* **Fast** is for quick screening of the component families it was trained on (interdigital, paddle, concentric, star, multipad star,Xmon, TransmonPocket, shielded concentric, two-net, random, procedurally generated and synthetic campaign layouts). **On B5 (new designsof a trained family) it was worse than the physics alone**: 3.175 % (0.583 / 0.824 fF) against 1.765 % (0.275 / 0.376 fF); and in5 unmodified lines### `accurate`: Accurate (~1 s): extrapolated physics R(1.5, 3) on the corrected prior + residual networks, compiled solverTwo thin-film method-of-moments solves (corrected prior with substrate far field, 1.5 and 3 panels per gap), Richardson-extrapolated, corrected by a 3-seed ensemble of the paper model's networks (89,858 parameters per seed, bounded residual) with a learned row-sum closure: the complete Maxwell matrix, self terms included. Networks retrained on all 45,771 on-stack Q3D layouts (2026-10-20, on the corrected prior with substrate far field).Reference recipe: the paper's model (same networks and prior stack at inference; its networks were trained on 35,354 TRAIN layouts on the uncorrected prior; retrained on the corrected prior, as here, they score validation 0.218 % (0.0774 / 0.0888 fF)).
217 unmodified lines218219220221222223217 unmodified lines"sha256": "646e48eec701cb11cf5bff7e9f045b2e853d1b8346bda8be94204d3ae960fe84","rewrites": [],"note": "agents/embedspeed (2026-10-20): the training-source copy src/tlsq/uge (byte-identical). Exact batched embedding, numba NN kernel, edge table, numex / far-decimation / cache modes; in the default bitwise mode every feature is bit-identical to the frozen stage file (deploy/tests/test_embed_parity.py, tests/test_embed_parity_src.py, deploy/tests/test_embed_regression.py)."}}}217 unmodified lines218219220221222223224225226227228229230217 unmodified lines"sha256": "646e48eec701cb11cf5bff7e9f045b2e853d1b8346bda8be94204d3ae960fe84","rewrites": [],"note": "agents/embedspeed (2026-10-20): the training-source copy src/tlsq/uge (byte-identical). Exact batched embedding, numba NN kernel, edge table, numex / far-decimation / cache modes; in the default bitwise mode every feature is bit-identical to the frozen stage file (deploy/tests/test_embed_parity.py, tests/test_embed_parity_src.py, deploy/tests/test_embed_regression.py)."},"farfield.py": {"source": "/Users/shanto/LFL/tl_squadds/scripts/farfield/farfield.py","source_sha256": "6c877b47c2894fe78a38ad4199b29e450b610c2c45a261c8cf4d53efc1912836","sha256": "6c877b47c2894fe78a38ad4199b29e450b610c2c45a261c8cf4d53efc1912836","rewrites": [],"note": "far-pair arms of agents/farfield (PROTOCOL.md sec. 2), verbatim; arm 'b' (slab dipole for signal far pairs in different ground pockets) is installed on top of priorv2 by geomgnn.api for patch priorv2m_sf, the corrected prior with substrate far field (user adoption 2026-10-20); vendored 2026-10-20"}}}
63 unmodified lines6465666768697071727374757613 unmodified lines9091929394959697982 unmodified lines1011021031041051061074 unmodified lines11211311411511611711823 unmodified lines14214314414514614714814915063 unmodified linesVALUE_PRESERVING = ("rejtail_fv",) # bit-identical priorsVALUE_CHANGING = ("priorv2m", "priorv2") # change the prior: need prior.value_changing_approved in the registry entry# priorv2.installed() arguments of each value-changing patch: v2m = the corrected prior of the model; v2 = version 2 (no margin# widening), the prior of the paper's "retrained, version 2" ablation (paper Space only)V2_KWARGS = {"priorv2m": dict(policy="fc", dip=True, margin=True), "priorv2": dict(policy="fc", dip=True, margin=False)}PRIOR_PATCHES = VALUE_PRESERVING + VALUE_CHANGINGSPEED_MODES = ("exact", "exact_compiled", "certified") # geomgnn.fastprior_pkg modes (agents/fastprior_pkg/RESULTS.md)13 unmodified linessolver components (patch="priorv2": version 2, margin=False); returns the undo callable."""from . import priorv2assert priorv2.F is F and priorv2.P is P, "priorv2 and fastprior_pkg must patch the same vendor modules"ctx = priorv2.installed(**V2_KWARGS[patch])ctx.__enter__()return lambda: ctx.__exit__(None, None, None)def _teardown() -> None:2 unmodified linesfrom . import fastprior_pkgfastprior_pkg.uninstall() # also undoes its value patchelif set(V2_KWARGS) & set(_STATE["patches"]):_STATE.pop("v2ctx").__exit__(None, None, None)rejtail_fv.uninstall()_STATE.update(patches=[], mode=None, stack=None)4 unmodified linespriorv2m: prior v2m (agents/priorv2/FINALIZATION_V2.json): priorv2.installed(policy='fc', dip=True, margin=True), asfastprior_pkg's value_patch when a mode is set; it replaces _window_solve itself, so never with rejtail_fv.mode: fastprior_pkg.install(mode, cpus=threads, target='geomgnn', value_patch=v2m) + warmup() (numba compile)."""patches = sorted(pr.get("patches") or [])mode = speed_mode(pr)bad = set(patches) - set(PRIOR_PATCHES)if bad:23 unmodified linesif "rejtail_fv" in patches:rejtail_fv.install()if v2:ctx = priorv2.installed(**V2_KWARGS[v2[0]])ctx.__enter__()_STATE["v2ctx"] = ctx_STATE.update(patches=patches, mode=mode, stack=key, pr=dict(pr))if mode:from . import winpool63 unmodified lines6465666768697071727374757677787980818283848586878889909113 unmodified lines1051061071081091101111121131141151161171181191201211221231241251261271281291301312 unmodified lines1341351361371381391404 unmodified lines14514614714814915015123 unmodified lines17517617717817918018163 unmodified linesVALUE_PRESERVING = ("rejtail_fv",) # bit-identical priorsVALUE_CHANGING = ("priorv2m_sf", "priorv2m", "priorv2") # change the prior: need prior.value_changing_approved in the registry entry# priorv2.installed() arguments of each value-changing patch: v2m_sf = the corrected prior with substrate far field (default since# 2026-10-20); v2m = the corrected prior with the half-space far field (before 2026-10-20; reproduction); v2 = version 2 (no margin# widening), the prior of the paper's "retrained, version 2" ablation (paper Space only)V2_KWARGS = {"priorv2m_sf": dict(policy="fc", dip=True, margin=True), "priorv2m": dict(policy="fc", dip=True, margin=True),"priorv2": dict(policy="fc", dip=True, margin=False)}# far-pair form on top of the v2 pieces: geomgnn.farfield = scripts/farfield/farfield.py verbatim, arm b of agents/farfield (slab dipole# for signal far pairs in different ground pockets, half-space dipole inside a pocket); adopted by the user 2026-10-20FAR_ARM = {"priorv2m_sf": "b"}# TLSQ_FAR_FIELD=halfspace: serve priorv2m wherever priorv2m_sf is listed (the previous corrected prior, process-wide; reproduction)FAR_FIELD_ENV = "TLSQ_FAR_FIELD"PRIOR_PATCHES = VALUE_PRESERVING + VALUE_CHANGINGdef resolve_patches(patches) -> list:"""The registry patches with the TLSQ_FAR_FIELD override applied ('halfspace': priorv2m_sf -> priorv2m)."""v = os.environ.get(FAR_FIELD_ENV, "").strip().lower()if v not in ("", "substrate", "halfspace"):raise ValueError(f"{FAR_FIELD_ENV}={v!r}: use 'substrate' (default) or 'halfspace'")return sorted("priorv2m" if (p == "priorv2m_sf" and v == "halfspace") else p for p in (patches or []))SPEED_MODES = ("exact", "exact_compiled", "certified") # geomgnn.fastprior_pkg modes (agents/fastprior_pkg/RESULTS.md)13 unmodified linessolver components (patch="priorv2": version 2, margin=False); returns the undo callable."""from . import priorv2assert priorv2.F is F and priorv2.P is P, "priorv2 and fastprior_pkg must patch the same vendor modules"return _install_v2(priorv2, F, P, patch)def _install_v2(priorv2, F, P, patch):"""priorv2.installed(**V2_KWARGS[patch]) and, for priorv2m_sf, the far-pair arm on top (geomgnn.farfield); returns the undo."""ctx = priorv2.installed(**V2_KWARGS[patch])ctx.__enter__()undo_far = Noneif patch in FAR_ARM:from . import farfieldtry:undo_far = farfield.install(FAR_ARM[patch], F, P, priorv2)except BaseException:ctx.__exit__(None, None, None)raisedef undo():if undo_far is not None:undo_far()ctx.__exit__(None, None, None)return undodef _teardown() -> None:2 unmodified linesfrom . import fastprior_pkgfastprior_pkg.uninstall() # also undoes its value patchelif set(V2_KWARGS) & set(_STATE["patches"]):_STATE.pop("v2undo")()rejtail_fv.uninstall()_STATE.update(patches=[], mode=None, stack=None)4 unmodified linespriorv2m: prior v2m (agents/priorv2/FINALIZATION_V2.json): priorv2.installed(policy='fc', dip=True, margin=True), asfastprior_pkg's value_patch when a mode is set; it replaces _window_solve itself, so never with rejtail_fv.mode: fastprior_pkg.install(mode, cpus=threads, target='geomgnn', value_patch=v2m) + warmup() (numba compile)."""patches = resolve_patches(pr.get("patches"))mode = speed_mode(pr)bad = set(patches) - set(PRIOR_PATCHES)if bad:23 unmodified linesif "rejtail_fv" in patches:rejtail_fv.install()if v2:_STATE["v2undo"] = _install_v2(priorv2, fastprior, proxy, v2[0])_STATE.update(patches=patches, mode=mode, stack=key, pr=dict(pr))if mode:from . import winpool
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273"""farfield arms (agents/farfield/PROTOCOL.md sec. 2): the far-pair dipole form, installed on top of an installed v2mprior (priorv2.installed(policy='fc', dip=True, margin=True)). install(arm, F, P, PV) patches the bound vendor modulesF (fastprior) / P (proxy) through PV (the priorv2 module patching them) and returns the undo callable. a: half-space dipole for every far pair (v2m as deployed; values bit-identical, only timed) b: slab dipole for signal-signal pairs of micro_mom's cross-pocket call; same-pocket and ground far pairs half-space c: slab dipole for every far pairSlab factor (1 + eps_r R(d)) / (1 + eps_r), R = PV.slab_R at the substrate thickness of P.SUBSTRATE, d = centroiddistance: PV.dipole_far_slab's expression, applied per pair."""import time
import numpy as npimport shapely
STATS = dict(cross_calls=0, cross_pairs=0, same_calls=0, same_pairs=0, slab_pairs=0, fill_s=0.0)MODES = {'a': ('half', 'half'), 'b': ('slab_sig', 'half'), 'c': ('slab_all', 'slab_all')}
def reset(): for k in STATS: STATS[k] = 0.0 if k == 'fill_s' else 0
def _dip(mode, frozen, P, PV, tag): def dip(G, conds, pairs, eps_r=11.45, gap=None): t = time.perf_counter() v = frozen(G, conds, pairs, eps_r, gap) pairs = np.asarray(pairs, int).reshape(-1, 2) if mode != 'half': cen = shapely.get_coordinates(shapely.centroid(np.array([G] + list(conds), dtype=object))) d = np.hypot(*(cen[pairs[:, 0]] - cen[pairs[:, 1]]).T) s = v * (1 + eps_r * PV.slab_R(d, float(P.SUBSTRATE["t_um"]), eps_r)) / (1 + eps_r) use = np.ones(len(pairs), bool) if mode == 'slab_all' else (pairs > 0).all(1) v = np.where(use, s, v) STATS['slab_pairs'] += int(use.sum()) STATS[f'{tag}_calls'] += 1 STATS[f'{tag}_pairs'] += len(pairs) STATS['fill_s'] += time.perf_counter() - t return v return dip
def install(arm, F, P, PV): assert F.formula_prior is PV.formula_as_dipole and F._window_solve is not None, 'v2m fill must be installed first' frozen = PV._FROZEN['dipole_far'] assert F.dipole_far is frozen, 'dipole_far must be the vendor function under v2m' saved = (F.dipole_far, F.formula_prior) cross, same = (_dip(m, frozen, P, PV, t) for m, t in zip(MODES[arm], ('cross', 'same')))
def formula(G, conds, eps_r=11.45, step_um=None, R_gaps=None, pairs=None, gap=None, screen_um=None, workers=1, max_core=8): F.dipole_far = same try: return PV.formula_as_dipole(G, conds, eps_r, step_um, R_gaps, pairs, gap, screen_um, workers, max_core) finally: F.dipole_far = cross
F.dipole_far, F.formula_prior = cross, formula
def undo(): F.dipole_far, F.formula_prior = saved return undo
def install_sentinel(F): """G4: any far-fill call raises.""" saved = (F.dipole_far, F.formula_prior)
def boom(*a, **k): raise RuntimeError('far fill called') F.dipole_far = F.formula_prior = boom
def undo(): F.dipole_far, F.formula_prior = saved return undo123version https://git-lfs.github.com/spec/v1oid sha256:56109a61bb264151ca7a650cd79a516d60dcf6c92f257ded38ff9ad97a1421a2size 8410286123version https://git-lfs.github.com/spec/v1oid sha256:cc69c5818f5028c26177159b88239116520abbb290743d6a6c091657e8dbf1c5size 8410606
123version https://git-lfs.github.com/spec/v1oid sha256:ae9c4be59caa84eb6a220a91e18fce696e98e3a9c3aab09e16ac727e7fc2d898size 8410286123version https://git-lfs.github.com/spec/v1oid sha256:2f88606dbec5c599550d088213a4c37af3b3ad5134ebad2e60519fb534553a57size 8410606
123version https://git-lfs.github.com/spec/v1oid sha256:0841acc6a3db32e2d5def72443445361c4ae41ac782b38b7856a78f0547b1e19size 8410286123version https://git-lfs.github.com/spec/v1oid sha256:d13bafc6b2eb7cadcd97a387d791c0210976db1a9d618f9acc1b614e3701daedsize 8410606
1 unmodified line2345678910111213141516171819201 unmodified line"name": "accurate","kind": "gnn","checkpoints": ["acc_v2m_s0.pt","acc_v2m_s1.pt","acc_v2m_s2.pt"],"checkpoints_sha256": ["56109a61bb264151ca7a650cd79a516d60dcf6c92f257ded38ff9ad97a1421a2","ae9c4be59caa84eb6a220a91e18fce696e98e3a9c3aab09e16ac727e7fc2d898","0841acc6a3db32e2d5def72443445361c4ae41ac782b38b7856a78f0547b1e19"],"checkpoints_source": ["data_local/flagship_v4/hpc/runs/acc_v2m_s0/model.pt","data_local/flagship_v4/hpc/runs/acc_v2m_s1/model.pt","data_local/flagship_v4/hpc/runs/acc_v2m_s2/model.pt"],"surrogate": [],"surrogate_sha256": [],1 unmodified line2345678910111213141516171819201 unmodified line"name": "accurate","kind": "gnn","checkpoints": ["acc_v2m_sf_s0.pt","acc_v2m_sf_s1.pt","acc_v2m_sf_s2.pt"],"checkpoints_sha256": ["cc69c5818f5028c26177159b88239116520abbb290743d6a6c091657e8dbf1c5","2f88606dbec5c599550d088213a4c37af3b3ad5134ebad2e60519fb534553a57","d13bafc6b2eb7cadcd97a387d791c0210976db1a9d618f9acc1b614e3701daed"],"checkpoints_source": ["data_local/flagship_v4/hpc/runs/acc_v2m_sf_s0/model.pt","data_local/flagship_v4/hpc/runs/acc_v2m_sf_s1/model.pt","data_local/flagship_v4/hpc/runs/acc_v2m_sf_s2/model.pt"],"surrogate": [],"surrogate_sha256": [],
123version https://git-lfs.github.com/spec/v1oid sha256:5d1f0ffbac76bc2742ef26adfcbe44be99dc795ba92fd2b0439c541dcfbbb14esize 8410286123version https://git-lfs.github.com/spec/v1oid sha256:dcd14c610e251b23d77b34a114e5a2db33fade289306270057151f2750890d35size 8410286123version https://git-lfs.github.com/spec/v1oid sha256:5016672366dead959a425890bfb23df0ea4fdab050aaf03e1e428ac2597bfe0csize 8410286123version https://git-lfs.github.com/spec/v1oid sha256:aa742ab93b1e3ffcd86a753bda5cc4a68812acbe8140a6b0e311c11d1f36b4b2size 8410606
123version https://git-lfs.github.com/spec/v1oid sha256:486466473eba61c090f4e3fa7988bf880fc183570c5d02bd78f4c1356691f926size 8410606123version https://git-lfs.github.com/spec/v1oid sha256:1b55ded04fd624585eeeccf2ab6e4a8e9354a9b96694131e1737dde43ad3ff58size 84106061 unmodified line2345678910111213141516171819201 unmodified line"name": "balanced","kind": "gnn","checkpoints": ["bal_v2m_s0.pt","bal_v2m_s1.pt","bal_v2m_s2.pt"],"checkpoints_sha256": ["5016672366dead959a425890bfb23df0ea4fdab050aaf03e1e428ac2597bfe0c","5d1f0ffbac76bc2742ef26adfcbe44be99dc795ba92fd2b0439c541dcfbbb14e","dcd14c610e251b23d77b34a114e5a2db33fade289306270057151f2750890d35"],"checkpoints_source": ["data_local/flagship_v4/hpc/runs/bal_v2m_s0/model.pt","data_local/flagship_v4/hpc/runs/bal_v2m_s1/model.pt","data_local/flagship_v4/hpc/runs/bal_v2m_s2/model.pt"],"surrogate": [],"surrogate_sha256": [],1 unmodified line2345678910111213141516171819201 unmodified line"name": "balanced","kind": "gnn","checkpoints": ["bal_v2m_sf_s0.pt","bal_v2m_sf_s1.pt","bal_v2m_sf_s2.pt"],"checkpoints_sha256": ["aa742ab93b1e3ffcd86a753bda5cc4a68812acbe8140a6b0e311c11d1f36b4b2","486466473eba61c090f4e3fa7988bf880fc183570c5d02bd78f4c1356691f926","1b55ded04fd624585eeeccf2ab6e4a8e9354a9b96694131e1737dde43ad3ff58"],"checkpoints_source": ["data_local/flagship_v4/hpc/runs/bal_v2m_sf_s0/model.pt","data_local/flagship_v4/hpc/runs/bal_v2m_sf_s1/model.pt","data_local/flagship_v4/hpc/runs/bal_v2m_sf_s2/model.pt"],"surrogate": [],"surrogate_sha256": [],
5 unmodified lines6789101112945 unmodified lines958959960961962963964422 unmodified lines138713881389139013911392139313941395139613976 unmodified lines140414051406140714081409141014111412141314141415141614171418141914201421142214234 unmodified lines142814291430143114321433143414351436143714381439144014415 unmodified lines# Paths are relative to the repository root. Metrics: median |relative error| (%) / MAE (fF) / RMSE (fF) over all# mutual entries, as in the paper (paper_ml/floats/tab_candidates.tex, paper_ml/tables/cost_rows.tex).version: 1package_version: "0.1.0"hub:945 unmodified lineslive: deploy/tests/results/paper_space_live_after_20261020.json, rollback: {commit: 34091ebf7be6bbc7ebc37e392b7ae527805cbe97, sdk: gradio,local_copy: data_local/hf_archive/2026PaperModels_34091ebf}} # agents/embedspeed sped-up exact pipeline + baked numba cache; outputs bitwise = the Gradio build (12 live matrices)prior_stacks: # process-wide prior settings (geomgnn.api.set_prior_stack), installed per requestcorrected: &stack_corrected # prior v2m + compiled exact solver = the model's prior (gnn_models.GNN); also flagship_hubpatches: [priorv2m]mode: exact_compiledmodule_sha256: 1a0bdcb71500c7f11e63238afe531c18caabd5c9f6f7aaa73d9b7dcd0ad61f8c422 unmodified linesnote: "the earlier draft's model repos (SQuADDS/2026PaperModels-*) are untouched; the old builder (sync.py without flags) skips this Space"deployed: {commit: 8db73f7d1bcd7a5aeaf777dfd9f878afa054068a, date: 2026-10-20, gate: deploy/tests/results/flagship_space_gate_20261020.json,live: deploy/tests/results/flagship_space_live_20261020.json} # 3 tiers, 80.7 MB bundle, RUNNING on cpu-basic, private (first push 79acb1d9, then the Space timings)docker: {commit: c512e691e3117aea79062f89cc2aa1235a9706f0, date: 2026-10-20, sdk: docker, bundle: deploy/build_flagship_docker/PlanarCapacitanceModel,live: deploy/tests/results/flagship_space_live_after_20261020.json, rollback: {commit: 8db73f7d1bcd7a5aeaf777dfd9f878afa054068a, sdk: gradio,local_copy: data_local/hf_archive/PlanarCapacitanceModel_8db73f7d}} # agents/embedspeed: F64 embedding default (TLSQ_EMBEDDING_EXACT=1 = exact recipe) + baked numba cacheprior_stacks:corrected: *stack_corrected # prior v2m + compiled exact solver (the same stack as the paper Space's model)flagship_tiers:accurate:6 unmodified linesstack: correctedppg: [1.5, 3.0]checkpoints:- {name: acc_v2m_s0, path: data_local/flagship_v4/hpc/runs/acc_v2m_s0/model.pt, sha256: 56109a61bb264151ca7a650cd79a516d60dcf6c92f257ded38ff9ad97a1421a2}- {name: acc_v2m_s1, path: data_local/flagship_v4/hpc/runs/acc_v2m_s1/model.pt, sha256: ae9c4be59caa84eb6a220a91e18fce696e98e3a9c3aab09e16ac727e7fc2d898}- {name: acc_v2m_s2, path: data_local/flagship_v4/hpc/runs/acc_v2m_s2/model.pt, sha256: 0841acc6a3db32e2d5def72443445361c4ae41ac782b38b7856a78f0547b1e19}summary: "Two thin-film method-of-moments solves (corrected prior v2m, 1.5 and 3 panels per gap), Richardson-extrapolated, corrected by a 3-seed ensemble of the paper model's networks (89,858 parameters per seed, bounded residual) with a learned row-sum closure: the complete Maxwell matrix, self terms included. Networks retrained on all 45,771 on-stack Q3D layouts."reference:recipe: "the paper's model (same networks and prior stack at inference; its networks were trained on 35,354 TRAIN layouts on the uncorrected prior; retrained on the corrected prior, as here, they score validation 0.218 % (0.0774 / 0.0888 fF))"val: {median_pct: 0.229, mae_ff: 0.0674, rmse_ff: 0.0792}test_infamily: {median_pct: 0.177, mae_ff: 0.0203, rmse_ff: 0.0250}test_zeroshot: {median_pct: 0.587, mae_ff: 1.092, rmse_ff: 1.152}heldout_family: {median_pct: 0.408, mae_ff: 0.049, rmse_ff: 0.059}b5: {median_pct: 1.034, mae_ff: 0.131, rmse_ff: 0.189}b5_physics: {name: "physics alone C^R = R(1.5, 3)", median_pct: 1.765, mae_ff: 0.275, rmse_ff: 0.376}time_space: "interdigital 0.47 s, xmon 0.91 s, 1-qubit lattice (N 15) 19.0 s, 16-conductor layout 9.9 s, 9-qubit lattice (N 67) 154 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s)"time_x86: "0.845 / 5.96 s in family, 1.75 / 18.1 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.99 s median"balanced:title: "Balanced (~0.5 s): the same recipe on the coarser pair R(0.75, 1.5) of the corrected prior, networks retrained"paper_name: "Balanced"4 unmodified linesstack: correctedppg: [0.75, 1.5]checkpoints:- {name: bal_v2m_s0, path: data_local/flagship_v4/hpc/runs/bal_v2m_s0/model.pt, sha256: 5016672366dead959a425890bfb23df0ea4fdab050aaf03e1e428ac2597bfe0c}- {name: bal_v2m_s1, path: data_local/flagship_v4/hpc/runs/bal_v2m_s1/model.pt, sha256: 5d1f0ffbac76bc2742ef26adfcbe44be99dc795ba92fd2b0439c541dcfbbb14e}- {name: bal_v2m_s2, path: data_local/flagship_v4/hpc/runs/bal_v2m_s2/model.pt, sha256: dcd14c610e251b23d77b34a114e5a2db33fade289306270057151f2750890d35}summary: "The Accurate recipe on the coarser Richardson pair (0.75 and 1.5 panels per gap, about half the solve time), networks retrained on that pair on all 45,771 on-stack layouts. About 2x faster than Accurate at 1.5-1.7x its error."reference:recipe: "the paper's coarser pair + the model's recipe (trained on 35,354 TRAIN layouts; validation only, never test-scored)"val: {median_pct: 0.343, mae_ff: 0.123, rmse_ff: 0.138}b5: {median_pct: 1.753, mae_ff: 0.236, rmse_ff: 0.308}b5_physics: {name: "physics alone R(0.75, 1.5)", median_pct: 2.681, mae_ff: 0.396, rmse_ff: 0.583}time_space: "interdigital 0.29 s, xmon 0.51 s, 1-qubit lattice (N 15) 7.7 s, 16-conductor layout 2.4 s, 9-qubit lattice (N 67) 54 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s)"time_x86: "0.490 / 2.31 s in family, 1.00 / 10.0 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.56 s median"5 unmodified lines6789101112945 unmodified lines958959960961962963964965966967968969970971972973974975976977422 unmodified lines140014011402140314041405140614071408140914106 unmodified lines141714181419142014211422142314241425142614271428142914301431143214331434143514364 unmodified lines144114421443144414451446144714481449145014511452145314545 unmodified lines# Paths are relative to the repository root. Metrics: median |relative error| (%) / MAE (fF) / RMSE (fF) over all# mutual entries, as in the paper (paper_ml/floats/tab_candidates.tex, paper_ml/tables/cost_rows.tex).version: 2 # 2: corrected prior with substrate far field (2026-10-20, agents/farfield/ADOPTION.md); 1: beforepackage_version: "0.1.0"hub:945 unmodified lineslive: deploy/tests/results/paper_space_live_after_20261020.json, rollback: {commit: 34091ebf7be6bbc7ebc37e392b7ae527805cbe97, sdk: gradio,local_copy: data_local/hf_archive/2026PaperModels_34091ebf}} # agents/embedspeed sped-up exact pipeline + baked numba cache; outputs bitwise = the Gradio build (12 live matrices)prior_stacks: # process-wide prior settings (geomgnn.api.set_prior_stack), installed per requestcorrected: &stack_corrected # since 2026-10-20: the corrected prior with substrate far field + compiled exact solver = the model's prior; also flagship_hubtitle: "corrected prior with substrate far field"version: v2m_sf_fc_dipfill_margin_slabfar # v2m + far pairs in different ground pockets: substrate (slab) dipole; same pocket: half-space dipolepatches: [priorv2m_sf] # VALUE-CHANGING: geomgnn/priorv2.py installed(policy='fc', dip=True, margin=True) + geomgnn/farfield.py arm 'b'mode: exact_compiledmodule_sha256: 1a0bdcb71500c7f11e63238afe531c18caabd5c9f6f7aaa73d9b7dcd0ad61f8cfarfield_sha256: 6c877b47c2894fe78a38ad4199b29e450b610c2c45a261c8cf4d53efc1912836 # scripts/farfield/farfield.py (agents/farfield), vendored verbatimspeed_package_sha256: 956f2b62c308ec1561bbc033716b52c24dc63a916b9373cc44090eb6514e5ddevalue_changing_approved: "user 2026-10-17 (v2m, gnn_models.GNN); user 2026-10-20: adopted arm (b) of agents/farfield (substrate dipole for far pairs in different ground pockets; pre-declared rule met, agents/farfield/RESULTS.md; adoption agents/farfield/ADOPTION.md)"speed_approved: "user 2026-10-17 (gnn_models.GNN)"previous: corrected_halfspace # the same stack with the half-space far field (before 2026-10-20); process-wide override: TLSQ_FAR_FIELD=halfspacecorrected_halfspace: # the corrected prior before 2026-10-20 (v2m, half-space dipole for every far pair), for reproduction; not served by any armtitle: "corrected prior (half-space far field, before 2026-10-20)"version: v2m_fc_dipfill_marginpatches: [priorv2m]mode: exact_compiledmodule_sha256: 1a0bdcb71500c7f11e63238afe531c18caabd5c9f6f7aaa73d9b7dcd0ad61f8c422 unmodified linesnote: "the earlier draft's model repos (SQuADDS/2026PaperModels-*) are untouched; the old builder (sync.py without flags) skips this Space"deployed: {commit: 8db73f7d1bcd7a5aeaf777dfd9f878afa054068a, date: 2026-10-20, gate: deploy/tests/results/flagship_space_gate_20261020.json,live: deploy/tests/results/flagship_space_live_20261020.json} # 3 tiers, 80.7 MB bundle, RUNNING on cpu-basic, private (first push 79acb1d9, then the Space timings)docker: {commit: e3e5a832e04ede8088bd91d7c0567cd68330ff51, first_push: c512e691e3117aea79062f89cc2aa1235a9706f0, date: 2026-10-20, sdk: docker, bundle: deploy/build_flagship_docker/PlanarCapacitanceModel,live: deploy/tests/results/flagship_space_live_after_20261020.json, rollback: {commit: 8db73f7d1bcd7a5aeaf777dfd9f878afa054068a, sdk: gradio,local_copy: data_local/hf_archive/PlanarCapacitanceModel_8db73f7d}} # agents/embedspeed: F64 embedding default (TLSQ_EMBEDDING_EXACT=1 = exact recipe) + baked numba cacheprior_stacks:corrected: *stack_corrected # the corrected prior with substrate far field + compiled exact solver (the same stack as the paper Space's model)flagship_tiers:accurate:6 unmodified linesstack: correctedppg: [1.5, 3.0]checkpoints:- {name: acc_v2m_sf_s0, path: data_local/flagship_v4/hpc/runs/acc_v2m_sf_s0/model.pt, sha256: cc69c5818f5028c26177159b88239116520abbb290743d6a6c091657e8dbf1c5} # was acc_v2m_s0 56109a61 (half-space far field)- {name: acc_v2m_sf_s1, path: data_local/flagship_v4/hpc/runs/acc_v2m_sf_s1/model.pt, sha256: 2f88606dbec5c599550d088213a4c37af3b3ad5134ebad2e60519fb534553a57} # was acc_v2m_s1 ae9c4be5 (half-space far field)- {name: acc_v2m_sf_s2, path: data_local/flagship_v4/hpc/runs/acc_v2m_sf_s2/model.pt, sha256: d13bafc6b2eb7cadcd97a387d791c0210976db1a9d618f9acc1b614e3701daed} # was acc_v2m_s2 0841acc6 (half-space far field)summary: "Two thin-film method-of-moments solves (corrected prior with substrate far field, 1.5 and 3 panels per gap), Richardson-extrapolated, corrected by a 3-seed ensemble of the paper model's networks (89,858 parameters per seed, bounded residual) with a learned row-sum closure: the complete Maxwell matrix, self terms included. Networks retrained on all 45,771 on-stack Q3D layouts (2026-10-20, on the corrected prior with substrate far field)."reference:recipe: "the paper's model (same networks and prior stack at inference; its networks were trained on 35,354 TRAIN layouts on the uncorrected prior; retrained on the corrected prior, as here, they score validation 0.218 % (0.0774 / 0.0888 fF))"val: {median_pct: 0.229, mae_ff: 0.0674, rmse_ff: 0.0792}test_infamily: {median_pct: 0.177, mae_ff: 0.0203, rmse_ff: 0.0250}test_zeroshot: {median_pct: 0.587, mae_ff: 1.092, rmse_ff: 1.152}heldout_family: {median_pct: 0.408, mae_ff: 0.049, rmse_ff: 0.059}b5: {median_pct: 1.050, mae_ff: 0.132, rmse_ff: 0.188} # retrained 2026-10-20 (substrate far field); before 1.034 % (0.131 / 0.189 fF); B5 priors unchanged (N 3-4), seed-level network changeb5_physics: {name: "physics alone C^R = R(1.5, 3)", median_pct: 1.765, mae_ff: 0.275, rmse_ff: 0.376}time_space: "interdigital 0.47 s, xmon 0.91 s, 1-qubit lattice (N 15) 19.0 s, 16-conductor layout 9.9 s, 9-qubit lattice (N 67) 154 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s)"time_x86: "0.845 / 5.96 s in family, 1.75 / 18.1 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.99 s median (1.14 s on the 2026-10-20 re-run, Xeon E5-2640 v4)"balanced:title: "Balanced (~0.5 s): the same recipe on the coarser pair R(0.75, 1.5) of the corrected prior, networks retrained"paper_name: "Balanced"4 unmodified linesstack: correctedppg: [0.75, 1.5]checkpoints:- {name: bal_v2m_sf_s0, path: data_local/flagship_v4/hpc/runs/bal_v2m_sf_s0/model.pt, sha256: aa742ab93b1e3ffcd86a753bda5cc4a68812acbe8140a6b0e311c11d1f36b4b2} # was bal_v2m_s0 50166723 (half-space far field)- {name: bal_v2m_sf_s1, path: data_local/flagship_v4/hpc/runs/bal_v2m_sf_s1/model.pt, sha256: 486466473eba61c090f4e3fa7988bf880fc183570c5d02bd78f4c1356691f926} # was bal_v2m_s1 5d1f0ffb (half-space far field)- {name: bal_v2m_sf_s2, path: data_local/flagship_v4/hpc/runs/bal_v2m_sf_s2/model.pt, sha256: 1b55ded04fd624585eeeccf2ab6e4a8e9354a9b96694131e1737dde43ad3ff58} # was bal_v2m_s2 dcd14c61 (half-space far field)summary: "The Accurate recipe on the coarser Richardson pair (0.75 and 1.5 panels per gap, about half the solve time), networks retrained on that pair on all 45,771 on-stack layouts. About 2x faster than Accurate at 1.5-1.7x its error."reference:recipe: "the paper's coarser pair + the model's recipe (trained on 35,354 TRAIN layouts; validation only, never test-scored)"val: {median_pct: 0.343, mae_ff: 0.123, rmse_ff: 0.138}b5: {median_pct: 2.044, mae_ff: 0.258, rmse_ff: 0.348} # retrained 2026-10-20 (substrate far field); before 1.753 % (0.236 / 0.308 fF); B5 priors unchanged (N 3-4), within the earlier seed range 1.79-2.07 %b5_physics: {name: "physics alone R(0.75, 1.5)", median_pct: 2.681, mae_ff: 0.396, rmse_ff: 0.583}time_space: "interdigital 0.29 s, xmon 0.51 s, 1-qubit lattice (N 15) 7.7 s, 16-conductor layout 2.4 s, 9-qubit lattice (N 67) 54 s (server time, one request, Docker build 2026-10-20; a repeated request is answered from the cache in ~0.01 s)"time_x86: "0.490 / 2.31 s in family, 1.00 / 10.0 s zero-shot (median / p90; x86 cluster, 2 CPUs); B5 0.56 s median"
.tlsq_deploy+1-1
README.md+4-4
geomgnn/SOURCES.json+7
geomgnn/api.py+40-9
geomgnn/farfield.pyAdded+73
models/accurate/acc_v2m_s0.pt → models/accurate/acc_v2m_sf_s0.ptRenamed+2-2
models/accurate/acc_v2m_s1.pt → models/accurate/acc_v2m_sf_s1.ptRenamed+2-2
models/accurate/acc_v2m_s2.pt → models/accurate/acc_v2m_sf_s2.ptRenamed+2-2
models/accurate/info.json+9-9
models/balanced/bal_v2m_s1.ptDeleted-3
models/balanced/bal_v2m_s2.ptDeleted-3
models/balanced/bal_v2m_s0.pt → models/balanced/bal_v2m_sf_s0.ptRenamed+2-2
models/balanced/bal_v2m_sf_s1.ptAdded+3
models/balanced/bal_v2m_sf_s2.ptAdded+3
models/balanced/info.json+9-9
registry.yaml+27-14