wave2vec-recognize-docker icon indicating copy to clipboard operation
wave2vec-recognize-docker copied to clipboard

RuntimeError: [enforce fail at CPUAllocator.cpp:65]

Open raja1196 opened this issue 4 years ago • 5 comments

Followed the installation steps, built the Dockerfile (Which had its own hiccups, the fairseq repository does not have base_architecture definition in their models file, will raise a PR for it separately) and ran the code.

Running command python examples/wav2vec/recognize.py --wav_path /app/data/test.WAV --w2v_path /app/data/wav2vec_small_10m.pt --target_dict_path /app/data/dict.ltr.txt

Error: RuntimeError: [enforce fail at CPUAllocator.cpp:65] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 314663671488 bytes. Error code 12 (Cannot allocate memory)

Screenshot of the error: Screen Shot 2020-11-26 at 2 28 34 PM

I tried with different models of wave2vec with similar error. Do let me know if more information is needed. Running this on Azure DS VM.

raja1196 avatar Nov 26 '20 19:11 raja1196