Closed PicoCentauri closed 3 weeks ago
Uhhhh of course it breaks the regression tests
In this case, I don't see how we can make this work because I don't know if we can control the order in which the tests are executed or which test files are handled by the same worker (this will also vary depending on how many threads there are).
I would suggest executing the architecture tests serially (they're very light anyway)
Using pytest-xdist and parallization of the data generation to speed up tests (a little). They are still very slow which basically originates from the training several BPNNs in the tests. We should tackle this soon because running the whole test suite is really annoying. Most of the time currently goes into these tests:
I found the following timings on my machine with an Apple M2
single thread
first run: 6m32.412s second run: 4m11.565s
threaded 8threads
first run: 3m38.036s second run: 2m15.751s
which is a speedup by a factor of 2.
Contributor (creator of pull-request) checklist
📚 Documentation preview 📚: https://metatrain--252.org.readthedocs.build/en/252/