Code Monkey home page Code Monkey logo

Comments (5)

ondrejkrejci avatar ondrejkrejci commented on July 30, 2024 1

Hey, yes we have used exactly that linked config file, without any changes. We were also confused by that error as the lr_initial is part of the optim subtree. Actually loads of parts of the config file was not read properly according to our logs. It is a really strange that everything is working for you, while not for us. And it is also very strange, that everything is working for the GemNet-OC OCP20+22 model, but not for the OCP20 model.
We were not using OCP22 through main.py but rather through OCPCalculator:

from ocpmodels.common.relaxation.ase_utils import OCPCalculator

checkpoint_path = "/path/to/configs/oc22/s2ef/gemnet-oc/gemnet_oc.yml"
config_yml_path = "/path/to/gnoc_oc22_all_s2ef.ptl"

calc = OCPCalculator(config_yml=config_yml_path,
                       checkpoint=checkpoint_path,
                       cpu= False)

Please could you try that as well? Thank you!

from ocp.

abhshkdz avatar abhshkdz commented on July 30, 2024 1

Thanks! I was able to repro this from the OCPCalculator interface. Working on a fix

from ocp.

abhshkdz avatar abhshkdz commented on July 30, 2024

Hey, does the optim subtree in your config yaml have lr_initial? The config that you linked to does have it, but I'm not seeing it in the logs you pasted:

...
optim:
  energy_coefficient: 1
  force_coefficient: 1
  loss_energy: mae
  loss_force: atomwisel2
...

I also re-downloaded the GemNet-OC OC22 checkpoint at my end and ran the following to try and repro the error, but it seems to work fine:

python main.py --mode validate --config configs/oc22/s2ef/gemnet-oc/gemnet_oc.yml --checkpoint /path/to/gnoc_oc22_all_s2ef.pt --debug

from ocp.

abhshkdz avatar abhshkdz commented on July 30, 2024

@ondrejkrejci we just merged a fix for this in #585, could you pull the latest changes from the main branch and give it another shot please?

from ocp.

ondrejkrejci avatar ondrejkrejci commented on July 30, 2024

Thank you @abhshkdz ! We pull and reinstall and it is working for us!

from ocp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.