macournoyer / neuralconvo

Neural conversational model in Torch
776 stars 347 forks source link

Error on this branch: https://github.com/rustch3n/chatbot-zh-torch7 #64

Closed SeekPoint closed 7 years ago

SeekPoint commented 7 years ago

https://github.com/rustch3n/chatbot-zh-torch7

the training looks well:

rzai@rzai00:~/prj/chatbot-zh-torch7$ th train.lua --cuda --dataset 50000 --hiddenSize 1000 -- Loading dataset data/vocab.t7 not found -- Parsing Cornell movie dialogs data set ... Total lines = 1363668 -- Pre-processing data==================== 1363000/1363667 ===========================>.] ETA: 0ms | Step: 0ms zero text................................. 2761/50000 ..................................] ETA: 15s470ms | Step: 0ms zero text................................. 3458/50000 ..................................] ETA: 25s481ms | Step: 0ms zero text========>........................ 9312/50000 ..................................] ETA: 5s724ms | Step: 0ms zero text========>........................ 9393/50000 ..................................] ETA: 3s846ms | Step: 0ms zero text========>........................ 9411/50000 ..................................] ETA: 3s914ms | Step: 0ms zero text===============>................. 13821/50000 .................................] ETA: 20s948ms | Step: 0ms zero text===============>................. 13822/50000 .................................] ETA: 20s947ms | Step: 0ms zero text================================= 27232/50000 .................................] ETA: 13s703ms | Step: 0ms zero text================================= 31704/50000 >................................] ETA: 2s378ms | Step: 0ms [======================================== 50000/50000 ================================>] Tot: 19s567ms | Step: 0ms -- Removing low frequency words sfsgsdfgdf [======================================== 49991/49991 ================================>] Tot: 18s442ms | Step: 0ms Writing data/examples.t7 ... [======================================== 49991/49991 ================================>] Tot: 21s666ms | Step: 0ms Writing data/vocab.t7 ...

Dataset stats: Vocabulary size: 4401 Examples: 49991 dgk ending

-- Epoch 1 / 30

[======================================== 49990/49991 ===============================>.] ETA: 23ms | Step: 23ms Finished in 16m3s 51.909932623143 examples/sec.

Epoch stats: LR= 0.05 Errors: min= 0 max= 197.08706665039 median= 0 mean= 8.4378240350352 std= 26.886080321264

(Saving model ...)

-- Epoch 30 / 30

[======================================== 49990/49991 ===============================>.] ETA: 32ms | Step: 32ms Finished in 25m1s 33.285151833831 examples/sec.

Epoch stats: LR= 1e-05 Errors: min= 0 max= 17.643188444898 median= 0 mean= 0.22388851962713 std= 0.73856309101236

(Saving model ...) rzai@rzai00:~/prj/chatbot-zh-torch7$


but the eval.lua crashed: rzai@rzai00:~/prj/chatbot-zh-torch7$ rzai@rzai00:~/prj/chatbot-zh-torch7$ ll data total 1380144 drwxrwxr-x 2 rzai rzai 4096 10月 22 20:04 ./ drwxrwxr-x 4 rzai rzai 4096 11月 6 18:07 ../ -rw-rw-r-- 1 rzai rzai 11589112 10月 22 19:47 examples.t7 -rw-rw-r-- 1 rzai rzai 0 10月 22 15:18 .gitkeep -rw-rw-r-- 1 rzai rzai 1370449562 10月 23 22:08 model.t7 -rw-rw-r-- 1 rzai rzai 202166 10月 22 19:47 vocab.t7 -rw-r--r-- 1 rzai rzai 31005631 7月 1 15:37 xiaohuangji50w_fenciA.conv rzai@rzai00:~/prj/chatbot-zh-torch7$ th eval.lua Loading vocabulary from data/vocab.t7 ...
-- Loading model
/home/rzai/torch/install/bin/luajit: /home/rzai/torch/install/share/lua/5.1/torch/File.lua:343: unknown Torch class stack traceback: [C]: in function 'error' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:343: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:353: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:353: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:353: in function 'readObject' /home/rzai/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load' eval.lua:30: in main chunk [C]: in function 'dofile' ...rzai/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 rzai@rzai00:~/prj/chatbot-zh-torch7$

SeekPoint commented 7 years ago

miss report it should be eavl with --cuda