Skip to content

update DPA4 support, add melting point calculation - #124

Open
Zikkying wants to merge 32 commits into
deepmodeling:devel-1.3.0from
Zikkying:devel-1.3.0
Open

update DPA4 support, add melting point calculation#124
Zikkying wants to merge 32 commits into
deepmodeling:devel-1.3.0from
Zikkying:devel-1.3.0

Conversation

@Zikkying

Copy link
Copy Markdown
Contributor

Summary

  • add the bundled alloytongqi DPA4 checkpoint, immutable runtime profile contract, image wrappers, and qualification benchmark tooling
  • keep the unpublished T4 runtime fail-closed while preserving the validated general DPA4 phonoLAMMPS L20 and CPU image routing
  • add melting-point configuration support, multi-structure type-map validation, retry handling, and Phonopy v4 compatibility
  • document the changes in CHANGELOG-1.3.0.md

Validation

  • SKIP_UT_WITH_DFLOW=0 DFLOW_DEBUG=1 coverage run -m unittest -v -f
  • 75% total coverage via coverage report
  • targeted skill, submission, phonon, and LAMMPS utility tests

Zikkying and others added 30 commits July 21, 2026 01:01
…olerance.

Skip preview post_process so add_fix configs no longer require in.lammps, warn on atom overlaps, and keep multi-task property posts alive when individual LAMMPS points fail.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
is_failed_task_result wrongly treated fixture result_task.json (LabeledSystem)
as failed because it is not a plain dict, breaking test_gamma.test_compute_lower.
Also harden refine path assert, ticket expireIn test, and add local pre-commit smoke.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fix: Update Bohrium ticket expireIn and adaptive DFT k-spacing
…tion(hours)

- Change parameter name from 'expireIn' to 'expiration' (correct API field)
- Change unit from seconds to hours (correct API unit)
- Update default from 604800 to 168 (7 days in hours)
- Update SKILL.md documentation accordingly
Co-authored-by: Cursor <cursoragent@cursor.com>
fix(skill): correct ticket API param from expireIn(seconds) to expira…
## OpenAPI Sandbox Integration (config.py, account.py)
- Add context_type="OpenAPI" branch for Bohrium OpenAPI Sandbox
- TiefblueClient uses access_key directly (no email/password needed)
- Support dflow_host: lbg-workflow-dflow.dp.tech, namespace="dflow"
- Add dispatcher_image, image_address, machine_type fields
- Separate validate_project_id_types() logic for OpenAPI vs legacy

## Bug Fix: Interstitial insert_ele (Interstitial.py)
- Normalize insert_ele from string to list at lines 38-43
- Prevents "Cu" being iterated as ["C","u"] -> ValueError

## generate_config.py Enhancements
- Add build_global_json_sandbox() for OpenAPI Sandbox mode
- LAMMPS run_command defaults to "lmp -in in.lammps" (not mpirun)
- GPU machine_type auto-selection for deepmd/mace/nep potentials
- Backend-conditional image_address (LAMMPS/ABACUS/VASP)
- ABACUS INPUT template: relax_nmax=50, cal_stress=1, cal_force=1
- Adaptive kspacing based on system size
- insert_ele list normalization in post-processing

Tested: Cu FCC 1-atom cell, ABACUS all-properties, LAMMPS+DPA-3.2 GPU all-properties
feat: add OpenAPI Sandbox support and fix critical bugs
integrate validated DPA4 phonolammps runtime
feat: default GPU workflows to NVIDIA L20
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.70143% with 1271 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.97%. Comparing base (966ccca) to head (014b49f).
⚠️ Report is 1 commits behind head on devel-1.3.0.

Files with missing lines Patch % Lines
...-flow/benchmarks/dpa4-alloytongqi/benchmark_lib.py 15.51% 256 Missing ⚠️
...nchmarks/dpa4-alloytongqi/run_phonolammps_smoke.py 25.50% 184 Missing ⚠️
apex/skills/apex-flow/scripts/generate_config.py 65.83% 164 Missing ⚠️
apex/skills/apex-flow/scripts/validate_inputs.py 81.59% 118 Missing ⚠️
apex/core/property/MeltingPoint.py 78.00% 99 Missing ⚠️
apex/op/RunVASP.py 87.50% 40 Missing ⚠️
tests/test_annealing.py 67.64% 33 Missing ⚠️
apex/core/property/FiniteTlatt.py 73.39% 29 Missing ⚠️
apex/submit.py 90.54% 28 Missing ⚠️
apex/core/lib/parent_lattice_mapping.py 87.23% 24 Missing ⚠️
... and 34 more
Additional details and impacted files
@@               Coverage Diff               @@
##           devel-1.3.0     #124      +/-   ##
===============================================
+ Coverage        73.29%   75.97%   +2.67%     
===============================================
  Files              111      126      +15     
  Lines            23496    30437    +6941     
===============================================
+ Hits             17221    23124    +5903     
- Misses            6275     7313    +1038     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Zikkying Zikkying changed the title feat: add fail-closed DPA4 PT2 runtime support update DPA4 support, add melting point calculation Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants