Replies: 9 comments 15 replies
-
@tandeshao We recommend you to use DJL BOM to ensure versions between different DJL components: https://docs.djl.ai/master/bom/index.html#djl-bill-of-materials-bom |
Beta Was this translation helpful? Give feedback.
-
PyTorch stopped intel based mac support. DJL stopped intel based mac since 0.30.0: https://docs.djl.ai/master/engines/pytorch/pytorch-engine/index.html#macos You have to use 0.29.0 if you want to use old mac machine. |
Beta Was this translation helpful? Give feedback.
-
Your mac is M2, not x86_64, it's wired you got error: Can you clone DJL repo, and run the following command:
|
Beta Was this translation helpful? Give feedback.
-
Yes, please avoid using MPS, it has many limitations. It seems you didn't load your model yet. Please use |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@tandeshao
You can always write your own
|
Beta Was this translation helpful? Give feedback.
-
@tandeshao |
Beta Was this translation helpful? Give feedback.
-
Please use 0.31.0-SNAPSHOT version of DJL. It should be |
Beta Was this translation helpful? Give feedback.
-
@tandeshao |
Beta Was this translation helpful? Give feedback.
-
Hi, I would like to get the embeddings from running the vision transformer (https://huggingface.co/docs/transformers/v4.44.2/en/model_doc/vit) with DJL and i am wondering if it is possible?
Currently I have converted my vision transformer model in python to torchscript from this tutorial here: https://djl.ai/docs/pytorch/how_to_convert_your_model_to_torchscript.html.
However, i have trouble running the model.
Here is my rough code:
However, i seem to receive the following error:
May I know what does this error mean? Also is returning an NDList the correct way to retrieve the embeddings of the model?
Beta Was this translation helpful? Give feedback.
All reactions