Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU usage at the EQTransformer #168

Open
birsenc opened this issue Sep 20, 2024 · 1 comment
Open

GPU usage at the EQTransformer #168

birsenc opened this issue Sep 20, 2024 · 1 comment

Comments

@birsenc
Copy link

birsenc commented Sep 20, 2024

Dear @smousavi05 and all,

We are running EQTransformer at HPC using CPU.
We have more than 100 seismic stations and 3 years of data.
We want to accelerate the speed of predicition.
I have questions related to this issue.

Thank you very much in advance

  • Is it faster to use both CPU and GPU or only GPU?

  • How do we have to choose the below parameters for faster predicition?

  • What does "int" mean? What value do we have to use for the GPU?

  • We choose number of CPUs at the slurm. Do we still have to enter the number_of_cpus, if not does it use "default=5"?

  • I couldn't understand "Id of GPU used for the prediction"

  • Do we have to choose the below parameters and use exactly the same values at the slurm also?

    gpuid: int, default=None
    Id of GPU used for the prediction. If using CPU set to None.

    gpu_limit: int, default=None
    Set the maximum percentage of memory usage for the GPU.

    number_of_cpus: int, default=5
    Number of CPUs used for the parallel preprocessing and feeding of data for prediction.

    use_multiprocessing: bool, default=True
    If True, multiple CPUs will be used for the preprocessing of data even when GPU is used for the prediction.

@smousavi05
Copy link
Owner

@birsenc thank you for reaching out.
In your case GPUs won't help. They are just useful for training and model building. What you need is to parallemize it over the number of stations (and perhaps months) using many more CPUs. I have implemented a crude parallel process (this is what the number of CPU parameter is for) but you may improve it by running a higher order parallelization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants