marker icon indicating copy to clipboard operation
marker copied to clipboard

ROCm

Open etemiz opened this issue 1 year ago • 3 comments

Thanks for this amazing software!

Is there a possibility to run it or surya using ROCm / AMD GPUs?

Thanks again

etemiz avatar Jul 04 '24 23:07 etemiz

I found it:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
pip install marker-pdf

etemiz avatar Jul 05 '24 02:07 etemiz

@etemiz are you seeing models load into VRAM i.e. using 7900XTX and ROCm 6.0, I'm only seeing

Loaded detection model vikp/surya_det2 on device cpu with dtype torch.float32
Loaded detection model vikp/surya_layout2 on device cpu with dtype torch.float32
Loaded reading order model vikp/surya_order on device cpu with dtype torch.float32
Loaded recognition model vikp/surya_rec on device cpu with dtype torch.float32
Loaded texify model to cpu with torch.float32 dtype

I was looking into adding ROCm support in PR but if you have it working already I wonder what I am doing incorrectly.

mxchinegod avatar Jul 08 '24 01:07 mxchinegod

Yes I see them in the VRAM.

etemiz avatar Jul 08 '24 11:07 etemiz