Code Monkey home page Code Monkey logo

Comments (5)

leeping avatar leeping commented on August 20, 2024

Hi Joe,

It's good to hear from you Joe! :) I hope everything is well in the Markland lab. Things are getting underway at UC Davis, and being a faculty member means lots of different responsibilities to allocate time into. I'm still actively developing ForceBalance but it's a challenge to save time for doing research.

I think what is happening is this:

indicate.log is a file that contains summary information on the current iteration. For example, when matching energies and forces, indicate.log will contain the percentage errors in the energy and force. I think the basin-hopping algorithm is somehow evaluating the target twice in the same "iter" folder, which is not the intended design of the code - different evaluations of the force field should live in different folders. Thus, it throws the error.

I think that something in the code should be changed to update the iteration number when basin hopping is used. Alternatively, if the optimization is structured differently (i.e. it is not a linear sequence of iterations) then perhaps ForceBalance should support different directory trees in optimize.tmp. For now, I think some small hack to increment ITERATION_NUMBER, perhaps in optimizer.py, should fix the problem. Let me know if this makes sense.

Thanks,

  • Lee-Ping

from forcebalance.

JNapoli avatar JNapoli commented on August 20, 2024

Hi @leeping ,

I'm glad to hear things are off to a good start at Davis! :)

Thanks for the input. I think that makes sense. I can say more specifically now that I think the problem has to do with the basinhopping method's evaluating the objective function multiple times throughout its own 'microiterations'. As a result, the callback within the function wrapping the objective function (https://github.com/leeping/forcebalance/blob/master/src/optimizer.py#L938) was triggering the error. For now it seems like providing callback=False to the wrapper is taking care of the issue.

On a separate note, the Xstream cluster is up and running now at Stanford, which I'd like to be able to use for my PIMD water model optimizations. They are not supporting ssh from the compute nodes to the front end, so I haven't been able to get workers to connect to a master process on the front end. I seem to be able to ssh from a compute node to another cluster (e.g. the Markland cluster), though. Have you dealt with something similar on other HPC resources? It'd be disappointing not to be able to use WorkQueue on this cluster.

Thank you!

Joe

from forcebalance.

rmcgibbo avatar rmcgibbo commented on August 20, 2024

They are not supporting ssh from the compute nodes to the front end.

This works for me. You have to add your public key to .ssh/authorized_keys.

from forcebalance.

JNapoli avatar JNapoli commented on August 20, 2024

Thanks @rmcgibbo , that's working for me too.

from forcebalance.

leeping avatar leeping commented on August 20, 2024

Sounds good, Joe. Go forth and use those resources. :)

from forcebalance.

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.