Closed julia-pp closed 1 year ago
Hey @julia-pp :wave:! Thank you so much for reporting the issue/feature request :rotating_light:. Someone from SynapseML Team will be looking to triage this issue soon. We appreciate your patience.
Hi @julia-pp, this issue is because we depend on this library: "com.microsoft.onnxruntime" % "onnxruntime_gpu" % "1.8.1"
, and it is not supported on MacOS.
To work around this problem, you can fork the code base, and swap out the dependency with CPU flavor:
https://github.com/microsoft/SynapseML/blob/f29318a274610dda543ee1422bdbd74cdb6a752a/build.sbt#L406
replace it with "com.microsoft.onnxruntime" % "onnxruntime" % "1.8.1"
.
To build the source code, you can follow the instructions here: https://github.com/microsoft/SynapseML/blob/master/website/docs/reference/developer-readme.md
SynapseML version
0.10.1
System information
Describe the problem
When I want to use onnx inference on spark, it throws a 'java.lang.NoClassDefFoundError: ai/onnxruntime/NodeInfo' error. I clone the raw source and don't find 'NodeInfo' definition in the project which used in https://github.com/microsoft/SynapseML/blob/master/deep-learning/src/main/scala/com/microsoft/azure/synapse/ml/onnx/ONNXModel.scala
Code to reproduce issue
Other info / logs
What component(s) does this bug affect?
area/cognitive
: Cognitive projectarea/core
: Core projectarea/deep-learning
: DeepLearning projectarea/lightgbm
: Lightgbm projectarea/opencv
: Opencv projectarea/vw
: VW projectarea/website
: Websitearea/build
: Project build systemarea/notebooks
: Samples under notebooks folderarea/docker
: Docker usagearea/models
: models related issueWhat language(s) does this bug affect?
language/scala
: Scala source codelanguage/python
: Pyspark APIslanguage/r
: R APIslanguage/csharp
: .NET APIslanguage/new
: Proposals for new client languagesWhat integration(s) does this bug affect?
integrations/synapse
: Azure Synapse integrationsintegrations/azureml
: Azure ML integrationsintegrations/databricks
: Databricks integrations