-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
[ifp_egm] Tidy up EGM, remove jitclass #144
Conversation
✅ Deploy Preview for incomparable-parfait-2417f8 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @jstac I read the log file of the error and here are
and it is related to the Python buffer protocal
I guess we still need to specify the datatype for numba jit. |
@jstac this is a new one. It looks like some part of the code is only suitable for running on |
Thanks @mmcky :-)
Wow, I hope not. The biggest selling point of JAX is it's hardware agnostic... |
@jstac my suspicion is an incompatibility with This is the cause previously. |
Thanks @mmcky, nice work. We need to make sure it runs on colab too, but we should be okay because usually colab's cuda driver is a few generations old. |
thanks @jstac good reminder re: colab. |
@jstac mystery deepens here. It is producing the same error on the previous environment using |
This reverts commit 0192e23.
@jstac this is confusing -- as the issue is with the numba code (on github actions) so probably unrelated to My local environment is running the code just fine. My next guess is the list of arrays that is unpacked by the numba function - but I don't follow why it happens on |
I'm using the latest Anaconda, freshly downloaded, with numba=0.59. |
So that's the same as the cloud. 😵💫 |
@jstac can you let me know what It looks like https://www.python.org/downloads/release/python-3120/ and the release notes add https://peps.python.org/pep-0688/ which is all about buffers so I will try and pin Not sure where it is coming from but |
Python 3.11.7 (main, Dec 15 2023, 18:12:31) [GCC 11.2.0] on linux |
It's a good idea to clarify. I usually use |
thanks @jstac I will update. The |
@jstac this is a gnarly one. It does appear to be an issue with this specific PR as the cache rebuilt last night (with this lecture using |
Sure @mmcky , a rest will probably help. |
@jstac short of some experimental rewrites I have no idea why this doesn't work on the cloud computer and works on all my local machines (and yours!). I am going to launch an instance and see if I can replicate there manually. |
@jstac just a quick update. I have now tried running directly on the |
I have extracted the actual traceback from
|
@jstac gave this my all this morning -- but I am going to move on and work on closing a few other issues (so I feel somewhat productive today :-)). Do you need this merged soon? Update:
|
Thanks @mmcky . Frustrating... Sure, it can wait a few days. |
thanks @jstac I have made the current main live in the meantime. |
@jstac honestly I don't fully understand why this works 180b02e but there is something about the more complex interface to the
https://65e8eb0f61066165def8d8b7--incomparable-parfait-2417f8.netlify.app/ifp_egm.html |
@jstac this commit f1bf2a6 is my recommended fix. The only change from your code is that it updates
which must help |
😌 -- that was a tricky one. preview: https://65e90ca608e78b7cd8ca54a1--incomparable-parfait-2417f8.netlify.app/ifp_egm.html |
Hats off to you @mmcky :-) Well done 🥇 |
Replaces #130 and fixes #128