Skip to content
Branch: master
Go to file

Latest commit

soumith committed 0219027 Jan 22, 2018


Failed to load latest commit information.

Build Status

NOTE: Torch is not actively developed anymore and is in maintenance mode.

Self-contained Torch installation

Please refer to the Torch installation guide for details on how to make a fresh install of Torch on Linux or MacOS.

If on windows with msvc, please refer to this guide for details on installation and usage.

Repo content


Globally installed dependencies can be installed via:

bash install-deps

Lua and Torch

The self-contained Lua and Torch installations are performed via:


By default Torch will install LuaJIT 2.1. If you want other options, you can use the command:

# If a different version was installed, used ./ to clean it


To update your already installed distro to the latest master branch of torch/distro simply run:



To remove all the temporary compilation files you can run:


To remove the installation run:

# Warning: this will remove your current installation
rm -rf ./install

You may also want to remove the torch-activate entry from your shell start-up script (~/.bashrc or ~/.profile).


You can test that all libraries are installed properly by running:


Tested on Ubuntu 14.04, CentOS/RHEL 6.3 and OSX

You can’t perform that action at this time.