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:
![image](https://private-user-images.githubusercontent.com/64015462/378158686-f76e2796-8ec2-4fb2-8ea7-7a1cd55846a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDQ1NTcsIm5iZiI6MTczOTA0NDI1NywicGF0aCI6Ii82NDAxNTQ2Mi8zNzgxNTg2ODYtZjc2ZTI3OTYtOGVjMi00ZmIyLThlYTctN2ExY2Q1NTg0NmEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE5NTA1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkYzMyY2ExYzY1NDI2NTAzY2IyM2JlODVkMmMyMWU5M2QzNDE4YzFhNTUxMjMyOWY0Y2ViMzcyOTg0MjYyZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BClqU-YwkuQUQUhC7vo0c90rdtP3nVPl5FVNiDFgpZg)
However, i seem to receive the following error:
![image](https://private-user-images.githubusercontent.com/64015462/378158735-dcb37ecb-fc98-4c75-8f01-3a1498b9c435.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDQ1NTcsIm5iZiI6MTczOTA0NDI1NywicGF0aCI6Ii82NDAxNTQ2Mi8zNzgxNTg3MzUtZGNiMzdlY2ItZmM5OC00Yzc1LThmMDEtM2ExNDk4YjljNDM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE5NTA1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUyZDdiYTBjNGJiNjgxOTE3ODUxM2Q2MGFkMzRhYjI3NTBjZGJkYTg5YTFlZTA2YWM3MWU5OGZiMzk5YWJhN2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.uaUxFPcAJCu-ahrhm_fHvMcl8wfMLh3ymOaCmAiyE2g)
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