spectra icon indicating copy to clipboard operation
spectra copied to clipboard

GPU tutorial?

Open caitsimop opened this issue 2 years ago • 3 comments

I'm looking to use the GPU implementation of Spectra as mentioned in issue #21.

When you load from Spectra import Spectra_gpu as spc_gpu you get this info:

Spectra GPU support is still under development. Raise any issues on github 
 
 Changes from v1: 
 (1) GPU support [see tutorial] 
 (2) minibatching for local parameters and data 
 Note that minibatching may affect optimization results 
 Code will eventually be merged into spectra.py

Is there a tutorial hiding somewhere? I'm especially interested in the minibatching.

Thanks!

caitsimop avatar Jan 09 '24 18:01 caitsimop

Hi Cat, I'm working this. keeping it open

russellkune avatar Jan 09 '24 19:01 russellkune

Hello,

thanks for developing this great tool! Just adding to Cat's comment above, it would be great if in your upcoming tutorial there is a section on how to utilize the GPU on the new Apple silicon OS.

Thank you! Anastasia

kousaa avatar Jul 03 '24 15:07 kousaa

Hello, wanted to check if there were any updates on GPU use?

One thing I noted was that various arguments for the CPU est_spectra function don't seem to be needed / used for the gpu version i.e. label_factors, overlap_threshold, clean_gs and min_gs_num.

Is there any specific reason for this?

andrewjkwok avatar Aug 12 '24 07:08 andrewjkwok