-
Notifications
You must be signed in to change notification settings - Fork 15
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
Parallel multi start #67
Comments
I have implemented sth like the code below. But it doesn't seem to work:
|
Yup, it should be possible to vmap over the initial condition. Unfortunately your example isn't runnable (I don't know what |
Hello, thanks for the response. It is scipy.stats.qmc :)
In the commented out part i added the case with the for loop which takes 12 seconds on my mac. The vmap never finishes |
This is quite a large MWE! I'd love to help, but it'd be great if you can condense this down to the most minimal thing that demonstrates your issue first. (Are |
Hello, i think i boiled it down to a smaller MWE, for me it makes a difference if i use diffrax or not:
|
Try using If you're combining Optimistix and Diffrax together in this way, by the way, then you might also like to take a look at #51 and #61. If you bump into any other weird edge cases then know that we're hoping to improve compatibility between them :) |
Thanks for you answer, the thing is if i set the adjoint it runs through put produces only one values, namely inf, instead of the whole list i would expect.... Do you know why this is the case? Increasing max_steps only leads to a longer time until the error pops up |
Do you have a MWE? I don't observe that with the code you have above. For what it's worth, whilst looking at this I did encounter an entirely unrelated error -- which perhaps is affecting you! -- and is fixed in patrick-kidger/equinox#777 . I'd recommend using the version of Equinox from that branch and seeing if it helps? |
I think i have fixed it now. But not sure what lead to a fix of this behaviour... Although i still observe that vmap is relatively slow on it's own. Would you know how to integrate maybe sharding here to leverage the use of multi CPU /GPU on the example above? |
On sharding -- indeed something like On box constraints -- we're starting to think about implementing those over in #64, but it's still early days yet. |
Hello,
first of all i wanted to say that this is a really nice library. Then i wanted to ask if it is possible to do with filter_vmap something like a parallel multi start optimization. Meaning that if i want to run the minimization from different starting parameter guesses, can this be parallelized?
The text was updated successfully, but these errors were encountered: