jcjohnson / torch-rnn

Efficient, reusable RNNs and LSTMs for torch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sampling Output Memory issue if -length exceeds value on Ubuntu 14.04

danindiana opened this issue · comments

Getting this issue currently:

th sample.lua -checkpoint cv/checkpoint_4450.t7 -length 4452066 > outputtext.txt

Program will run for a long time then eventually quit with error:

luajit: not enough memory

So the program seems to have trouble if your output length exceeds a certain threshold. Note that a length of 445266 will output without issue, but add another digit to that figure and the program hangs for a long time and then quits out with memory error. Note: Char-rnn did not have issues with outputing samples of that size/length (which for reference is about the size of characters w/ spaces of an online version of the King James Bible).

This issue seems related to bug #158 but that open issue hasn't been addressed since Jan 13th so thought to re-open.

System specs below:

yyyyy- -yyyyyy+ OS: ubuntu Ubuntu 14.04 trusty
://+//////-yyyyyyo Kernel: x86_64 Linux 3.13.0-121-generic
.++ .:/++++++/-.+sss/Uptime: 8h 20m .:++o: /++++++++/:--:/- Packages: 4149 o:+o+:++...```.-/oo+++++/ Shell: bash 4.3.11
.:+o:+o/. +sssoo+/ Resolution: 1920x1080 .++/+:+oo+o: /sssooo. DE: Gnome 3.9.90
/+++//+:oo+o /::--:. WM: GNOME Shell +/+o+++o++o ++////. WM Theme: Adwaita
.++.o+++oo+:` /dddhhh. GTK Theme: Radiance [GTK2/3]
.+.o+oo:. `oddhhhh+ Icon Theme: elementary-xfce-darker
+.++o+o``-````.:ohdhhhhh+ Font: Cantarell 11
`:o+++ `ohhhhhhhhyo++os: CPU: AMD FX-8350 Eight-Core @ 4GHz
.o:`.syhhhhhhh/.oo++o` GPU: GeForce GTX 750 Ti
/osyyyyyyo++ooo+++/ RAM: 7127MiB / 24011MiB

`oo++.