Statements and questions
Dear authors, thank you for developing this program. I have a few questions.
-
On our server, I can only use the CPU, which leads to my question: is it possible to limit the number of available threads? Since this is a shared work server, I would not like to occupy all the resources.
-
I highly recommend adding a filtered file containing only the detected RdRps alongside the rdrp_predictions.csv, for example, RdRp_only.tab.
Dear authors, thank you for developing this program. I have a few questions.
- On our server, I can only use the CPU, which leads to my question: is it possible to limit the number of available threads? Since this is a shared work server, I would not like to occupy all the resources.
- I highly recommend adding a filtered file containing only the detected RdRps alongside the rdrp_predictions.csv, for example, RdRp_only.tab.
@SergeyBaikal Thank you for your valuable feedback and questions. For the first issue: 1) Split your FASTA file: Divide your large FASTA input file into several smaller sub-files, considering your available computational resources. 2) Run predictions independently: Call the prediction command separately for each sub-file. This strategy allows for efficient resource management and avoids over-utilization of the shared server.
For the second issue:
We have already implemented this feature! The predict_many_samples.py script has been updated. Please re-download the script to get the latest version.
The updated script now generates an additional result file named RdRPs_only_using_threshold${threshold}.csv. This new file exclusively contains RdRPs with probabilities that exceed the given --threshold value you specify.
We hope this enhancement makes your downstream analysis much more convenient!
Dear authors, thank you for developing this program. I have a few questions.
- On our server, I can only use the CPU, which leads to my question: is it possible to limit the number of available threads? Since this is a shared work server, I would not like to occupy all the resources.
- I highly recommend adding a filtered file containing only the detected RdRps alongside the rdrp_predictions.csv, for example, RdRp_only.tab.
@SergeyBaikal Thank you for your valuable feedback and questions. For the first issue: 1) Split your FASTA file: Divide your large FASTA input file into several smaller sub-files, considering your available computational resources. 2) Run predictions independently: Call the prediction command separately for each sub-file. This strategy allows for efficient resource management and avoids over-utilization of the shared server.
For the second issue: We have already implemented this feature! The
predict_many_samples.pyscript has been updated. Please re-download the script to get the latest version.The updated script now generates an additional result file named
RdRPs_only_using_threshold${threshold}.csv. This new file exclusively contains RdRPs with probabilities that exceed the given --threshold value you specify.We hope this enhancement makes your downstream analysis much more convenient!
Thank you for the quick reply. I'll try it now! )
Dear authors! Thank you, the RdRp-only file now appears. However, I was not able to reduce the load on the server, even by splitting the large file into several smaller ones. In glances, I see CPU% at 4000 and THR at 190. I am using the following command:
python predict_many_samples.py --fasta_file /home/orfs_proteins.fasta --save_file /home/rdrp_predictions.csv --emb_dir /home/ --truncation_seq_length 4096 --dataset_name rdrp_40_extend --dataset_type protein --task_type binary_class --model_type sefn --time_str 20230201140320 --step 100000 --threshold 0.5 --print_per_number 100 --gpu_id -1
Dear authors! Thank you, the RdRp-only file now appears. However, I was not able to reduce the load on the server, even by splitting the large file into several smaller ones. In glances, I see CPU% at 4000 and THR at 190. I am using the following command:
python predict_many_samples.py --fasta_file /home/orfs_proteins.fasta --save_file /home/rdrp_predictions.csv --emb_dir /home/ --truncation_seq_length 4096 --dataset_name rdrp_40_extend --dataset_type protein --task_type binary_class --model_type sefn --time_str 20230201140320 --step 100000 --threshold 0.5 --print_per_number 100 --gpu_id -1
Dear user,
Thank you for your feedback.
The high resource usage you observed (4000% CPU and 190 threads) is expected because our model is based on a Protein Large Language Model (pLLM, exceeds 3B-parameters). These deep learning models involve intensive matrix computations that are primarily optimized for NVIDIA GPUs (such as the A100 or H100).
When running on a CPU, the system attempts to parallelize these heavy calculations across all available cores to maintain inference speed, which explains the high CPU load and thread count. To improve performance and efficiency, we strongly recommend:
Using an NVIDIA GPU: This will significantly speed up the processing and offload the burden from your CPU. High-Performance CPU: If a GPU is not available, please ensure the machine has high-frequency processors and sufficient RAM. Thread Limitation: If you need to cap the server load, you can try setting the environment variable export OMP_NUM_THREADS=8 (or another number) before running the command to limit the number of CPU cores the model consumes.
Dear authors! Thank you, the RdRp-only file now appears. However, I was not able to reduce the load on the server, even by splitting the large file into several smaller ones. In glances, I see CPU% at 4000 and THR at 190. I am using the following command:
python predict_many_samples.py --fasta_file /home/orfs_proteins.fasta --save_file /home/rdrp_predictions.csv --emb_dir /home/ --truncation_seq_length 4096 --dataset_name rdrp_40_extend --dataset_type protein --task_type binary_class --model_type sefn --time_str 20230201140320 --step 100000 --threshold 0.5 --print_per_number 100 --gpu_id -1Dear user,
Thank you for your feedback.
The high resource usage you observed (4000% CPU and 190 threads) is expected because our model is based on a Protein Large Language Model (pLLM, exceeds 3B-parameters). These deep learning models involve intensive matrix computations that are primarily optimized for NVIDIA GPUs (such as the A100 or H100).
When running on a CPU, the system attempts to parallelize these heavy calculations across all available cores to maintain inference speed, which explains the high CPU load and thread count. To improve performance and efficiency, we strongly recommend:
Using an NVIDIA GPU: This will significantly speed up the processing and offload the burden from your CPU. High-Performance CPU: If a GPU is not available, please ensure the machine has high-frequency processors and sufficient RAM. Thread Limitation: If you need to cap the server load, you can try setting the environment variable export OMP_NUM_THREADS=8 (or another number) before running the command to limit the number of CPU cores the model consumes.
Thank you, that's exactly what I wanted to know. Unfortunately, GPUs are not available to us, so I will process my sequences little by little. Thanks for the quick reply!