DJL very slow compared to Python, is this normal? #3600
-
I am trying to compute embeddings based on the HuggingFace model I am running this on my M2 MacBook Pro. Is this kind of performance to be expected, or have I done something wrong? If you suspect I've done something wrong, then I'll provide the source code. In production, we'll be running this on some sort of x64 server. So perhaps the M2 performance characteristics that we observed are irrelevant. Is there documentation that could guide me to the right hardware to use for this, and the corresponding DJL settings? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
By default, DJL is not using MPS device on M2 machine, on linux machine you should expect the same performance. |
Beta Was this translation helpful? Give feedback.
-
You can try the following code to use
|
Beta Was this translation helpful? Give feedback.
By default, DJL is not using MPS device on M2 machine, on linux machine you should expect the same performance.