-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
PHP 8 roadmap #140
Comments
Hi @niftyhack PHP 8 support was added in 0.2.3 ... the optional Tensor extension is optional and like you say may or may not work with PHP 8. I haven't tested it myself - it would be nice to hear from someone who has tried it. The extension that will replace the Tensor extension 2.0.0 that is written in Zephir will be PHP 8 compatible (it's written in C). I can only give you a general estimate as to when the new extension will be available for general use - between 3 and 12 months. The new extension has features like CPU multiprocessing and cache-efficient Matrix blocking algorithms. The current extension in Zephir is about 2.5X faster than the PHP-land code - we are hoping to see a 10X - 100X improvement with the new extension. The idea is to optimize our Tensor extension or provide an interface to the C Array extension through Tensor and then gradually add more features that will require the extension (not optional) such as LSTM and Convolutional neural networks (the Tensor API alone will not support these). https://github.com/RubixML/Tensor https://github.com/phpsci/phpsci-carray Great question! Let me know if you had any more and feel free to join us in our Telegram Channel |
Hi, awesome, thanks for the heads up. 👍 |
Just a quick update. The numbers we're seeing as of today are 35X speedup on a 500 x 500 x 2 matmul operation on an Intel CPU. |
FYI, we will test https://doc.tiki.org/Machine-Learning with PHP 8 and report any issue. We will easily be able to compare to PHP 7 because Virtualmin supports easy switching of PHP versions, and v8 was added a few months ago: |
Another update! ... We've removed the Zephir code from Tensor version 2.0.6+ and the extension now compiles directly from C source. Now that we are in C, we are beginning research into optimizations such as the ones aforementioned. This will help ensure that we have a path forward even if one of the projects fails. https://github.com/RubixML/Tensor/releases/tag/2.0.6 Tensor extension 3.0 research ticket |
Just an update on Tensor - we were able to get a 6X speedup on the MNIST example project in the latest update to the extension. This is up from 2.5X in the previous version. Most of the speed came from migrating Zephir code to C so that we can make additional optimizations. All the optimizations so far have spun out from the research here RubixML/Tensor#5. https://github.com/RubixML/Tensor/releases/tag/2.1.1 Copied from our Telegram channel ...
There also seems to be activity on the Zephir repo to make it PHP 8 compatible |
The entire Rubix suite is now PHP 8.0 compatible |
Hi,
parts of this project depend on https://github.com/RubixML/Tensor, which uses https://zephir-lang.com. Development of Zephir was put on hold and Zephir is not to be expected to be compatible with PHP 8, see https://blog.phalcon.io/post/the-future-of-phalcon.
What does the future of RubixML look like in terms of PHP 8?
The text was updated successfully, but these errors were encountered: