Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to create model for LAMMPS usage #150

Open
frostedoyster opened this issue Dec 21, 2024 · 3 comments
Open

Failing to create model for LAMMPS usage #150

frostedoyster opened this issue Dec 21, 2024 · 3 comments

Comments

@frostedoyster
Copy link

First of all, thanks for all the work that went into the models and the library! I find this to be one of the best models out there.
With the latest version (installed with pip install sevenn), I get this error when trying to export a model for LAMMPS inference:

$ sevenn_get_model 7net-0
Traceback (most recent call last):
  File ".../bin/sevenn_get_model", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File ".../site-packages/sevenn/main/sevenn_get_model.py", line 59, in main
    run(args)
  File ".../site-packages/sevenn/main/sevenn_get_model.py", line 42, in run
    deploy(stct_dct, config, output_prefix)
  File ".../site-packages/sevenn/scripts/deploy.py", line 27, in deploy
    model.prepand_module('edge_preprocess', EdgePreprocess(True))
  File ".../site-packages/sevenn/nn/sequential.py", line 83, in prepand_module
    self._modules.move_to_end(key, last=False)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'move_to_end'

Let me know how if I can help fix the issue

@YutackPark
Copy link
Member

YutackPark commented Dec 21, 2024 via email

@frostedoyster
Copy link
Author

Thank you! Indeed it works now with torch<2.5.0

@thangckt
Copy link
Contributor

hi @YutackPark
seemly that many people get this
can you consider put 'torch<2.5.0' in .toml file?

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

No branches or pull requests

3 participants