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

🚀[FEA]: Add the option to use external optimizers #802

Open
jarnaud2 opened this issue Mar 3, 2025 · 1 comment
Open

🚀[FEA]: Add the option to use external optimizers #802

jarnaud2 opened this issue Mar 3, 2025 · 1 comment
Labels
? - Needs Triage Need team to review and classify enhancement New feature or request

Comments

@jarnaud2
Copy link

jarnaud2 commented Mar 3, 2025

Is this a new feature, an improvement, or a change to existing functionality?

Improvement

How would you describe the priority of this feature request

Critical (currently preventing usage)

Please provide a clear description of problem you would like to solve.

I would like to request the addition of some functionality in Modulus to utilize external optimizers. Existing libraries can do this already, where an interface module is created to call external optimizer routines in other Python libraries, such as Scipy.

A specific example done in the Tensorflow library can be found at https://github.com/tensorflow/tensorflow/blob/v1.15.2/tensorflow/contrib/opt/python/training/external_optimizer.py. Here, the Tensorflow script calls the Scipy optimizer to minimize a particular function. The task would thus be to replicate this functionality with the PyTorch library, since it is what Modulus uses.

The motivation is for utilizing the L-BFGS-B optimizer in Scipy, which for some specific research problems, performs better than the PyTorch implementation.

Describe any alternatives you have considered

No response

@jarnaud2 jarnaud2 added ? - Needs Triage Need team to review and classify enhancement New feature or request labels Mar 3, 2025
@nuitlejour
Copy link

good suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? - Needs Triage Need team to review and classify enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants