macournoyer / neuralconvo

Neural conversational model in Torch
777 stars 346 forks source link

add cltorch support for neuralconvo #13

Closed tigerneil closed 8 years ago

tigerneil commented 8 years ago

install cltorch clnn first and update all things to the lastest.

luarocks install torch
luarocks install nn
luarocks install nngraph
luarocks install cltorch
luarcoks install clnn

then in the project directory, use

th train.lua --dataset 1000 --hiddenSize 500 --opencl

to run the training process.

bash-3.2$ th train.lua --dataset 1000 --hiddenSize 500 --opencl
libthclnn_searchpath    /Users/zhuxiaohu/torch/install/lib/lua/5.1/libTHCLNN.so
-- Loading dataset
Loading vocabulary from data/vocab.t7 ...

Dataset stats:
  Vocabulary size: 2536
         Examples: 1569
Using Apple , OpenCL platform: Apple
Using OpenCL device: HD Graphics 4000
...

still have problem on evaluation step.

macournoyer commented 8 years ago

Awesome! Thanks a lot Xiaohu.