lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


PyTorch is basically a direct Torch reimplementation in Python with some architectural improvements.
I am not aware of any benchmarks but I would give a slight edge to PyTorch since it receives max devs attention today.
I don't think that any speed difference if it exists will make a huge difference provided you have a good GPU which you should anyway.
What would make a difference is the ability to move you neural network into production and it is much more difficult to do with Torch/Lua unfortunately.
PyTorch is not production friendly either but at least there are converters in development.

I really hoped that Torch would invite academia into Lua world and the whole Lua ecosystem receives a huge benefit from new users coming (I learnt Lua because of Torch).
But luajit and 5.3 disconnection put an end to these hopes and persuaded the whole dev team to migrate to Python asap.
I will continue using Torch because of Lua but afraid that eventually I will join the flock soon.

On Thu, Feb 1, 2018 at 8:25 AM, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
On 1 February 2018 at 06:59, p. shkadzko <p.shkadzko@gmail.com> wrote:
> I would not recommend building it for 5.3 since there might be build and speed issues. I highly doubt you'll need 5.3 functionality anyway. For playing around its ok. Good to know that Ravi can be used for Torch, yet it won't be faster for sure.
>

I assume you are using Torch with LuaJIT? The Torch project is now
marked 'in maintenance' as they have moved to PyTorch I believe - have
you any experience with PyTorch? How does it compare in terms of
performance?

Regards
Dibyendu