Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Last active June 12, 2017 12:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save loretoparisi/d8a1afa119ed98ae780922599f4ce9f2 to your computer and use it in GitHub Desktop.
Save loretoparisi/d8a1afa119ed98ae780922599f4ce9f2 to your computer and use it in GitHub Desktop.
FairSeq Torch Installation macOS
#torchnet
git clone https://github.com/torchnet/torchnet.git && cd torchnet
~/torch/install/bin/luarocks install rocks/torchnet-scm-1.rockspec
#torch-rnn
git clone https://github.com/facebookresearch/torch-rnnlib.git && cd torch-rnnlib/
~/torch/install/bin/luarocks make rocks/rnnlib-0.1-1.rockspec .
#argcheck
~/torch/install/bin/luarocks build https://raw.github.com/torch/argcheck/master/rocks/argcheck-scm-1.rockspec/Users/loretoparisi/torch/install/bin/luarocks build https://raw.github.com/torch/nn/master/rocks/nn-scm-1.rockspec
#moses
~/torch/install/bin/luarocks build https://raw.github.com/torch/moses/master/rockspec/moses-1.6.1-1.rockspec
~/torch/install/bin/luarocks build https://raw.github.com/Yonaba/Moses/master/rockspec/moses-1.6.1-1.rockspec
#nn
~/torch/install/bin/luarocks build https://raw.github.com/torch/nn/master/rocks/nn-scm-1.rockspec
#md5
~/torch/install/bin/luarocks build https://raw.github.com/keplerproject/md5/master/rockspec/md5-1.2-1.rockspec
#threads
~/torch/install/bin/luarocks build https://raw.github.com/torch/threads/master/rocks/threads-scm-1.rockspec
#tds
~/torch/install/bin/luarocks build https://raw.github.com/torch/rocks/master/tds-scm-1.rockspec
#torchnet
~/torch/install/bin/luarocks build https://raw.github.com/torchnet/torchnet/master/rocks/torchnet-scm-1.rockspec
#vector
~/torch/install/bin/luarocks build https://raw.github.com/torch/vector/master/rocks/vector-scm-1.rockspec
#torchnet-sequential
~/torch/install/bin/luarocks build https://raw.github.com/torchnet/sequential/master/rocks/torchnet-sequential-scm-1.rockspec
#tbc
~/torch/install/bin/luarocks build https://raw.github.com/gchanan/TemporalConvolutionTBC/master/rocks/tbc-scm-1.rockspec
#luasocket
~/torch/install/bin/luarocks build https://raw.github.com/diegonehab/luasocket/master/luasocket-scm-0.rockspec
#visdom
~/torch/install/bin/luarocks build https://raw.github.com/facebookresearch/visdom/master/th/visdom-scm-1.rockspec
#fairseq
~/torch/install/bin/luarocks make rocks/fairseq-cpu-scm-1.rockspec
@loretoparisi
Copy link
Author

loretoparisi commented May 22, 2017

Missing dependencies for fairseq-cpu:
visdom 
lua-cjson 
torchnet-sequential 
tbc 
torch >= 7.0
rnnlib 
nngraph 
torchnet 
threads 
penlight 
nn 
tds 
argcheck 
[loretoparisi@:mbploreto fairseq]$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.12.4
BuildVersion:	16E195
[loretoparisi@:mbploreto fairseq]$ fairseq
Usage: fairseq <tool> [options]
[loretoparisi@:mbploreto fairseq]$ 

@loretoparisi
Copy link
Author

See facebookresearch/fairseq#36 (comment) for system wide installation details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment