Skip to content

Releases

PxD-Bridge v2.2.0 (Native VASP CHGCAR Export, Optional PAW Aug & DFT-1616)

Choose a tag to compare

@klsk007 klsk007 released this 04 Dec 10:41

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

  1. Direct VASP CHGCAR / CHGCAR.gz export (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) — no f2py compilation and no pymatgen dependency required.
    • Auto-detected from output filename (CHGCAR, CHGCAR.gz, *.chgcar, *.chgcar.gz) or set explicitly with --format chgcar / --chgcar-out PATH (to save both .npz and CHGCAR in one pass).
    • Ready out-of-the-box for VASP ICHARG=1, VESTA, VASPKIT, pymatgen, ASE, Bader, and electrostatic Poisson solvers.
    • Optional --normalize-nelect flag rescales pseudo_density so its cell integral matches the exact SAD valence electron count $N_e$.
  2. Optional PAW augmentation occupancies for VASP ICHARG=11 (--aug-ckpt):
    • Pass --aug-ckpt EdenGNN-Uni_vasp_aug.ckpt alongside --potcar POTCAR (and optional --aug-config / --lmix-max 6) to parse the exact PAW projector basis straight from POTCAR (parse_potcar_paw_basis), predict onsite PAW augmentation tensors using the bundled eden-aug.yaml configuration, and append VASP augmentation occupancies blocks (irreps_to_vasp_aug) directly to CHGCAR / CHGCAR.gz.
  3. Standalone pxd-npz2chgcar CLI:
    • Convert any existing pxd-predict .npz archive to VASP CHGCAR or CHGCAR.gz in one command (pxd-npz2chgcar prediction.npz CHGCAR).

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 CHGCAR

Verified v2.2.0 tests (isolated wheel install)

  • Si 12×12×12 regression check: pxd-predict matches all 8 archived reference probe values identically.
  • CHGCAR round-trip (pxd-npz2chgcar + ASE VaspChargeDensity + read_chgcar): max absolute difference 0.0 across plain CHGCAR and CHGCAR.gz.
  • Direct multi-species CHGCAR.gz + --weights DFT-1616 + --potcar + --normalize-nelect + --aug-ckpt: exact electron-count match against PAW SAD and exact per-atom augmentation occupancies block lengths matching POTCAR PAW 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, $n=1{,}000$, zero exclusions) 1.2309% 1.2253% 1.1077% 912/1000 vs v2; 807/1000 vs Eden
  ↳ W-containing subset (W35, $n=35$) 0.8087% 0.7994% 0.7122% 35/35 (100%) vs v2; 31/35 vs Eden
strain100 unstrained $E_\rho(0)$ / strained $E_\rho(u)$ ($n=100$) 1.1433% / 1.4017% 1.0483% / 1.2341% 0.8706% / 1.0175% 84/100 vs v2; 89/100 vs Eden (strained)
strain100 redistribution $E_{\Delta,N_e}$ ($n=100$) 0.7390% 0.5937% 0.4928% 93/100 vs v2; 91/100 vs Eden
periodic578 $E_\rho(0)$ / $E_\rho(u)$ ($n=578$, 79 elements) 0.6845% / 0.8352% 0.6755% / 0.7726% 0.5370% / 0.6019% 543/578 vs v2; 522/578 vs Eden (perturbed)
periodic578 redistribution $E_{\Delta,N_e}$ ($n=578$, 79 elements) 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)

Choose a tag to compare

@klsk007 klsk007 released this 03 Dec 13:08

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 $\ge 10\text{ Å}$ vacuum 2D sheets, 7 layered 2D crystals, and 10 1D chains including 3 vacuum chains; 46 W structures total, strictly disjoint from all test/validation suites).

Blind benchmark EdenGNN-Uni v2.0.0 (teacher-only) DFT-1616 (v2.1.1) DFT-1616 win rate
Full bulk 1,000 (bulk1000, $n=1{,}000$, zero exclusions) 1.2309% 1.2253% 1.1077% 912/1000 vs v2; 807/1000 vs Eden
  ↳ W-containing subset (W35, $n=35$) 0.8087% 0.7994% 0.7122% 35/35 (100%) vs v2; 31/35 vs Eden
strain100 unstrained $E_\rho(0)$ / strained $E_\rho(u)$ ($n=100$) 1.1433% / 1.4017% 1.0483% / 1.2341% 0.8706% / 1.0175% 84/100 vs v2; 89/100 vs Eden (strained)
strain100 redistribution $E_{\Delta,N_e}$ ($n=100$) 0.7390% 0.5937% 0.4928% 93/100 vs v2; 91/100 vs Eden
periodic578 $E_\rho(0)$ / $E_\rho(u)$ ($n=578$, 79 elements) 0.6845% / 0.8352% 0.6755% / 0.7726% 0.5370% / 0.6019% 543/578 vs v2; 522/578 vs Eden (perturbed)
periodic578 redistribution $E_{\Delta,N_e}$ ($n=578$, 79 elements) 0.4652% 0.3829% 0.3002% 565/578 vs v2 (79/79 elements); 572/578 (99.0%) vs Eden
  ↳ Strain (290) / Rattle (288) $E_{\Delta,N_e}$ 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 48

Fixes & improvements in v2.1.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).
  2. 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.
  3. 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.
  4. True decoupled L2-SP anchor decay (--anchor-weight 1e-2, --weight-decay 0.0): stops standard AdamW weight decay from shrinking pretrained weights and unseen-element embeddings toward zero, pulling trainable parameters gently toward the pretrained initialization $\theta_0$ instead.
  5. VASP CHGCAR negative volume scale + Cartesian fix (pxd_bridge.sad): scales Cartesian atomic coordinates by ((-scale) / vol_raw) ** (1/3) consistently with the lattice vectors when scale < 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)

Choose a tag to compare

@klsk007 klsk007 released this 02 Dec 14:41

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-finetune CLI & pxd_bridge.finetune API:
    • 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.
  • Automatic VASP PAW SAD (pxd_bridge.sad): computes exact reciprocal-space PAW atomic superposition densities directly from single- or multi-species VASP POTCAR files (--potcar), alongside --sad-chgcar.
  • Custom checkpoint & POTCAR inference: pxd-predict and Predictor accept --weights custom.pt and --potcar POTCAR.
  • Optional DFT-1544 checkpoint (pxd-bridge-eqv3-edengnn-dft1544.pt): initialized from the bundled teacher-only v2.0.0 weights and fine-tuned (--scope joint, 8 epochs, EqV3 OMat-G frozen) on 1,544 archived nonmagnetic PAW-PBE VASP CHGCAR grids 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 $E_\rho$ 1.2309% 1.2253% 1.1384% 750 / 1,000
— 965 non-W bulk crystals Total density $E_\rho$ 1.2463% 1.2407% 1.1524% 725 / 965
— 35 W-containing crystals (zero-shot unseen W) Total density $E_\rho$ 0.8087% 0.7994% 0.7511% 25 / 35 (-0.0484 pp, CI [-0.091, -0.008])
strain100 (100 pairs) Unstrained / strained $E_\rho$ 1.1433% / 1.4017% 1.0483% / 1.2341% 0.9172% / 1.0582% 74 / 100 · 82 / 100
Charge redistribution $E_{\Delta,N_e}$ 0.7390% 0.5937% 0.5006% 93 / 100
Extended 578 pairs (79 elements) Unperturbed total density $E_\rho(0)$ 0.6845% 0.6755% 0.5713% 442 / 578
Perturbed total density $E_\rho(u)$ 0.8352% 0.7726% 0.6340% 499 / 578
Charge redistribution $E_{\Delta,N_e}$ 0.4652% 0.3829% 0.3049% 560 / 578 (96.9%, all 79/79 elements)
— Lattice strain (290 pairs) $E_{\Delta,N_e}$ 0.3938% 0.3338% 0.2645% 278 / 290 (95.9%)
— Atomic rattle (288 pairs) $E_{\Delta,N_e}$ 0.5371% 0.4323% 0.3456% 282 / 288 (97.9%)
Four MoS₂ nanotubes Total density $E_\rho$ 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 48

Per-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)

Choose a tag to compare

@klsk007 klsk007 released this 01 Dec 22:54

PxD-Bridge (EqV3 OMat-G–EdenGNN-Uni) v2.0.0 introduces a redesigned dual-parity $O(3)$-equivariant bridge (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 into 1e, 2o, 3e, and 4o, while keeping inverted periodic cells right-handed ($\det C &gt; 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-saturating asinh scaling 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 zero 64x0o / axial branch, 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 $R_{\mathrm{val}}$ (1,000 crystals) 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 ($E_{\Delta,N_e}$) 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 ($n$, 79 elements) 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 $E_\rho(0)$ 0.6755% 0.6757% 0.7583% 0.7161% 0.6845% 287 / 578 (-0.0090 pp) 514 / 578 (88.9%)
All 578 — Perturbed total density $E_\rho(u)$ 0.7726% 0.7725% 0.8931% 0.8095% 0.8352% 432 / 578 (-0.0626 pp) 532 / 578 (92.0%)
All 578 — Charge redistribution $E_{\Delta,N_e}$ 0.3829% 0.3827% 0.4681% 0.3895% 0.4652% 542 / 578 (93.8%) 548 / 578 (94.8%)
All 578 — Relative redistribution $E_{\Delta,\mathrm{rel}}$ 4.6957% 4.6895% 5.7563% 4.8131% 5.6462% 542 / 578 (-0.9505 pp) 548 / 578 (-1.0605 pp)
Strain (290) — Redistribution $E_{\Delta,N_e}$ 0.3338% 0.3332% 0.4086% 0.3447% 0.3938% 263 / 290 (90.7%) 268 / 290 (92.4%)
— Tension (143) $E_{\Delta,N_e}$ 0.3349% 0.3340% 0.4091% 0.3398% 0.3916% 129 / 143 (90.2%) 131 / 143 (91.6%)
— Compression (147) $E_{\Delta,N_e}$ 0.3328% 0.3324% 0.4082% 0.3494% 0.3960% 134 / 147 (91.2%) 137 / 147 (93.2%)
Atomic rattle (288) — Perturbed $E_\rho(u)$ 0.7717% 0.7707% 0.9000% 0.8070% 0.8590% 246 / 288 (85.4%) 271 / 288 (94.1%)
Atomic rattle (288) — Redistribution $E_{\Delta,N_e}$ 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 $5.2 \times 10^{-8}$ e/ų on the 12×12×12 Si grid).

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)

Choose a tag to compare

@klsk007 klsk007 released this 30 Nov 14:21

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