sync from registry v1
Browse files- LIMITS.md +15 -10
- README.md +1 -1
- app.py +2 -2
- examples/__pycache__/client.cpython-312.pyc +0 -0
- examples/client.py +1 -1
- registry.yaml +38 -34
- tlsq_infer/app_ui.py +10 -10
- tlsq_infer/predict.py +22 -12
LIMITS.md
CHANGED
|
@@ -98,7 +98,7 @@ the environment for private Spaces) and the same stress cases through gradio_cli
|
|
| 98 |
2,477 signal conductors of the 926-design evaluation set), so the default overestimates C_Sigma (and underestimates
|
| 99 |
E_C) by about 0.45 % there. eps is a parameter (`predict(..., row_sum_eps=...)`); the default is kept at the training
|
| 100 |
value and is not tuned on held-out data.
|
| 101 |
-
* **Mesh coarsening.** When a layout needs more than the default cell cap (8,000
|
| 102 |
not a limit of the models), the MoM mesh is coarsened until it fits. This is now reported: `result["prior_mesh"]` (achieved and target h_min, smallest gap, cells
|
| 103 |
across it, `cap_hit`; for v3-rich also `extrapolated`), a warning in `warnings` and `expected_error["mesh_warning"]`.
|
| 104 |
* **Conductor order.** Networks and the MoM prior are invariant to the polygon order of the file (shuffling test:
|
|
@@ -106,14 +106,19 @@ the environment for private Spaces) and the same stress cases through gradio_cli
|
|
| 106 |
deployment blends use order-invariant kinds (conductor-conductor / conductor-ground) when `blend.kinds: invariant`
|
| 107 |
is set in the registry (`deploy/tests/test_review_fixes.py`).
|
| 108 |
|
| 109 |
-
## 6. Flagship tiers: `all-data-v3s` (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
Measured on HPC main-partition nodes (`torch.set_num_threads(2)`, OMP/BLAS 2 threads, `OPENBLAS_CORETYPE=Haswell`;
|
| 112 |
fastest of the runs per case). These nodes are ~2.5x slower than the Apple M host of section 1 (pair-local comb_f400:
|
| 113 |
277 s here, 86 s there). End to end from the GDS, s, after the v3 non-positive-definite fix (deploy/MODEL_SELECTION.md,
|
| 114 |
amendment 5):
|
| 115 |
|
| 116 |
-
| layout | all-data-v3s (
|
| 117 |
|---|---|---|---|---|
|
| 118 |
| comb, 25 / 50 / 100 fingers | 8.0 / 24.4 / 23.1 | 26.6 / 58.6 / 101.7 | 10.8 / 20.9 / 36.8 | 10.8 / 20.9 / 36.8 |
|
| 119 |
| comb, 200 / 400 fingers | 91.0 / 161.4 | 257.3 / 293.2 | 98.3 / 276.7 | 98.3 / 276.7 |
|
|
@@ -131,16 +136,16 @@ Findings
|
|
| 131 |
`all-data-v3s` no longer needs its fallback model on any stress, held-out or robustness layout; the fallback stays as a
|
| 132 |
safety net.
|
| 133 |
* **Resolution floor.** At 200-400 fingers every prior (v2 included) is far from converged (0.15-0.75 cells across the
|
| 134 |
-
gap; e.g. 50 fingers: v2 standard C_NS 480 fF, v3 691 fF, v3 with a 4x cell cap 725 fF,
|
| 135 |
carries the mesh-coarsening warning; treat such layouts as indicative.
|
| 136 |
-
* The
|
| 137 |
hardware measure it with `deploy/tests/test_app.py` after deployment.
|
| 138 |
* OpenBLAS's SkylakeX Cholesky kernel segfaulted on one v3 system (Qiskit Metal TransmonInterdigitated sample, 15.5k
|
| 139 |
panels); the Space apps set `OPENBLAS_CORETYPE=Haswell` on x86 before numpy loads.
|
| 140 |
* Robustness (`deploy/tests/results/robustness_all-data-v3s.json`, `robustness_all-data-v3-rich.json`): 219/219 files
|
| 141 |
pass for both (matrices or clean rejections, invariance to translation, rotation, units); C_ii < sum |C_ij| in 98
|
| 142 |
-
(
|
| 143 |
-
* Bundle: flagship Space 10.4 MB (both tiers + `all-data-base` + `all-data`, the
|
| 144 |
Space 25.7 MB (`python deploy/sync.py`, dry run).
|
| 145 |
|
| 146 |
## 7. Per-entry error estimates (`result["per_entry"]`, ERROR_MODEL.md, 2026-10-08)
|
|
@@ -148,14 +153,14 @@ Findings
|
|
| 148 |
**Not enabled in the release** (user decision 2026-10-08): `artifacts.error_model` in the registry is empty, so
|
| 149 |
`per_entry` is `None` and `expected_error` is the global estimate, until the pre-declared v2 has been evaluated on the
|
| 150 |
fresh Qiskit Metal atlas and >7-conductor labels. The code, the v1 artifacts and the tests stay in place; enabling is
|
| 151 |
-
one registry line. When enabled, the
|
| 152 |
`p_large_error` (P(|err| > 5 %)) and `predicted_median_err_pct`; the Spaces show the matrix with ± the 80 % interval
|
| 153 |
(toggle), a per-entry table and a CSV of the intervals. `expected_error` is now derived from the per-entry estimates
|
| 154 |
(`source`; the old global estimate is kept under `global_estimate`); the material / thickness terms are added in
|
| 155 |
quadrature. Other models keep the global estimate. The matrix itself is unchanged (tests: `test_error_model.py`).
|
| 156 |
Cost: < 35 ms per 8-conductor matrix (features + two 300-tree models); artifacts 0.4 MB each.
|
| 157 |
|
| 158 |
-
**Measured on held-out designs (never used in fitting or calibration),
|
| 159 |
|
| 160 |
| set | entries (> 5 %) | network median % / MAE fF / RMSE fF | AUROC P(>5 %) | 80 % coverage | 95 % coverage |
|
| 161 |
|---|---|---|---|---|---|
|
|
@@ -165,7 +170,7 @@ Cost: < 35 ms per 8-conductor matrix (features + two 300-tree models); artifacts
|
|
| 165 |
|
| 166 |
* **Treat the intervals as indicative.** The pre-declared targets (AUROC >= 0.75, coverage within 5 points) were not
|
| 167 |
met: the intervals under-cover by up to 10 points (80 %) / 9 points (95 %) on the Qiskit Metal components.
|
| 168 |
-
* **Small couplings.** Entries below 0.3 fF have a median error of 4.0 % (
|
| 169 |
80 % intervals cover only ~53 %; above 10 fF the error is 1.6 % (MAE 0.90 fF, RMSE 1.55 fF) and coverage 80 %. A
|
| 170 |
relative error flag on a sub-0.3 fF coupling is usually an aF-scale absolute error.
|
| 171 |
* `p_large_error` ranks entries only moderately; the predicted |C_ij| alone, the seed spread and the embedding distance
|
|
|
|
| 98 |
2,477 signal conductors of the 926-design evaluation set), so the default overestimates C_Sigma (and underestimates
|
| 99 |
E_C) by about 0.45 % there. eps is a parameter (`predict(..., row_sum_eps=...)`); the default is kept at the training
|
| 100 |
value and is not tuned on held-out data.
|
| 101 |
+
* **Mesh coarsening.** When a layout needs more than the default cell cap (8,000 for the gap/3 meshes / 16,000 for the gap/6 solve of the fine prior; a setting,
|
| 102 |
not a limit of the models), the MoM mesh is coarsened until it fits. This is now reported: `result["prior_mesh"]` (achieved and target h_min, smallest gap, cells
|
| 103 |
across it, `cap_hit`; for v3-rich also `extrapolated`), a warning in `warnings` and `expected_error["mesh_warning"]`.
|
| 104 |
* **Conductor order.** Networks and the MoM prior are invariant to the polygon order of the file (shuffling test:
|
|
|
|
| 106 |
deployment blends use order-invariant kinds (conductor-conductor / conductor-ground) when `blend.kinds: invariant`
|
| 107 |
is set in the registry (`deploy/tests/test_review_fixes.py`).
|
| 108 |
|
| 109 |
+
## 6. Flagship tiers: `all-data-v3s` (coarse prior, default) and `all-data-v3-rich` (fine prior), 2-thread latency
|
| 110 |
+
|
| 111 |
+
Naming (2026-10-09): **coarse prior** = one gap/3 solve on the conductor-anchored v3 mesh (was "fast"), **fine prior** =
|
| 112 |
+
gap/3 + gap/6 with Richardson extrapolation (was "accurate"); `predict(model="coarse" | "fine")`, the old words are kept as
|
| 113 |
+
aliases and in the model ids. The chip-anchored baselines are the earlier standard (8k) and earlier 16k priors (the latter
|
| 114 |
+
was "earlier fine"). "Flagship prior" is reserved for a future large-scale scheme and is not released.
|
| 115 |
|
| 116 |
Measured on HPC main-partition nodes (`torch.set_num_threads(2)`, OMP/BLAS 2 threads, `OPENBLAS_CORETYPE=Haswell`;
|
| 117 |
fastest of the runs per case). These nodes are ~2.5x slower than the Apple M host of section 1 (pair-local comb_f400:
|
| 118 |
277 s here, 86 s there). End to end from the GDS, s, after the v3 non-positive-definite fix (deploy/MODEL_SELECTION.md,
|
| 119 |
amendment 5):
|
| 120 |
|
| 121 |
+
| layout | all-data-v3s (coarse) | all-data-v3-rich (fine) | all-data-base (fallback) | pair-local (previous flagship) |
|
| 122 |
|---|---|---|---|---|
|
| 123 |
| comb, 25 / 50 / 100 fingers | 8.0 / 24.4 / 23.1 | 26.6 / 58.6 / 101.7 | 10.8 / 20.9 / 36.8 | 10.8 / 20.9 / 36.8 |
|
| 124 |
| comb, 200 / 400 fingers | 91.0 / 161.4 | 257.3 / 293.2 | 98.3 / 276.7 | 98.3 / 276.7 |
|
|
|
|
| 136 |
`all-data-v3s` no longer needs its fallback model on any stress, held-out or robustness layout; the fallback stays as a
|
| 137 |
safety net.
|
| 138 |
* **Resolution floor.** At 200-400 fingers every prior (v2 included) is far from converged (0.15-0.75 cells across the
|
| 139 |
+
gap; e.g. 50 fingers: v2 standard C_NS 480 fF, v3 691 fF, v3 with a 4x cell cap 725 fF, earlier 16k 704 fF). The result
|
| 140 |
carries the mesh-coarsening warning; treat such layouts as indicative.
|
| 141 |
+
* The fine tier's worst case (400-finger comb, 293 s on these nodes) is close to a 300 s request budget; on the Space
|
| 142 |
hardware measure it with `deploy/tests/test_app.py` after deployment.
|
| 143 |
* OpenBLAS's SkylakeX Cholesky kernel segfaulted on one v3 system (Qiskit Metal TransmonInterdigitated sample, 15.5k
|
| 144 |
panels); the Space apps set `OPENBLAS_CORETYPE=Haswell` on x86 before numpy loads.
|
| 145 |
* Robustness (`deploy/tests/results/robustness_all-data-v3s.json`, `robustness_all-data-v3-rich.json`): 219/219 files
|
| 146 |
pass for both (matrices or clean rejections, invariance to translation, rotation, units); C_ii < sum |C_ij| in 98
|
| 147 |
+
(coarse) / 80 (fine) of 213 matrices (use `self_from_rows=True` for a consistent Maxwell matrix).
|
| 148 |
+
* Bundle: flagship Space 10.4 MB (both tiers + `all-data-base` + `all-data`, the fine tier's fallback), paper-models
|
| 149 |
Space 25.7 MB (`python deploy/sync.py`, dry run).
|
| 150 |
|
| 151 |
## 7. Per-entry error estimates (`result["per_entry"]`, ERROR_MODEL.md, 2026-10-08)
|
|
|
|
| 153 |
**Not enabled in the release** (user decision 2026-10-08): `artifacts.error_model` in the registry is empty, so
|
| 154 |
`per_entry` is `None` and `expected_error` is the global estimate, until the pre-declared v2 has been evaluated on the
|
| 155 |
fresh Qiskit Metal atlas and >7-conductor labels. The code, the v1 artifacts and the tests stay in place; enabling is
|
| 156 |
+
one registry line. When enabled, the coarse and fine tiers and `pair-local-fast` return, per mutual entry, `interval_80_fF`, `interval_95_fF`,
|
| 157 |
`p_large_error` (P(|err| > 5 %)) and `predicted_median_err_pct`; the Spaces show the matrix with ± the 80 % interval
|
| 158 |
(toggle), a per-entry table and a CSV of the intervals. `expected_error` is now derived from the per-entry estimates
|
| 159 |
(`source`; the old global estimate is kept under `global_estimate`); the material / thickness terms are added in
|
| 160 |
quadrature. Other models keep the global estimate. The matrix itself is unchanged (tests: `test_error_model.py`).
|
| 161 |
Cost: < 35 ms per 8-conductor matrix (features + two 300-tree models); artifacts 0.4 MB each.
|
| 162 |
|
| 163 |
+
**Measured on held-out designs (never used in fitting or calibration), coarse tier / fine tier:**
|
| 164 |
|
| 165 |
| set | entries (> 5 %) | network median % / MAE fF / RMSE fF | AUROC P(>5 %) | 80 % coverage | 95 % coverage |
|
| 166 |
|---|---|---|---|---|---|
|
|
|
|
| 170 |
|
| 171 |
* **Treat the intervals as indicative.** The pre-declared targets (AUROC >= 0.75, coverage within 5 points) were not
|
| 172 |
met: the intervals under-cover by up to 10 points (80 %) / 9 points (95 %) on the Qiskit Metal components.
|
| 173 |
+
* **Small couplings.** Entries below 0.3 fF have a median error of 4.0 % (coarse; MAE 0.004 fF, RMSE 0.007 fF) and their
|
| 174 |
80 % intervals cover only ~53 %; above 10 fF the error is 1.6 % (MAE 0.90 fF, RMSE 1.55 fF) and coverage 80 %. A
|
| 175 |
relative error flag on a sub-0.3 fF coupling is usually an aF-scale absolute error.
|
| 176 |
* `p_large_error` ranks entries only moderately; the predicted |C_ij| alone, the seed spread and the embedding distance
|
README.md
CHANGED
|
@@ -35,6 +35,6 @@ models:
|
|
| 35 |
|
| 36 |
Upload a GDS of a planar superconducting layout (ground 1/0, conductors 1/10, or assign your layers) and get the full Maxwell capacitance matrix in fF, zero-shot. See also [shanto268/2026PaperModels](https://huggingface.co/spaces/shanto268/2026PaperModels).
|
| 37 |
|
| 38 |
-
Programmatic use: `examples/client.py` (gradio_client, endpoint `/predict_gds`).
|
| 39 |
|
| 40 |
Hardware: free CPU tier (2 vCPU, 16 GB); see LIMITS.md for measured latency and caps.
|
|
|
|
| 35 |
|
| 36 |
Upload a GDS of a planar superconducting layout (ground 1/0, conductors 1/10, or assign your layers) and get the full Maxwell capacitance matrix in fF, zero-shot. See also [shanto268/2026PaperModels](https://huggingface.co/spaces/shanto268/2026PaperModels).
|
| 37 |
|
| 38 |
+
Programmatic use: `examples/client.py` (gradio_client, endpoint `/predict_gds`; model = `coarse` (default, fastest) or `fine` (most accurate); `fast` / `accurate` are accepted as aliases).
|
| 39 |
|
| 40 |
Hardware: free CPU tier (2 vCPU, 16 GB); see LIMITS.md for measured latency and caps.
|
app.py
CHANGED
|
@@ -26,10 +26,10 @@ hub = reg["hub"]
|
|
| 26 |
space = os.environ.get("SPACE_ID", hub["flagship_space"])
|
| 27 |
default = reg["defaults"]["flagship_model"]
|
| 28 |
models = [default] + ([reg["defaults"]["flagship_accurate_model"]] if reg["defaults"].get("flagship_accurate_model") else [])
|
| 29 |
-
t = reg["defaults"].get("tiers", {}).get("
|
| 30 |
d = t if t.get("median_pct") is not None else reg.model(default)["paper"]["never_seen"]
|
| 31 |
where = t.get("set", "926 never-seen designs") if t else "926 never-seen designs"
|
| 32 |
-
header = (f"Zero-shot Maxwell capacitance of planar superconducting layouts. Default (
|
| 33 |
f"({d['median_pct']} % median error, MAE {d['mae_ff']} fF, RMSE {d['rmse_ff']} fF on {where}). "
|
| 34 |
f"All paper models: [{hub['paper_models_space']}](https://huggingface.co/spaces/{hub['paper_models_space']}). "
|
| 35 |
f"Weights: [{reg.model(default)['repo_id']}](https://huggingface.co/{reg.model(default)['repo_id']}). "
|
|
|
|
| 26 |
space = os.environ.get("SPACE_ID", hub["flagship_space"])
|
| 27 |
default = reg["defaults"]["flagship_model"]
|
| 28 |
models = [default] + ([reg["defaults"]["flagship_accurate_model"]] if reg["defaults"].get("flagship_accurate_model") else [])
|
| 29 |
+
t = reg["defaults"].get("tiers", {}).get("coarse") or {}
|
| 30 |
d = t if t.get("median_pct") is not None else reg.model(default)["paper"]["never_seen"]
|
| 31 |
where = t.get("set", "926 never-seen designs") if t else "926 never-seen designs"
|
| 32 |
+
header = (f"Zero-shot Maxwell capacitance of planar superconducting layouts. Default (coarse prior) model: **{reg.model(default)['title']}** "
|
| 33 |
f"({d['median_pct']} % median error, MAE {d['mae_ff']} fF, RMSE {d['rmse_ff']} fF on {where}). "
|
| 34 |
f"All paper models: [{hub['paper_models_space']}](https://huggingface.co/spaces/{hub['paper_models_space']}). "
|
| 35 |
f"Weights: [{reg.model(default)['repo_id']}](https://huggingface.co/{reg.model(default)['repo_id']}). "
|
examples/__pycache__/client.cpython-312.pyc
ADDED
|
Binary file (4.38 kB). View file
|
|
|
examples/client.py
CHANGED
|
@@ -20,7 +20,7 @@ ap.add_argument("--margin-gaps", type=float, default=0.0, help="ground crop marg
|
|
| 20 |
ap.add_argument("--substrate", default="Si (cryogenic, training)", help="a substrate name of the Space, or 'custom eps_r'")
|
| 21 |
ap.add_argument("--eps", type=float, default=11.45, help="eps_r when --substrate 'custom eps_r'")
|
| 22 |
ap.add_argument("--thickness", type=float, default=350.0, help="substrate thickness (µm)")
|
| 23 |
-
ap.add_argument("--model", default="
|
| 24 |
ap.add_argument("--self-from-rows", action="store_true")
|
| 25 |
a = ap.parse_args()
|
| 26 |
|
|
|
|
| 20 |
ap.add_argument("--substrate", default="Si (cryogenic, training)", help="a substrate name of the Space, or 'custom eps_r'")
|
| 21 |
ap.add_argument("--eps", type=float, default=11.45, help="eps_r when --substrate 'custom eps_r'")
|
| 22 |
ap.add_argument("--thickness", type=float, default=350.0, help="substrate thickness (µm)")
|
| 23 |
+
ap.add_argument("--model", default="coarse", help="coarse (default, fastest; alias fast) / fine (most accurate; alias accurate), or a registry model name")
|
| 24 |
ap.add_argument("--self-from-rows", action="store_true")
|
| 25 |
a = ap.parse_args()
|
| 26 |
|
registry.yaml
CHANGED
|
@@ -14,6 +14,8 @@ hub:
|
|
| 14 |
private: true # create every repo private; flip deliberately when the paper is public
|
| 15 |
space_hardware: cpu-basic # free tier: 2 vCPU, 16 GB RAM
|
| 16 |
flagship_space: shanto268/PlanarCapacitanceModel # org Gradio Spaces need a paid HF plan; move to SQuADDS/ by editing this line
|
|
|
|
|
|
|
| 17 |
flagship_title: Planar Capacitance Model
|
| 18 |
paper_models_space: shanto268/2026PaperModels
|
| 19 |
paper_models_title: 2026 Paper Models
|
|
@@ -81,14 +83,15 @@ artifacts:
|
|
| 81 |
error_model: {}
|
| 82 |
|
| 83 |
defaults:
|
| 84 |
-
flagship_model: all-data-v3s #
|
| 85 |
-
flagship_accurate_model: all-data-v3-rich #
|
| 86 |
paper_space_model: pair-local-fast # this work's headline (paper abstract)
|
| 87 |
-
tiers: # shown in the flagship UI;
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
|
|
|
| 92 |
|
| 93 |
models:
|
| 94 |
# ---------------------------------------------------------------- learned, released
|
|
@@ -101,7 +104,7 @@ models:
|
|
| 101 |
status: available
|
| 102 |
checkpoints: [data_local/mega/ckpt/ALL_mom_r0_s0.pt, data_local/mega/ckpt/ALL_mom_r0_s1.pt, data_local/mega/ckpt/ALL_mom_r0_s2.pt]
|
| 103 |
parameters: 209410
|
| 104 |
-
summary: "Earlier prior (published v2 mesh). Former flagship; superseded by the
|
| 105 |
paper:
|
| 106 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:splits, fig:zs-arch, fig:stack, tab:stack]
|
| 107 |
never_seen: {median_pct: 1.73, mae_ff: 0.83, rmse_ff: 1.62}
|
|
@@ -196,7 +199,7 @@ models:
|
|
| 196 |
ood60: {median_pct: 8.09, mae_ff: 2.26, rmse_ff: 3.56}
|
| 197 |
|
| 198 |
fine-mom-prior:
|
| 199 |
-
title: "Earlier
|
| 200 |
repo_id: null
|
| 201 |
kind: prior
|
| 202 |
prior: fine
|
|
@@ -208,14 +211,14 @@ models:
|
|
| 208 |
|
| 209 |
# ---------------------------------------------------------------- pending (trained on HPC; copy checkpoints, flip status)
|
| 210 |
pair-local-fine:
|
| 211 |
-
title: "Pair-local network + earlier
|
| 212 |
repo_id: SQuADDS/2026PaperModels-pair-local-fine
|
| 213 |
kind: gnn
|
| 214 |
prior: fine
|
| 215 |
rounds: 0
|
| 216 |
status: available
|
| 217 |
checkpoints: [data_local/mega/ckpt_fine/ALL_mom_r0_s0.pt, data_local/mega/ckpt_fine/ALL_mom_r0_s1.pt, data_local/mega/ckpt_fine/ALL_mom_r0_s2.pt]
|
| 218 |
-
summary: "Earlier
|
| 219 |
paper:
|
| 220 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:wonky-shape-main]
|
| 221 |
never_seen: {median_pct: 1.74, mae_ff: 0.98, rmse_ff: 1.87}
|
|
@@ -223,14 +226,14 @@ models:
|
|
| 223 |
cost_s_per_design: {never_seen: 38.0, ood60: 1.84}
|
| 224 |
|
| 225 |
message-passing-fine:
|
| 226 |
-
title: "Message-passing network + earlier
|
| 227 |
repo_id: SQuADDS/2026PaperModels-message-passing-fine
|
| 228 |
kind: gnn
|
| 229 |
prior: fine
|
| 230 |
rounds: 3
|
| 231 |
status: available
|
| 232 |
checkpoints: [data_local/mega/ckpt_fine/ALL_mom_s0.pt, data_local/mega/ckpt_fine/ALL_mom_s1.pt, data_local/mega/ckpt_fine/ALL_mom_s2.pt]
|
| 233 |
-
summary: "Earlier
|
| 234 |
paper:
|
| 235 |
appears_in: [tab:candidates, tab:costacc, fig:costacc]
|
| 236 |
never_seen: {median_pct: 1.74, mae_ff: 0.74, rmse_ff: 1.39}
|
|
@@ -239,7 +242,7 @@ models:
|
|
| 239 |
cost_s_per_design: {never_seen: 38.0, ood60: 1.85}
|
| 240 |
|
| 241 |
all-data:
|
| 242 |
-
title: "All-data pair-local network + earlier
|
| 243 |
repo_id: SQuADDS/2026PaperModels-all-data
|
| 244 |
kind: gnn
|
| 245 |
prior: fine
|
|
@@ -259,11 +262,11 @@ models:
|
|
| 259 |
rounds: 0
|
| 260 |
status: available
|
| 261 |
checkpoints: [data_local/mega/alldata/base_r0_s0.pt, data_local/mega/alldata/base_r0_s1.pt, data_local/mega/alldata/base_r0_s2.pt]
|
| 262 |
-
summary: "Trained on every labelled design, standard 8k-cell MoM prior. Safety fallback of the
|
| 263 |
validation: {median_pct: 2.77, mae_ff: 0.96, rmse_ff: 2.657, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 264 |
|
| 265 |
all-data-v3s:
|
| 266 |
-
title: "All-data pair-local network +
|
| 267 |
repo_id: SQuADDS/2026PaperModels-all-data-v3s
|
| 268 |
kind: gnn
|
| 269 |
prior: v3
|
|
@@ -271,7 +274,7 @@ models:
|
|
| 271 |
status: available
|
| 272 |
fallback: all-data-base
|
| 273 |
checkpoints: [data_local/mega/alldata/v3s_r0_s0.pt, data_local/mega/alldata/v3s_r0_s1.pt, data_local/mega/alldata/v3s_r0_s2.pt]
|
| 274 |
-
summary: "
|
| 275 |
validation: {median_pct: 1.75, mae_ff: 0.534, rmse_ff: 1.173, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 276 |
paper:
|
| 277 |
appears_in: [tab:candidates, tab:wonky-shape-main]
|
|
@@ -284,7 +287,7 @@ models:
|
|
| 284 |
cost_s_per_design: {median: 3.0, p90: 8.0, max: 12.8, note: "end to end from the GDS, 2 threads, HPC main-partition node"}
|
| 285 |
|
| 286 |
all-data-v3-rich:
|
| 287 |
-
title: "All-data pair-local network +
|
| 288 |
repo_id: SQuADDS/2026PaperModels-all-data-v3-rich
|
| 289 |
kind: gnn
|
| 290 |
prior: v3-rich
|
|
@@ -292,7 +295,7 @@ models:
|
|
| 292 |
status: available
|
| 293 |
fallback: all-data
|
| 294 |
checkpoints: [data_local/mega/alldata/v3_r0_s0.pt, data_local/mega/alldata/v3_r0_s1.pt, data_local/mega/alldata/v3_r0_s2.pt]
|
| 295 |
-
summary: "
|
| 296 |
validation: {median_pct: 1.31, mae_ff: 0.403, rmse_ff: 0.877, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 297 |
paper:
|
| 298 |
appears_in: [tab:candidates, tab:wonky-shape-main]
|
|
@@ -305,10 +308,11 @@ models:
|
|
| 305 |
cost_s_per_design: {median: 12.8, p90: 33.3, max: 50.4, note: "end to end from the GDS, 2 threads, HPC node; stress layouts up to 293 s (400-finger comb)"}
|
| 306 |
|
| 307 |
# ---------------------------------------------------------------- this work: conductor-anchored v3 priors (paper_ml, 2026-10-08)
|
| 308 |
-
#
|
|
|
|
| 309 |
# (median % / MAE fF / RMSE fF, all mutual entries); in_family_test = held-out test split of the 5 families.
|
| 310 |
pair-local-fast:
|
| 311 |
-
title: "Pair-local network +
|
| 312 |
repo_id: SQuADDS/2026PaperModels-pair-local-fast
|
| 313 |
kind: gnn
|
| 314 |
prior: v3
|
|
@@ -316,7 +320,7 @@ models:
|
|
| 316 |
status: available
|
| 317 |
fallback: pair-local
|
| 318 |
checkpoints: [data_local/mega/v3s/ALL_mom_r0_s0.pt, data_local/mega/v3s/ALL_mom_r0_s1.pt, data_local/mega/v3s/ALL_mom_r0_s2.pt]
|
| 319 |
-
summary: "This work's headline: zero-shot on never-seen components 1.23 % median. Five training families,
|
| 320 |
paper:
|
| 321 |
appears_in: [abstract, tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, tab:wonky-shape-main, fig:newtopo-all]
|
| 322 |
never_seen: {median_pct: 1.23, mae_ff: 0.57, rmse_ff: 1.02}
|
|
@@ -325,7 +329,7 @@ models:
|
|
| 325 |
deploy_heldout: {median_pct: 2.63, mae_ff: 0.616, rmse_ff: 1.193, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 326 |
|
| 327 |
message-passing-fast:
|
| 328 |
-
title: "Message-passing network +
|
| 329 |
repo_id: SQuADDS/2026PaperModels-message-passing-fast
|
| 330 |
kind: gnn
|
| 331 |
prior: v3
|
|
@@ -333,7 +337,7 @@ models:
|
|
| 333 |
status: available
|
| 334 |
fallback: message-passing
|
| 335 |
checkpoints: [data_local/mega/v3s/ALL_mom_s0.pt, data_local/mega/v3s/ALL_mom_s1.pt, data_local/mega/v3s/ALL_mom_s2.pt]
|
| 336 |
-
summary: "Five training families,
|
| 337 |
paper:
|
| 338 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, fig:newtopo-all]
|
| 339 |
never_seen: {median_pct: 1.67, mae_ff: 0.72, rmse_ff: 1.32}
|
|
@@ -342,7 +346,7 @@ models:
|
|
| 342 |
deploy_heldout: {median_pct: 2.70, mae_ff: 0.638, rmse_ff: 1.259, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 343 |
|
| 344 |
pair-local-accurate:
|
| 345 |
-
title: "Pair-local network +
|
| 346 |
repo_id: SQuADDS/2026PaperModels-pair-local-accurate
|
| 347 |
kind: gnn
|
| 348 |
prior: v3-rich
|
|
@@ -350,7 +354,7 @@ models:
|
|
| 350 |
status: available
|
| 351 |
fallback: pair-local-fine
|
| 352 |
checkpoints: [data_local/mega/v3/ALL_mom_r0_s0.pt, data_local/mega/v3/ALL_mom_r0_s1.pt, data_local/mega/v3/ALL_mom_r0_s2.pt]
|
| 353 |
-
summary: "Five training families,
|
| 354 |
paper:
|
| 355 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, tab:wonky-shape-main, fig:newtopo-all]
|
| 356 |
never_seen: {median_pct: 1.57, mae_ff: 0.92, rmse_ff: 1.57}
|
|
@@ -359,7 +363,7 @@ models:
|
|
| 359 |
deploy_heldout: {median_pct: 1.91, mae_ff: 0.484, rmse_ff: 1.022, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 360 |
|
| 361 |
message-passing-accurate:
|
| 362 |
-
title: "Message-passing network +
|
| 363 |
repo_id: SQuADDS/2026PaperModels-message-passing-accurate
|
| 364 |
kind: gnn
|
| 365 |
prior: v3-rich
|
|
@@ -367,7 +371,7 @@ models:
|
|
| 367 |
status: available
|
| 368 |
fallback: message-passing-fine
|
| 369 |
checkpoints: [data_local/mega/v3/ALL_mom_s0.pt, data_local/mega/v3/ALL_mom_s1.pt, data_local/mega/v3/ALL_mom_s2.pt]
|
| 370 |
-
summary: "Five training families,
|
| 371 |
paper:
|
| 372 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, fig:newtopo-all]
|
| 373 |
never_seen: {median_pct: 1.34, mae_ff: 0.60, rmse_ff: 1.07}
|
|
@@ -376,13 +380,13 @@ models:
|
|
| 376 |
deploy_heldout: {median_pct: 2.11, mae_ff: 0.695, rmse_ff: 2.074, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 377 |
|
| 378 |
charge-corrected-prior-fast:
|
| 379 |
-
title: "Charge-corrected
|
| 380 |
repo_id: SQuADDS/2026PaperModels-charge-corrected-prior-fast
|
| 381 |
kind: charge_prior
|
| 382 |
prior: v3
|
| 383 |
status: available
|
| 384 |
checkpoints: [deploy/artifacts/charge_gbm_v3c.joblib]
|
| 385 |
-
summary: "
|
| 386 |
paper:
|
| 387 |
appears_in: [tab:candidates]
|
| 388 |
never_seen: {median_pct: 2.67, mae_ff: 0.96, rmse_ff: 1.50}
|
|
@@ -390,7 +394,7 @@ models:
|
|
| 390 |
in_family_test: {median_pct: 0.87, mae_ff: 0.24, rmse_ff: 0.76}
|
| 391 |
|
| 392 |
blend-pair-local-fast:
|
| 393 |
-
title: "Blended model: pair-local
|
| 394 |
repo_id: SQuADDS/2026PaperModels-blend-pair-local-fast
|
| 395 |
kind: blend
|
| 396 |
components: [pair-local-fast, charge-corrected-prior-fast]
|
|
@@ -404,7 +408,7 @@ models:
|
|
| 404 |
deploy_heldout: {median_pct: 2.33, mae_ff: 0.547, rmse_ff: 1.097, ood60: "1.09 / 0.405 / 0.799", set: "212 deploy held-out designs, order-invariant weights"}
|
| 405 |
|
| 406 |
blend-pair-local-accurate:
|
| 407 |
-
title: "Blended model: pair-local
|
| 408 |
repo_id: SQuADDS/2026PaperModels-blend-pair-local-accurate
|
| 409 |
kind: blend
|
| 410 |
components: [pair-local-accurate, charge-corrected-prior-fast]
|
|
@@ -418,7 +422,7 @@ models:
|
|
| 418 |
deploy_heldout: {median_pct: 2.02, mae_ff: 0.485, rmse_ff: 1.048, ood60: "1.11 / 0.329 / 0.594", set: "212 deploy held-out designs, order-invariant weights"}
|
| 419 |
|
| 420 |
fast-prior:
|
| 421 |
-
title: "
|
| 422 |
repo_id: null
|
| 423 |
kind: prior
|
| 424 |
prior: v3
|
|
@@ -431,7 +435,7 @@ models:
|
|
| 431 |
in_family_test: {median_pct: 4.38, mae_ff: 0.70, rmse_ff: 1.73}
|
| 432 |
|
| 433 |
accurate-prior:
|
| 434 |
-
title: "
|
| 435 |
repo_id: null
|
| 436 |
kind: prior
|
| 437 |
prior: v3-rich
|
|
|
|
| 14 |
private: true # create every repo private; flip deliberately when the paper is public
|
| 15 |
space_hardware: cpu-basic # free tier: 2 vCPU, 16 GB RAM
|
| 16 |
flagship_space: shanto268/PlanarCapacitanceModel # org Gradio Spaces need a paid HF plan; move to SQuADDS/ by editing this line
|
| 17 |
+
# ("flagship" here = the default Space; the prior tiers are "coarse" / "fine",
|
| 18 |
+
# and "flagship prior" is reserved for a future large-scale scheme, not released)
|
| 19 |
flagship_title: Planar Capacitance Model
|
| 20 |
paper_models_space: shanto268/2026PaperModels
|
| 21 |
paper_models_title: 2026 Paper Models
|
|
|
|
| 83 |
error_model: {}
|
| 84 |
|
| 85 |
defaults:
|
| 86 |
+
flagship_model: all-data-v3s # coarse tier, default (was "fast"; deploy/MODEL_SELECTION.md, amendment 1 rule)
|
| 87 |
+
flagship_accurate_model: all-data-v3-rich # fine tier (was "accurate"; key name kept; MODEL_SELECTION.md, amendment 5 re-score)
|
| 88 |
paper_space_model: pair-local-fast # this work's headline (paper abstract)
|
| 89 |
+
tiers: # shown in the flagship UI; keys = tier names (aliases fast -> coarse, accurate -> fine still accepted by predict);
|
| 90 |
+
# held-out = OOD-60 + pocket3 random-36 + Qiskit Metal new 116, pooled mutual entries
|
| 91 |
+
coarse: {latency_s: 4, median_pct: 1.75, mae_ff: 0.534, rmse_ff: 1.173, set: "212 held-out designs (OOD-60, random TransmonPocket-3, 6 new Qiskit Metal classes)",
|
| 92 |
+
note: "On this free CPU Space: 2.5-6 s for single components (measured on the 4 examples, refactored code); very long interdigitated combs (hundreds of fingers) can take several minutes."}
|
| 93 |
+
fine: {latency_s: 16, median_pct: 1.31, mae_ff: 0.403, rmse_ff: 0.877, set: "212 held-out designs (OOD-60, random TransmonPocket-3, 6 new Qiskit Metal classes)",
|
| 94 |
+
note: "On this free CPU Space: 12.5-20.5 s for single components (measured on the 4 examples, refactored code); very long combs may exceed the time limit, use the coarse prior for those. Richardson-extrapolated v3 prior (gap/3 + gap/6)."}
|
| 95 |
|
| 96 |
models:
|
| 97 |
# ---------------------------------------------------------------- learned, released
|
|
|
|
| 104 |
status: available
|
| 105 |
checkpoints: [data_local/mega/ckpt/ALL_mom_r0_s0.pt, data_local/mega/ckpt/ALL_mom_r0_s1.pt, data_local/mega/ckpt/ALL_mom_r0_s2.pt]
|
| 106 |
parameters: 209410
|
| 107 |
+
summary: "Earlier prior (published v2 mesh). Former flagship; superseded by the coarse-prior models of this work."
|
| 108 |
paper:
|
| 109 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:splits, fig:zs-arch, fig:stack, tab:stack]
|
| 110 |
never_seen: {median_pct: 1.73, mae_ff: 0.83, rmse_ff: 1.62}
|
|
|
|
| 199 |
ood60: {median_pct: 8.09, mae_ff: 2.26, rmse_ff: 3.56}
|
| 200 |
|
| 201 |
fine-mom-prior:
|
| 202 |
+
title: "Earlier 16k MoM prior alone (training-free, published chip-anchored v2 mesh, 16k cells)"
|
| 203 |
repo_id: null
|
| 204 |
kind: prior
|
| 205 |
prior: fine
|
|
|
|
| 211 |
|
| 212 |
# ---------------------------------------------------------------- pending (trained on HPC; copy checkpoints, flip status)
|
| 213 |
pair-local-fine:
|
| 214 |
+
title: "Pair-local network + earlier 16k MoM prior (R=0, published chip-anchored v2 mesh, 16k cells)"
|
| 215 |
repo_id: SQuADDS/2026PaperModels-pair-local-fine
|
| 216 |
kind: gnn
|
| 217 |
prior: fine
|
| 218 |
rounds: 0
|
| 219 |
status: available
|
| 220 |
checkpoints: [data_local/mega/ckpt_fine/ALL_mom_r0_s0.pt, data_local/mega/ckpt_fine/ALL_mom_r0_s1.pt, data_local/mega/ckpt_fine/ALL_mom_r0_s2.pt]
|
| 221 |
+
summary: "Earlier 16k prior (published chip-anchored v2 mesh, 16k cells; was called the earlier fine prior). Trained on 35,283 designs (star families subsampled to 300 each)."
|
| 222 |
paper:
|
| 223 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:wonky-shape-main]
|
| 224 |
never_seen: {median_pct: 1.74, mae_ff: 0.98, rmse_ff: 1.87}
|
|
|
|
| 226 |
cost_s_per_design: {never_seen: 38.0, ood60: 1.84}
|
| 227 |
|
| 228 |
message-passing-fine:
|
| 229 |
+
title: "Message-passing network + earlier 16k MoM prior (R=3, published chip-anchored v2 mesh, 16k cells)"
|
| 230 |
repo_id: SQuADDS/2026PaperModels-message-passing-fine
|
| 231 |
kind: gnn
|
| 232 |
prior: fine
|
| 233 |
rounds: 3
|
| 234 |
status: available
|
| 235 |
checkpoints: [data_local/mega/ckpt_fine/ALL_mom_s0.pt, data_local/mega/ckpt_fine/ALL_mom_s1.pt, data_local/mega/ckpt_fine/ALL_mom_s2.pt]
|
| 236 |
+
summary: "Earlier 16k prior (published chip-anchored v2 mesh, 16k cells; was called the earlier fine prior). Trained on 35,283 designs (star families subsampled to 300 each)."
|
| 237 |
paper:
|
| 238 |
appears_in: [tab:candidates, tab:costacc, fig:costacc]
|
| 239 |
never_seen: {median_pct: 1.74, mae_ff: 0.74, rmse_ff: 1.39}
|
|
|
|
| 242 |
cost_s_per_design: {never_seen: 38.0, ood60: 1.85}
|
| 243 |
|
| 244 |
all-data:
|
| 245 |
+
title: "All-data pair-local network + earlier 16k MoM prior (R=0, published chip-anchored v2 mesh)"
|
| 246 |
repo_id: SQuADDS/2026PaperModels-all-data
|
| 247 |
kind: gnn
|
| 248 |
prior: fine
|
|
|
|
| 262 |
rounds: 0
|
| 263 |
status: available
|
| 264 |
checkpoints: [data_local/mega/alldata/base_r0_s0.pt, data_local/mega/alldata/base_r0_s1.pt, data_local/mega/alldata/base_r0_s2.pt]
|
| 265 |
+
summary: "Trained on every labelled design, earlier standard 8k-cell MoM prior. Safety fallback of the coarse tier if its v3 prior cannot be solved (not needed on any test layout since the non-positive-definite fix). Candidate D of deploy/MODEL_SELECTION.md."
|
| 266 |
validation: {median_pct: 2.77, mae_ff: 0.96, rmse_ff: 2.657, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 267 |
|
| 268 |
all-data-v3s:
|
| 269 |
+
title: "All-data pair-local network + coarse prior (v3, one gap/3 solve, R=0)"
|
| 270 |
repo_id: SQuADDS/2026PaperModels-all-data-v3s
|
| 271 |
kind: gnn
|
| 272 |
prior: v3
|
|
|
|
| 274 |
status: available
|
| 275 |
fallback: all-data-base
|
| 276 |
checkpoints: [data_local/mega/alldata/v3s_r0_s0.pt, data_local/mega/alldata/v3s_r0_s1.pt, data_local/mega/alldata/v3s_r0_s2.pt]
|
| 277 |
+
summary: "Deployed coarse tier (default; fastest). Trained on every labelled design on the conductor-anchored v3 MoM prior (one gap/3 solve). Candidate V3S-PLall of deploy/MODEL_SELECTION.md."
|
| 278 |
validation: {median_pct: 1.75, mae_ff: 0.534, rmse_ff: 1.173, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 279 |
paper:
|
| 280 |
appears_in: [tab:candidates, tab:wonky-shape-main]
|
|
|
|
| 287 |
cost_s_per_design: {median: 3.0, p90: 8.0, max: 12.8, note: "end to end from the GDS, 2 threads, HPC main-partition node"}
|
| 288 |
|
| 289 |
all-data-v3-rich:
|
| 290 |
+
title: "All-data pair-local network + fine prior (v3-rich, gap/3 + gap/6 Richardson, R=0)"
|
| 291 |
repo_id: SQuADDS/2026PaperModels-all-data-v3-rich
|
| 292 |
kind: gnn
|
| 293 |
prior: v3-rich
|
|
|
|
| 295 |
status: available
|
| 296 |
fallback: all-data
|
| 297 |
checkpoints: [data_local/mega/alldata/v3_r0_s0.pt, data_local/mega/alldata/v3_r0_s1.pt, data_local/mega/alldata/v3_r0_s2.pt]
|
| 298 |
+
summary: "Deployed fine tier (most accurate). Trained on every labelled design on the Richardson-extrapolated v3 MoM prior (gap/3 + gap/6). Candidate V3R-PLall of deploy/MODEL_SELECTION.md."
|
| 299 |
validation: {median_pct: 1.31, mae_ff: 0.403, rmse_ff: 0.877, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 300 |
paper:
|
| 301 |
appears_in: [tab:candidates, tab:wonky-shape-main]
|
|
|
|
| 308 |
cost_s_per_design: {median: 12.8, p90: 33.3, max: 50.4, note: "end to end from the GDS, 2 threads, HPC node; stress layouts up to 293 s (400-finger comb)"}
|
| 309 |
|
| 310 |
# ---------------------------------------------------------------- this work: conductor-anchored v3 priors (paper_ml, 2026-10-08)
|
| 311 |
+
# coarse prior = v3s (one gap/3 solve; was "fast"), fine prior = v3-rich (gap/3 + gap/6, Richardson; was "accurate").
|
| 312 |
+
# Model ids and repo names keep the old words (*-fast, *-accurate): they are published links. Metrics: paper tab:candidates
|
| 313 |
# (median % / MAE fF / RMSE fF, all mutual entries); in_family_test = held-out test split of the 5 families.
|
| 314 |
pair-local-fast:
|
| 315 |
+
title: "Pair-local network + coarse prior (v3, R=0) - paper headline"
|
| 316 |
repo_id: SQuADDS/2026PaperModels-pair-local-fast
|
| 317 |
kind: gnn
|
| 318 |
prior: v3
|
|
|
|
| 320 |
status: available
|
| 321 |
fallback: pair-local
|
| 322 |
checkpoints: [data_local/mega/v3s/ALL_mom_r0_s0.pt, data_local/mega/v3s/ALL_mom_r0_s1.pt, data_local/mega/v3s/ALL_mom_r0_s2.pt]
|
| 323 |
+
summary: "This work's headline: zero-shot on never-seen components 1.23 % median. Five training families, coarse conductor-anchored prior (one gap/3 solve)."
|
| 324 |
paper:
|
| 325 |
appears_in: [abstract, tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, tab:wonky-shape-main, fig:newtopo-all]
|
| 326 |
never_seen: {median_pct: 1.23, mae_ff: 0.57, rmse_ff: 1.02}
|
|
|
|
| 329 |
deploy_heldout: {median_pct: 2.63, mae_ff: 0.616, rmse_ff: 1.193, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 330 |
|
| 331 |
message-passing-fast:
|
| 332 |
+
title: "Message-passing network + coarse prior (v3, R=3)"
|
| 333 |
repo_id: SQuADDS/2026PaperModels-message-passing-fast
|
| 334 |
kind: gnn
|
| 335 |
prior: v3
|
|
|
|
| 337 |
status: available
|
| 338 |
fallback: message-passing
|
| 339 |
checkpoints: [data_local/mega/v3s/ALL_mom_s0.pt, data_local/mega/v3s/ALL_mom_s1.pt, data_local/mega/v3s/ALL_mom_s2.pt]
|
| 340 |
+
summary: "Five training families, coarse prior, three message-passing rounds."
|
| 341 |
paper:
|
| 342 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, fig:newtopo-all]
|
| 343 |
never_seen: {median_pct: 1.67, mae_ff: 0.72, rmse_ff: 1.32}
|
|
|
|
| 346 |
deploy_heldout: {median_pct: 2.70, mae_ff: 0.638, rmse_ff: 1.259, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 347 |
|
| 348 |
pair-local-accurate:
|
| 349 |
+
title: "Pair-local network + fine prior (v3-rich, R=0)"
|
| 350 |
repo_id: SQuADDS/2026PaperModels-pair-local-accurate
|
| 351 |
kind: gnn
|
| 352 |
prior: v3-rich
|
|
|
|
| 354 |
status: available
|
| 355 |
fallback: pair-local-fine
|
| 356 |
checkpoints: [data_local/mega/v3/ALL_mom_r0_s0.pt, data_local/mega/v3/ALL_mom_r0_s1.pt, data_local/mega/v3/ALL_mom_r0_s2.pt]
|
| 357 |
+
summary: "Five training families, fine (Richardson-extrapolated, gap/3 + gap/6) prior."
|
| 358 |
paper:
|
| 359 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, tab:wonky-shape-main, fig:newtopo-all]
|
| 360 |
never_seen: {median_pct: 1.57, mae_ff: 0.92, rmse_ff: 1.57}
|
|
|
|
| 363 |
deploy_heldout: {median_pct: 1.91, mae_ff: 0.484, rmse_ff: 1.022, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 364 |
|
| 365 |
message-passing-accurate:
|
| 366 |
+
title: "Message-passing network + fine prior (v3-rich, R=3)"
|
| 367 |
repo_id: SQuADDS/2026PaperModels-message-passing-accurate
|
| 368 |
kind: gnn
|
| 369 |
prior: v3-rich
|
|
|
|
| 371 |
status: available
|
| 372 |
fallback: message-passing-fine
|
| 373 |
checkpoints: [data_local/mega/v3/ALL_mom_s0.pt, data_local/mega/v3/ALL_mom_s1.pt, data_local/mega/v3/ALL_mom_s2.pt]
|
| 374 |
+
summary: "Five training families, fine prior, three message-passing rounds. Best in family (0.18 % on the held-out test split)."
|
| 375 |
paper:
|
| 376 |
appears_in: [tab:candidates, tab:costacc, fig:costacc, tab:infamily-v3, fig:newtopo-all]
|
| 377 |
never_seen: {median_pct: 1.34, mae_ff: 0.60, rmse_ff: 1.07}
|
|
|
|
| 380 |
deploy_heldout: {median_pct: 2.11, mae_ff: 0.695, rmse_ff: 2.074, set: "212 deploy held-out designs (deploy/MODEL_SELECTION.md)"}
|
| 381 |
|
| 382 |
charge-corrected-prior-fast:
|
| 383 |
+
title: "Charge-corrected coarse prior (v3c cell GBM)"
|
| 384 |
repo_id: SQuADDS/2026PaperModels-charge-corrected-prior-fast
|
| 385 |
kind: charge_prior
|
| 386 |
prior: v3
|
| 387 |
status: available
|
| 388 |
checkpoints: [deploy/artifacts/charge_gbm_v3c.joblib]
|
| 389 |
+
summary: "Coarse (gap/3 v3) prior with its panel charges corrected by a gradient-boosted model of local geometry fit on the training families' surface charge; no capacitance labels."
|
| 390 |
paper:
|
| 391 |
appears_in: [tab:candidates]
|
| 392 |
never_seen: {median_pct: 2.67, mae_ff: 0.96, rmse_ff: 1.50}
|
|
|
|
| 394 |
in_family_test: {median_pct: 0.87, mae_ff: 0.24, rmse_ff: 0.76}
|
| 395 |
|
| 396 |
blend-pair-local-fast:
|
| 397 |
+
title: "Blended model: pair-local coarse-prior network x charge-corrected coarse prior"
|
| 398 |
repo_id: SQuADDS/2026PaperModels-blend-pair-local-fast
|
| 399 |
kind: blend
|
| 400 |
components: [pair-local-fast, charge-corrected-prior-fast]
|
|
|
|
| 408 |
deploy_heldout: {median_pct: 2.33, mae_ff: 0.547, rmse_ff: 1.097, ood60: "1.09 / 0.405 / 0.799", set: "212 deploy held-out designs, order-invariant weights"}
|
| 409 |
|
| 410 |
blend-pair-local-accurate:
|
| 411 |
+
title: "Blended model: pair-local fine-prior network x charge-corrected coarse prior"
|
| 412 |
repo_id: SQuADDS/2026PaperModels-blend-pair-local-accurate
|
| 413 |
kind: blend
|
| 414 |
components: [pair-local-accurate, charge-corrected-prior-fast]
|
|
|
|
| 422 |
deploy_heldout: {median_pct: 2.02, mae_ff: 0.485, rmse_ff: 1.048, ood60: "1.11 / 0.329 / 0.594", set: "212 deploy held-out designs, order-invariant weights"}
|
| 423 |
|
| 424 |
fast-prior:
|
| 425 |
+
title: "Coarse prior alone (v3, one gap/3 solve, training-free)"
|
| 426 |
repo_id: null
|
| 427 |
kind: prior
|
| 428 |
prior: v3
|
|
|
|
| 435 |
in_family_test: {median_pct: 4.38, mae_ff: 0.70, rmse_ff: 1.73}
|
| 436 |
|
| 437 |
accurate-prior:
|
| 438 |
+
title: "Fine prior alone (v3-rich, gap/3 + gap/6 Richardson, training-free)"
|
| 439 |
repo_id: null
|
| 440 |
kind: prior
|
| 441 |
prior: v3-rich
|
tlsq_infer/app_ui.py
CHANGED
|
@@ -5,7 +5,7 @@ API endpoints (gradio_client, api_name):
|
|
| 5 |
/prepare (gds, layers table, margin, ...) -> preview, warnings, summary, simplified GDS
|
| 6 |
/predict (gds, layers table, margin, ..., substrate) -> matrix table, CSV, JSON, report
|
| 7 |
/predict_gds (gds, ground "1/0", conductor "1/10", margin_gaps (0 auto, <0 no crop), substrate, eps, thickness_um, model,
|
| 8 |
-
self_from_rows); model = "
|
| 9 |
-> result dict (one call, for scripts; see examples/client.py)
|
| 10 |
"""
|
| 11 |
|
|
@@ -243,7 +243,7 @@ def _safe(fn, n_out):
|
|
| 243 |
except (LayoutError, ValueError, KeyError, FileNotFoundError) as e:
|
| 244 |
raise gr.Error(str(e)) from e
|
| 245 |
except MemoryError as e:
|
| 246 |
-
raise gr.Error("out of memory: crop the layout or use the
|
| 247 |
except Exception as e: # noqa: BLE001
|
| 248 |
raise gr.Error(f"internal error ({type(e).__name__}): {e}") from e
|
| 249 |
wrapped.__name__ = fn.__name__
|
|
@@ -278,12 +278,12 @@ def _model_md(reg, k):
|
|
| 278 |
|
| 279 |
|
| 280 |
def tier_choices(reg) -> list[tuple[str, str]]:
|
| 281 |
-
"""Flagship model choice: [("
|
| 282 |
-
latency and held-out accuracy from registry defaults.tiers; the
|
| 283 |
d = reg["defaults"]
|
| 284 |
info = d.get("tiers", {})
|
| 285 |
out = []
|
| 286 |
-
for tier, key in (("
|
| 287 |
name = d.get(key)
|
| 288 |
if not name:
|
| 289 |
continue
|
|
@@ -291,8 +291,8 @@ def tier_choices(reg) -> list[tuple[str, str]]:
|
|
| 291 |
lat = f", ~{t['latency_s']:.0f} s" if t.get("latency_s") is not None else ""
|
| 292 |
acc = (f" — held-out median {t['median_pct']:.2f} %, MAE {t['mae_ff']:.2f} fF, RMSE {t['rmse_ff']:.2f} fF"
|
| 293 |
if t.get("median_pct") is not None else "")
|
| 294 |
-
label = ("
|
| 295 |
-
out.append((label
|
| 296 |
return out
|
| 297 |
|
| 298 |
|
|
@@ -355,13 +355,13 @@ def build_app(title: str, model_choices: list[str], default_model: str, header_m
|
|
| 355 |
substrate = gr.Dropdown(subs, value=subs[0], label="substrate")
|
| 356 |
custom_eps = gr.Number(value=11.45, label="custom eps_r (when 'custom')")
|
| 357 |
thickness = gr.Number(value=350, label="substrate thickness (µm)")
|
| 358 |
-
if tiers: # flagship:
|
| 359 |
-
model = gr.Radio(tier_choices(reg), value="
|
| 360 |
elif not top_pick:
|
| 361 |
model = gr.Dropdown(model_choices, value=default_model, label="model")
|
| 362 |
self_rows = gr.Checkbox(False, label="self-capacitance from row sums")
|
| 363 |
if tiers:
|
| 364 |
-
tier_info = gr.Markdown(_tier_md(reg, "
|
| 365 |
model.change(lambda k: _tier_md(reg, k), model, tier_info, api_visibility="private")
|
| 366 |
pred_btn = gr.Button("Predict", variant="primary")
|
| 367 |
gr.Markdown("## 4. Maxwell capacitance matrix (fF)")
|
|
|
|
| 5 |
/prepare (gds, layers table, margin, ...) -> preview, warnings, summary, simplified GDS
|
| 6 |
/predict (gds, layers table, margin, ..., substrate) -> matrix table, CSV, JSON, report
|
| 7 |
/predict_gds (gds, ground "1/0", conductor "1/10", margin_gaps (0 auto, <0 no crop), substrate, eps, thickness_um, model,
|
| 8 |
+
self_from_rows); model = "coarse" (default; alias "fast") / "fine" (alias "accurate") or an explicit registry name
|
| 9 |
-> result dict (one call, for scripts; see examples/client.py)
|
| 10 |
"""
|
| 11 |
|
|
|
|
| 243 |
except (LayoutError, ValueError, KeyError, FileNotFoundError) as e:
|
| 244 |
raise gr.Error(str(e)) from e
|
| 245 |
except MemoryError as e:
|
| 246 |
+
raise gr.Error("out of memory: crop the layout or use the coarse prior") from e
|
| 247 |
except Exception as e: # noqa: BLE001
|
| 248 |
raise gr.Error(f"internal error ({type(e).__name__}): {e}") from e
|
| 249 |
wrapped.__name__ = fn.__name__
|
|
|
|
| 278 |
|
| 279 |
|
| 280 |
def tier_choices(reg) -> list[tuple[str, str]]:
|
| 281 |
+
"""Flagship model choice: [("Coarse prior (fastest, default, ~X s) ...", "coarse"), ("Fine prior (most accurate, ~Y s) ...", "fine")]
|
| 282 |
+
with the measured latency and held-out accuracy from registry defaults.tiers; the fine entry only when one is configured."""
|
| 283 |
d = reg["defaults"]
|
| 284 |
info = d.get("tiers", {})
|
| 285 |
out = []
|
| 286 |
+
for tier, key in (("coarse", "flagship_model"), ("fine", "flagship_accurate_model")):
|
| 287 |
name = d.get(key)
|
| 288 |
if not name:
|
| 289 |
continue
|
|
|
|
| 291 |
lat = f", ~{t['latency_s']:.0f} s" if t.get("latency_s") is not None else ""
|
| 292 |
acc = (f" — held-out median {t['median_pct']:.2f} %, MAE {t['mae_ff']:.2f} fF, RMSE {t['rmse_ff']:.2f} fF"
|
| 293 |
if t.get("median_pct") is not None else "")
|
| 294 |
+
label = ("Coarse prior (fastest, default" + lat + ")" if tier == "coarse" else "Fine prior (most accurate" + lat + ")") + acc
|
| 295 |
+
out.append((label, tier))
|
| 296 |
return out
|
| 297 |
|
| 298 |
|
|
|
|
| 355 |
substrate = gr.Dropdown(subs, value=subs[0], label="substrate")
|
| 356 |
custom_eps = gr.Number(value=11.45, label="custom eps_r (when 'custom')")
|
| 357 |
thickness = gr.Number(value=350, label="substrate thickness (µm)")
|
| 358 |
+
if tiers: # flagship: coarse (default) / fine prior choice instead of a model list
|
| 359 |
+
model = gr.Radio(tier_choices(reg), value="coarse", label="model")
|
| 360 |
elif not top_pick:
|
| 361 |
model = gr.Dropdown(model_choices, value=default_model, label="model")
|
| 362 |
self_rows = gr.Checkbox(False, label="self-capacitance from row sums")
|
| 363 |
if tiers:
|
| 364 |
+
tier_info = gr.Markdown(_tier_md(reg, "coarse"))
|
| 365 |
model.change(lambda k: _tier_md(reg, k), model, tier_info, api_visibility="private")
|
| 366 |
pred_btn = gr.Button("Predict", variant="primary")
|
| 367 |
gr.Markdown("## 4. Maxwell capacitance matrix (fF)")
|
tlsq_infer/predict.py
CHANGED
|
@@ -55,19 +55,29 @@ def _logC(C: np.ndarray) -> np.ndarray:
|
|
| 55 |
return out
|
| 56 |
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
def resolve_model(reg, model: str | None) -> str:
|
| 62 |
-
"""Model name from an explicit registry name or
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
return model
|
| 71 |
|
| 72 |
|
| 73 |
def run_pipeline(metals: list, names: list[str], model: str, reg=None, model_dir=None, timing=None,
|
|
@@ -146,8 +156,8 @@ def predict(prepared: PreparedLayout, model: str | None = None, substrate="Si (c
|
|
| 146 |
row_sum_eps: float | None = None, blend_kinds: str | None = None) -> dict:
|
| 147 |
"""Maxwell capacitance matrix (fF) of a prepared layout.
|
| 148 |
|
| 149 |
-
model: a deployable registry name, or
|
| 150 |
-
(defaults.flagship_accurate_model). substrate: a registry substrate name or eps_r.
|
| 151 |
The networks always see the training stack (Si 11.45, 350 µm); other permittivities are handled by the validated
|
| 152 |
half-space factor (1 + eps) / (1 + 11.45), and thickness / material residuals are reported in `expected_error`.
|
| 153 |
The ground self-capacitance is not predicted (it depends on the chip boundary, excluded from training): NaN.
|
|
|
|
| 55 |
return out
|
| 56 |
|
| 57 |
|
| 58 |
+
TIERS = ("coarse", "fine") # physics-prior tiers: coarse = one gap/3 solve (default), fine = gap/3 + gap/6 with Richardson extrapolation
|
| 59 |
+
TIER_ALIASES = {"fast": "coarse", "accurate": "fine"} # names used before 2026-10-09, kept for existing scripts
|
| 60 |
+
TIER_KEYS = {"coarse": "flagship_model", "fine": "flagship_accurate_model"}
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def tier_of(model: str | None) -> str | None:
|
| 64 |
+
"""Tier name ("coarse" / "fine") of a model argument, or None for an explicit registry name."""
|
| 65 |
+
if not model:
|
| 66 |
+
return "coarse"
|
| 67 |
+
key = str(model).lower()
|
| 68 |
+
key = TIER_ALIASES.get(key, key)
|
| 69 |
+
return key if key in TIERS else None
|
| 70 |
|
| 71 |
|
| 72 |
def resolve_model(reg, model: str | None) -> str:
|
| 73 |
+
"""Model name from an explicit registry name or a tier: "coarse" (default; alias "fast") / "fine" (alias "accurate")."""
|
| 74 |
+
tier = tier_of(model)
|
| 75 |
+
if tier is None:
|
| 76 |
+
return model
|
| 77 |
+
name = reg["defaults"].get(TIER_KEYS[tier])
|
| 78 |
+
if not name:
|
| 79 |
+
raise ValueError(f"no {tier}-tier model is configured (defaults.{TIER_KEYS[tier]}); use 'coarse'")
|
| 80 |
+
return name
|
|
|
|
| 81 |
|
| 82 |
|
| 83 |
def run_pipeline(metals: list, names: list[str], model: str, reg=None, model_dir=None, timing=None,
|
|
|
|
| 156 |
row_sum_eps: float | None = None, blend_kinds: str | None = None) -> dict:
|
| 157 |
"""Maxwell capacitance matrix (fF) of a prepared layout.
|
| 158 |
|
| 159 |
+
model: a deployable registry name, or a tier: "coarse" (default: defaults.flagship_model; alias "fast") / "fine"
|
| 160 |
+
(defaults.flagship_accurate_model; alias "accurate"). substrate: a registry substrate name or eps_r.
|
| 161 |
The networks always see the training stack (Si 11.45, 350 µm); other permittivities are handled by the validated
|
| 162 |
half-space factor (1 + eps) / (1 + 11.45), and thickness / material residuals are reported in `expected_error`.
|
| 163 |
The ground self-capacitance is not predicted (it depends on the chip boundary, excluded from training): NaN.
|