Repository navigation
Releases
PxD-Bridge v2.2.0 (Native VASP CHGCAR Export, Optional PAW Aug & DFT-1616)
PxD-Bridge (EqV3 OMat-G–EdenGNN-Uni) v2.2.0 integrates native pure-Python VASP CHGCAR / CHGCAR.gz export and optional PAW augmentation occupancies prediction directly into pxd-predict, alongside a standalone pxd-npz2chgcar converter and the DFT-1616 real-DFT fine-tuned checkpoint (all 87/87 elements + proportional 2D/1D/vacuum structures).
What's new in v2.2.0
-
Direct VASP
CHGCAR/CHGCAR.gzexport (pxd_bridge.sad.write_chgcar,pxd-predict):- Pure-Python VASP5 writer matching VASP / EdenGNN Fortran column-major formatting (
(density * V).flatten(order='F'), 5 values/line, atomic temp-file writes) — nof2pycompilation and nopymatgendependency required. - Auto-detected from output filename (
CHGCAR,CHGCAR.gz,*.chgcar,*.chgcar.gz) or set explicitly with--format chgcar/--chgcar-out PATH(to save both.npzandCHGCARin one pass). - Ready out-of-the-box for VASP
ICHARG=1, VESTA, VASPKIT, pymatgen, ASE, Bader, and electrostatic Poisson solvers. - Optional
--normalize-nelectflag rescalespseudo_densityso its cell integral matches the exact SAD valence electron count$N_e$ .
- Pure-Python VASP5 writer matching VASP / EdenGNN Fortran column-major formatting (
-
Optional PAW
augmentation occupanciesfor VASPICHARG=11(--aug-ckpt):- Pass
--aug-ckpt EdenGNN-Uni_vasp_aug.ckptalongside--potcar POTCAR(and optional--aug-config/--lmix-max 6) to parse the exact PAW projector basis straight fromPOTCAR(parse_potcar_paw_basis), predict onsite PAW augmentation tensors using the bundlededen-aug.yamlconfiguration, and append VASPaugmentation occupanciesblocks (irreps_to_vasp_aug) directly toCHGCAR/CHGCAR.gz.
- Pass
-
Standalone
pxd-npz2chgcarCLI:- Convert any existing
pxd-predict.npzarchive to VASPCHGCARorCHGCAR.gzin one command (pxd-npz2chgcar prediction.npz CHGCAR).
- Convert any existing
Quick examples
# Direct VASP CHGCAR export with DFT-1616 (zero VASP calls)
pxd-predict POSCAR CHGCAR \
--eqv3 omat24_gradient.pt \
--weights pxd-bridge-eqv3-edengnn-dft1616.pt \
--potcar POTCAR --grid 48 48 48
# Full VASP ICHARG=11 CHGCAR.gz with PAW augmentation occupancies
pxd-predict POSCAR CHGCAR.gz \
--eqv3 omat24_gradient.pt \
--weights pxd-bridge-eqv3-edengnn-dft1616.pt \
--potcar POTCAR --grid 48 48 48 \
--aug-ckpt EdenGNN-Uni_vasp_aug.ckpt
# Convert existing .npz to VASP CHGCAR
pxd-npz2chgcar prediction.npz CHGCARVerified v2.2.0 tests (isolated wheel install)
- Si
12×12×12regression check:pxd-predictmatches all 8 archived reference probe values identically. - CHGCAR round-trip (
pxd-npz2chgcar+ASE VaspChargeDensity+read_chgcar): max absolute difference0.0across plainCHGCARandCHGCAR.gz. - Direct multi-species
CHGCAR.gz+--weights DFT-1616+--potcar+--normalize-nelect+--aug-ckpt: exact electron-count match against PAW SAD and exact per-atomaugmentation occupanciesblock lengths matchingPOTCARPAW projectors.
Optional real-DFT fine-tuned checkpoint: DFT-1616 (all 87 elements + proportional 2D/1D/vacuum)
| Blind benchmark | EdenGNN-Uni | v2.0.0 (teacher-only) | DFT-1616 (v2.1.1) |
DFT-1616 win rate |
|---|---|---|---|---|
Full bulk 1,000 (bulk1000, |
1.2309% |
1.2253% |
1.1077% |
912/1000 vs v2; 807/1000 vs Eden |
↳ W-containing subset (W35, |
0.8087% |
0.7994% |
0.7122% |
35/35 (100%) vs v2; 31/35 vs Eden |
strain100 unstrained |
1.1433% / 1.4017%
|
1.0483% / 1.2341%
|
0.8706% / 1.0175% |
84/100 vs v2; 89/100 vs Eden (strained) |
strain100 redistribution |
0.7390% |
0.5937% |
0.4928% |
93/100 vs v2; 91/100 vs Eden |
periodic578 |
0.6845% / 0.8352%
|
0.6755% / 0.7726%
|
0.5370% / 0.6019% |
543/578 vs v2; 522/578 vs Eden (perturbed) |
periodic578 redistribution |
0.4652% |
0.3829% |
0.3002% |
565/578 vs v2 (79/79 elements); 572/578 (99.0%) vs Eden |
Four MoS₂ nanotubes (n=4, vacuum-bearing OOD) |
1.0408% |
0.9849% |
0.9500% |
4/4 (100%) vs both v2 & Eden |
Release artifacts
| File | SHA-256 |
|---|---|
Python wheel (pxd_bridge-2.2.0-py3-none-any.whl) |
8a269fbac46c44d4a485dc5f5843bc886d12faf6f8650ea1ca840a7f9e5b319f |
Bundled teacher-only weights (pxd-bridge-eqv3-edengnn-v2.0.0.pt) |
10a4f286cd02ef1f52c4964a26a0730c2517784b258849b04a6637c71aeb7f45 |
Optional DFT-1616 fine-tuned weights (recommended, all 87 elements + 2D/1D/vacuum, pxd-bridge-eqv3-edengnn-dft1616.pt) |
9ca1b78fcc28ed005771e2a715d79635a62d596ccc630d4b17b21bff812ae5d2 |
PxD-Bridge v2.1.1 (Unbiased Fine-tuning, I/O Fixes & DFT-1616 Checkpoint)
PxD-Bridge (EqV3 OMat-G–EdenGNN-Uni) v2.1.1 fixes five fine-tuning and I/O issues identified in v2.1.0 and ships the DFT-1616 real-DFT fine-tuned checkpoint (trained with v2.1.1 on 1,616 real VASP CHGCAR structures covering all 87/87 EdenGNN training elements and matching the 2D/1D/vacuum proportions of the official 50,000-structure training set).
Optional real-DFT fine-tuned checkpoint: DFT-1616 (all 87 elements + proportional 2D/1D/vacuum)
Trained from v2.0.0 with pxd-finetune (v2.1.1, --scope joint, epochs=16, grad_accum=8, anchor_weight=0.01, neutrality_weight=0.1, weight_decay=0.0) on 1,616 real VASP CHGCARs (1,544 non-W base + 40 W bulk + 32 low-dimensional / vacuum structures: 15
| Blind benchmark | EdenGNN-Uni | v2.0.0 (teacher-only) | DFT-1616 (v2.1.1) |
DFT-1616 win rate |
|---|---|---|---|---|
Full bulk 1,000 (bulk1000, |
1.2309% |
1.2253% |
1.1077% |
912/1000 vs v2; 807/1000 vs Eden |
↳ W-containing subset (W35, |
0.8087% |
0.7994% |
0.7122% |
35/35 (100%) vs v2; 31/35 vs Eden |
strain100 unstrained |
1.1433% / 1.4017%
|
1.0483% / 1.2341%
|
0.8706% / 1.0175% |
84/100 vs v2; 89/100 vs Eden (strained) |
strain100 redistribution |
0.7390% |
0.5937% |
0.4928% |
93/100 vs v2; 91/100 vs Eden |
periodic578 |
0.6845% / 0.8352%
|
0.6755% / 0.7726%
|
0.5370% / 0.6019% |
543/578 vs v2; 522/578 vs Eden (perturbed) |
periodic578 redistribution |
0.4652% |
0.3829% |
0.3002% |
565/578 vs v2 (79/79 elements); 572/578 (99.0%) vs Eden |
↳ Strain (290) / Rattle (288) |
0.3938% / 0.5371%
|
0.3338% / 0.4323%
|
0.2599% / 0.3407% |
285/290 & 287/288 vs Eden |
Four MoS₂ nanotubes (n=4, vacuum-bearing OOD) |
1.0408% |
0.9849% |
0.9500% |
4/4 (100%) vs both v2 & Eden |
Use it directly with pxd-predict:
pxd-predict POSCAR prediction.npz \
--eqv3 omat24_gradient.pt \
--weights pxd-bridge-eqv3-edengnn-dft1616.pt \
--potcar POTCAR --grid 48 48 48Fixes & improvements in v2.1.1
-
Unbiased stratified voxel sampling (
pxd_bridge.finetune): replaces the unweighted mixture loss with explicit uniform probes plus clipped Horvitz–Thompson inverse-propensity weighted$|\Delta\rho|$ -importance probes, keeping the field loss an unbiased estimator of the full-grid integral$E_\rho$ (preserving 3–4 Å tails and vacuum). -
Control-variate charge-neutrality regularization (
--neutrality-weight 0.1): penalizes(pred_unif.mean() - target_unif.mean()).abs()on the unbiased uniform probe subset to suppress global/vacuum DC drift without Monte Carlo variance. -
Automatic mini-batch gradient accumulation (
--grad-accum 0→min(8, n_train)): replaces noisy single-structure optimizer updates with multi-structure gradient accumulation and adjusted cosine LR scheduling. -
True decoupled L2-SP anchor decay (
--anchor-weight 1e-2,--weight-decay 0.0): stops standardAdamWweight decay from shrinking pretrained weights and unseen-element embeddings toward zero, pulling trainable parameters gently toward the pretrained initialization$\theta_0$ instead. -
VASP
CHGCARnegative volume scale + Cartesian fix (pxd_bridge.sad): scales Cartesian atomic coordinates by((-scale) / vol_raw) ** (1/3)consistently with the lattice vectors whenscale < 0.
Release artifacts
| File | SHA-256 |
|---|---|
Python wheel (pxd_bridge-2.1.1-py3-none-any.whl) |
06c6871afcb5b11f64be7be7a7bafbbf82a038866d1b8e544b9e5e1327641bcd |
Bundled teacher-only weights (pxd-bridge-eqv3-edengnn-v2.0.0.pt) |
10a4f286cd02ef1f52c4964a26a0730c2517784b258849b04a6637c71aeb7f45 |
Optional DFT-1616 fine-tuned weights (recommended, all 87 elements + 2D/1D/vacuum, pxd-bridge-eqv3-edengnn-dft1616.pt) |
9ca1b78fcc28ed005771e2a715d79635a62d596ccc630d4b17b21bff812ae5d2 |
PxD-Bridge v2.1.0 (Fine-tuning & POTCAR SAD)
PxD-Bridge (EqV3 OMat-G–EdenGNN-Uni) v2.1.0 adds few-shot and domain fine-tuning (pxd-finetune), built-in VASP PAW SAD calculation from POTCAR, custom checkpoint inference (pxd-predict --weights), and the optional real-DFT fine-tuned DFT-1544 checkpoint alongside the bundled teacher-only v2.0.0 weights.
What's new in v2.1.0
-
pxd-finetuneCLI &pxd_bridge.finetuneAPI:- Keeps EqV3 OMat-G frozen and caches its dual-parity features once per structure before training (peak memory
< 3 GB, ~0.5–2 min on a single GPU). - Supports
--chgcar,--data-dir, and--manifest, with--scope bridge | joint | decoder, hybrid uniform +$|\Delta\rho|$ -importance voxel sampling, and L2-SP anchor regularization.
- Keeps EqV3 OMat-G frozen and caches its dual-parity features once per structure before training (peak memory
-
Automatic VASP PAW SAD (
pxd_bridge.sad): computes exact reciprocal-space PAW atomic superposition densities directly from single- or multi-species VASPPOTCARfiles (--potcar), alongside--sad-chgcar. -
Custom checkpoint & POTCAR inference:
pxd-predictandPredictoraccept--weights custom.ptand--potcar POTCAR. -
Optional
DFT-1544checkpoint (pxd-bridge-eqv3-edengnn-dft1544.pt): initialized from the bundled teacher-onlyv2.0.0weights and fine-tuned (--scope joint, 8 epochs, EqV3 OMat-G frozen) on 1,544 archived nonmagnetic PAW-PBE VASPCHGCARgrids spanning 86 elements (zero ID or geometry overlap with all blind test sets).
Optional DFT-1544 vs. teacher-only zero-calibration benchmarks
| Zero-calibration benchmark | Observable | EdenGNN-Uni | Teacher-only PxD-Bridge | DFT-1544 | DFT-1544 wins vs. teacher-only |
|---|---|---|---|---|---|
Full bulk1000 (1,000 crystals, zero exclusions) |
Total density |
1.2309% | 1.2253% | 1.1384% | 750 / 1,000 |
| — 965 non-W bulk crystals | Total density |
1.2463% | 1.2407% | 1.1524% | 725 / 965 |
| — 35 W-containing crystals (zero-shot unseen W) | Total density |
0.8087% | 0.7994% | 0.7511% |
25 / 35 (-0.0484 pp, CI [-0.091, -0.008]) |
strain100 (100 pairs) |
Unstrained / strained |
1.1433% / 1.4017% | 1.0483% / 1.2341% | 0.9172% / 1.0582% | 74 / 100 · 82 / 100 |
| Charge redistribution |
0.7390% | 0.5937% | 0.5006% | 93 / 100 | |
| Extended 578 pairs (79 elements) | Unperturbed total density |
0.6845% | 0.6755% | 0.5713% | 442 / 578 |
| Perturbed total density |
0.8352% | 0.7726% | 0.6340% | 499 / 578 | |
| Charge redistribution |
0.4652% | 0.3829% | 0.3049% |
560 / 578 (96.9%, all 79/79 elements) |
|
| — Lattice strain (290 pairs) | 0.3938% | 0.3338% | 0.2645% |
278 / 290 (95.9%) |
|
| — Atomic rattle (288 pairs) | 0.5371% | 0.4323% | 0.3456% |
282 / 288 (97.9%) |
|
| Four MoS₂ nanotubes | Total density |
1.0408% | 0.9849% | 1.1428% | 0 / 4 |
Even though DFT-1544 saw zero tungsten (W) atoms during fine-tuning, it generalizes zero-shot to all 35 W-containing crystals in blind1000 (0.7511% vs. 0.7994% teacher-only and 0.8087% EdenGNN-Uni). Across the complete, zero-exclusion bulk1000 benchmark, both teacher-only v2.0.0 (1.2253%) and DFT-1544 (1.1384%) statistically significantly outperform EdenGNN-Uni (1.2309%). On vacuum-embedded MoS₂ nanotubes, the bundled teacher-only checkpoint remains more accurate (0.9849% vs. 1.1428%). Both weights are provided so users can choose via --weights:
pxd-predict POSCAR prediction.npz \
--eqv3 omat24_gradient.pt \
--weights pxd-bridge-eqv3-edengnn-dft1544.pt \
--potcar POTCAR --grid 48 48 48Per-structure, per-pair, and per-element archives are in benchmarks/.
Release artifacts
| File | SHA-256 |
|---|---|
Python wheel (pxd_bridge-2.1.0-py3-none-any.whl) |
c41cc999eecfaac447872a99e536a129ca654a771fd4509b2a05304bcd58a3b1 |
Bundled teacher-only weights (pxd-bridge-eqv3-edengnn-v2.0.0.pt) |
10a4f286cd02ef1f52c4964a26a0730c2517784b258849b04a6637c71aeb7f45 |
Optional DFT-1544 fine-tuned weights (pxd-bridge-eqv3-edengnn-dft1544.pt) |
2c73c3da2a32fea35930024951992b561d24cc4f00c535f79d3526ed89b23489 |
PxD-Bridge v2.0.0 (EqV3 OMat-G–EdenGNN-Uni)
PxD-Bridge (EqV3 OMat-G–EdenGNN-Uni) v2.0.0 introduces a redesigned dual-parity DualParityBridge) trained solely on EdenGNN-Uni teacher density targets across the same 50,000 bulk crystals (no new DFT density labels).
Key improvements over v1.0.0
-
Dual-parity EqV3 representations (
$X^+$ and$X^-$ ): retains unnatural-parity features ($\ell = 1\dots 4$ ) from the two EqV3 passes at zero extra inference cost and routes them directly into1e,2o,3e, and4o, while keeping inverted periodic cells right-handed ($\det C > 0$ ). -
Normalized full-channel layer readout: per-degree RMS normalization of EqV3 blocks 2, 4, and 7 prior to full
$128 \to 128$ residual mixing. -
Short-range radial coverage & non-saturating neighbor updates: 8 Gaussians spanning 0.75–3.75 Å with a learned
$128 \to 6$ scalar projection, plus 8 Bessel RBFs and non-saturatingasinhscaling in the 4 Å residual branch. -
Multi-path Clebsch–Gordan couplings & cleanup: multi-path CG pairs across all 13 active irreps with decoupled direct/tensor-product gates, removal of dead parameters (
right[0,5,6]) and the mathematically zero64x0o/axialbranch, and zero-initialized element embeddings.
Zero-calibration benchmark summary (% of total valence electrons)
| Benchmark | v2.0.0 (pretrained) | v2.0.0 (random EqV3) | v1.0.0 | EdenGNN-Uni | v2.0.0 wins vs Eden | v2.0.0 wins vs v1.0.0 |
|---|---|---|---|---|---|---|
| Teacher validation |
5.6368% | 6.3078% | 7.1025% | — | — | — |
| Total density, 965 non-W bulk crystals | 1.2407% | 1.3341% | 1.2881% | 1.2463% | 439 / 965 | 782 / 965 |
| Total density, 100 unstrained structures | 1.0483% | 1.2788% | 1.1719% | 1.1433% | 70 / 100 | 80 / 100 |
| Total density, 100 strained structures | 1.2341% | 1.5540% | 1.3961% | 1.4017% | 80 / 100 | 81 / 100 |
| Strain-induced redistribution, 100 pairs ( |
0.5937% | 0.7773% | 0.6701% | 0.7390% | 85 / 100 | 81 / 100 |
| — Tension (50 pairs) | 0.5832% | 0.7748% | 0.6425% | 0.7259% | 41 / 50 | 40 / 50 |
| — Compression (50 pairs) | 0.6042% | 0.7799% | 0.6977% | 0.7521% | 44 / 50 | 41 / 50 |
| Total density, four MoS₂ nanotubes | 0.9849% | 1.0692% | 1.0148% | 1.0408% | 4 / 4 | 3 / 4 |
Extended full-periodic-table blind benchmark (578 pairs, 79 elements)
Evaluated on 578 held-out nonmagnetic VASP pairs (1–42 atoms/cell, 79 distinct elements, disjoint from strain100): 290 lattice-strain pairs (143 tension + 147 compression) and 288 random atomic-displacement (rattle) pairs. Full per-crystal CSV and bootstrap summaries are archived in benchmarks/periodic_table_578.csv, benchmarks/periodic_table_578_summary.json, benchmarks/random_eqv3_ablation_locked.json, and benchmarks/random_eqv3_ablation_578.json.
| Extended blind benchmark ( |
v2.0.0 | v2.0.0 (no-$X^-$) | v2.0.0 (random EqV3) | v1.0.0 | EdenGNN-Uni | v2.0.0 wins vs Eden | v2.0.0 wins vs random |
|---|---|---|---|---|---|---|---|
| All 578 — Unperturbed total density |
0.6755% | 0.6757% | 0.7583% | 0.7161% | 0.6845% | 287 / 578 (-0.0090 pp) |
514 / 578 (88.9%) |
| All 578 — Perturbed total density |
0.7726% | 0.7725% | 0.8931% | 0.8095% | 0.8352% | 432 / 578 (-0.0626 pp) |
532 / 578 (92.0%) |
| All 578 — Charge redistribution |
0.3829% | 0.3827% | 0.4681% | 0.3895% | 0.4652% |
542 / 578 (93.8%) |
548 / 578 (94.8%) |
| All 578 — Relative redistribution |
4.6957% | 4.6895% | 5.7563% | 4.8131% | 5.6462% |
542 / 578 (-0.9505 pp) |
548 / 578 (-1.0605 pp) |
| Strain (290) — Redistribution |
0.3338% | 0.3332% | 0.4086% | 0.3447% | 0.3938% |
263 / 290 (90.7%) |
268 / 290 (92.4%) |
| — Tension (143) |
0.3349% | 0.3340% | 0.4091% | 0.3398% | 0.3916% | 129 / 143 (90.2%) |
131 / 143 (91.6%) |
| — Compression (147) |
0.3328% | 0.3324% | 0.4082% | 0.3494% | 0.3960% |
134 / 147 (91.2%) |
137 / 147 (93.2%) |
| Atomic rattle (288) — Perturbed |
0.7717% | 0.7707% | 0.9000% | 0.8070% | 0.8590% |
246 / 288 (85.4%) |
271 / 288 (94.1%) |
| Atomic rattle (288) — Redistribution |
0.4323% | 0.4325% | 0.5279% | 0.4346% | 0.5371% |
279 / 288 (96.9%) |
280 / 288 (97.2%) |
Without OMat24 pretraining (seed=922806 frozen random EqV3, parameter SHA-256 09253cc4...1438e3), the identical v2.0.0 bridge and decoder underperform both EdenGNN-Uni and pretrained v1.0.0 across all blind benchmarks (bulk965 90.9% pretrained wins, strain100 redistribution 95.0%, MoS₂ nanotubes 4/4, extended 578-pair redistribution 94.8%).
The Python wheel includes the trained dual-parity bridge and student decoder. The same checkpoint is also attached separately. See the installation instructions and Si example for the upstream EqV3 OMat-G encoder and verified reference prediction (max abs diff
| File | SHA-256 |
|---|---|
Trained checkpoint (pxd-bridge-eqv3-edengnn-v2.0.0.pt) |
10a4f286cd02ef1f52c4964a26a0730c2517784b258849b04a6637c71aeb7f45 |
Python wheel (pxd_bridge-2.0.0-py3-none-any.whl) |
d3b24f8ada4d85611227e484cb08cfce441317651deb0457ec3467c076244064 |
PxD-Bridge v1.0.0 (EqV3 OMat-G–EdenGNN-Uni)
PxD-Bridge (EqV3 OMat-G–EdenGNN-Uni) predicts the valence pseudo-density of periodic, nonmagnetic materials. Version 1.0.0 reads EqV3 blocks 2, 4, and 7 through a 61-channel equivariant bridge with a 4 Å cutoff. EdenGNN-Uni supplied the density targets used in transfer training.
On the 100 crystal strain pairs used to choose this version for archiving, its mean charge-redistribution error was 0.6701% of the total valence electron count, compared with 0.7390% for EdenGNN-Uni. It gave the smaller error on 70 of 100 crystals. EdenGNN-Uni had the lower mean total-density error on the separate 965-crystal bulk benchmark.
The Python wheel includes the trained bridge, layer readout, and student decoder. The same checkpoint is also attached separately. See the installation instructions and Si example for the upstream EqV3 OMat-G encoder and a reference prediction.
| File | SHA-256 |
|---|---|
| Trained checkpoint (.pt) | b73c86f37118e56a3fcc6971804a4b0c7304d307b585c11f992f045f4fbdea7c |
| Python wheel (.whl) | 6fb9c6367042194f3e8557871c8c3e3f965115c85002c9ca4ad4c604ad418ae7 |