parlance / ctcdecode

PyTorch CTC Decoder bindings
MIT License
830 stars 245 forks source link

Cannot allocate memory mmap failed for size 2953349384 at offset 0 #137

Open baicaitongee opened 4 years ago

baicaitongee commented 4 years ago

when i run it on raspberry pi (ram 4gb),i got this:

Loading model... Traceback (most recent call last): File "examples/demo-server.py", line 10, in import beamdecode File "/home/pi/masr/examples/../beamdecode.py", line 29, in blank_index, File "/home/pi/.local/lib/python3.7/site-packages/ctcdecode/init.py", line 18, in init self._num_labels) RuntimeError: third_party/kenlm/util/mmap.cc:122 in void util::MapOrThrow(std::size_t, bool, int, bool, int, uint64_t) threw ErrnoException because `(ret = mmap(__null, size, protect, flags, fd, offset)) == ((void ) -1)'. Cannot allocate memory mmap failed for size 2953349384 at offset 0

zamling commented 3 years ago

Have a same problem! Hoping a solution