Skip to content

DEEPMD WARNING about freezing model when checkpoint is not old #3334

Description

@asedova

Bug summary

Using the exact same build (pip install) of deepmd (v 2.2.9) that is using Tensorflow 2.15 and cuda 12, I train and then freeze a model without changing my environment at all.

I get the following DEEPMD WARNING that doesn't make sense to me:
DEEPMD WARNING The following nodes are not in the graph: {'train_attr/min_nbor_dist', 'fitting_attr/aparam_nall', 'spin_attr/ntypes_spin'}. Skip freezeing these nodes. You may be freezing a checkpoint generated by an old version.

The checkpoint was definitely not created by an older version but apparently something is failing the test here:

different_set = set(output_node) - set(input_node)

DeePMD-kit Version

2.2.9

TensorFlow Version

2.15

How did you download the software?

pip

Input Files, Running Commands, Error Log, etc.

it's just dp train input.json --skip-neighbor-stat immediately followed by dp freeze -o graph.pb

System: NVIDIA A100 GPU, x86 AMD EPYC 7513 CPU, OS: Ubuntu 22.04

Steps to Reproduce

run any training then run freeze to freeze the model

Further Information, Files, and Links

none

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for Enhancement.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions