Skip to content

lvl_f_lo and Outputs-model_devi show nan during dpgen2 run #276

@Andy6M

Description

@Andy6M

Issue Description

Dear developer, I encountered an issue while running dpgen2, where the output of dpgen2 status shows lvl_f_lo as nan. Additionally, the Outputs-model_devi file contains nan values for all relevant fields. Below are the details:


1. dpgen2 status Output

100%|█████████████████████████████████████████████| 1/1 [00:00<00:00, 13.33it/s]
#   stage  id_stg.    iter.      accu.      cand.      fail.   lvl_f_lo lvl_f_hi
# Stage    0  --------------------
        0        0        0     0.7646     0.1323     0.1032     0.2118   0.5000
        0        1        1     0.8519     0.1481     0.0000        nan   0.5000
        0        2        2     0.8519     0.1481     0.0000        nan   0.5000

2. Checking Output Files

  • Outputs-traj:
    The file /iter-000001--run-lmp-group/Outputs-traj contains valid data. Sample content:
ITEM: TIMESTEP
0
ITEM: NUMBER OF ATOMS
184
ITEM: BOX BOUNDS xy xz yz pp pp pp
...
  • Outputs-log:
    The log file also shows normal output:
LAMMPS (29 Aug 2024)
OMP_NUM_THREADS environment is not set. Defaulting to 1 thread. (src/comm.cpp:98)
  using 1 OpenMP thread(s) per MPI task
...

3. Outputs-model_devi Contains nan

However, in the file /iter-000001--run-lmp-group/Outputs-model_devi, the avg_devi_f, max_devi_f, and min_devi_f fields all contain nan:

#       step         max_devi_v         min_devi_v         avg_devi_v         max_devi_f         min_devi_f         avg_devi_f
           0       0.000000e+00      1.797693e+308               -nan               -nan               -nan               -nan
          50       0.000000e+00      1.797693e+308               -nan               -nan               -nan               -nan
         100       0.000000e+00      1.797693e+308               -nan               -nan               -nan               -nan
...

Expected Behavior

The lvl_f_lo value and the fields in Outputs-model_devi should not contain nan.


Steps to Reproduce

  1. Run the dpgen2 workflow with the provided input files.
  2. Observe the dpgen2 status output and check the corresponding output files (Outputs-traj, Outputs-log, Outputs-model_devi).

Environment

  • dpgen2 version: 0.0.8.dev138+g2877e2f
  • DeepMD-kit version: 3.0.0b4
  • Operating website: Bohrium
  • Hardware: Bohrium V100*1

Thank you!


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions