You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to use 'self.device = mps' directly and it worked (Macbook Pro - M1 Pro, 16GB). PyTorch now offers support to the operations the MFR model needed. Results of:
Are you sure that using MPS for MFR is faster than using CPU? When I tested, MPS fell back to CPU execution during the MFR phase, which made the overall time longer than pure CPU computation. However, it might be because I only tested with PyTorch 2.4 and 2.5. In any case, I will upgrade PyTorch to version 2.6 and try again, hoping to see MPS work properly. Thank you for your feedback.
I tested on an M4+16GB Mac mini, and found that MFR does not get a speedup in parsing with torch 2.6.0 + MPS. If you have more experience accelerating MFR with MPS, feedback is welcome.
I have changed line 130 in 'pdf_extract_kit.py'
MinerU/magic_pdf/model/pdf_extract_kit.py
Line 130 in 1e4d4b5
show the debug logs below:
The text was updated successfully, but these errors were encountered: