Skip to content

Commit

Permalink
put the right versions in deployed models
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux-cpp-lisp committed Jun 22, 2023
1 parent 32bad0c commit 2f43aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nequip/scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from nequip.model import model_from_config
from nequip.data import dataset_from_config
from nequip.utils import Config
from nequip.utils.versions import check_code_version, get_config_code_versions
from nequip.utils.versions import check_code_version, get_current_code_versions
from nequip.scripts.train import default_config
from nequip.utils.misc import dtype_to_name
from nequip.utils._global_options import _set_global_options
Expand Down Expand Up @@ -287,7 +287,7 @@ def main(args=None):

# Deploy
metadata: dict = {}
code_versions, code_commits = get_config_code_versions(config)
code_versions, code_commits = get_current_code_versions(config)
for code, version in code_versions.items():
metadata[code + "_version"] = version
if len(code_commits) > 0:
Expand Down

0 comments on commit 2f43aa8

Please sign in to comment.