nanoporetech / dorado

Oxford Nanopore's Basecaller
https://nanoporetech.com/
Other
441 stars 54 forks source link

Dorado correct terminates due to unsufficient memory #843

Closed stevebaeyen closed 1 month ago

stevebaeyen commented 1 month ago

Issue Report

Please describe the issue:

ran dorado 0.7.0 basecaller on R10.4.1 simplex data with v5 models and tried to correct the reads using herro, but abort due to unsufficient memory

Steps to reproduce the issue:

dorado correct GBBC_502_supv5.fq > GBBC502_corr.fasta [2024-05-25 09:51:53.419] [info] Running: "correct" "GBBC_502_supv5.fq" [2024-05-25 09:51:53.420] [info] - downloading herro-v1 with httplib terminate called after throwing an instance of 'std::runtime_error' what(): Insufficient memory to run inference on cuda:0 Aborted (core dumped)

Run environment:

tijyojwad commented 1 month ago

Hi @stevebaeyen - running dorado correct is CPU/host memory and GPU memory intensive. As suggested here we recommend running on a beefier system to get reasonable performance.

You can run it on a smaller system by placing around with -b (batch size) and -i (mapping index size) through the cmdline. e.g. you can try -i 800M -b 2 and see if that works.

stevebaeyen commented 1 month ago

Thanks @tijyojwad ! That is working!