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
SynapseML's ONNXModel fails to execute ONNX models in local Spark environments with native library path errors, while
the same code and models work successfully in Databricks environments. This suggests a configuration or environment
setup issue specific to local Spark deployments.
Expected Behavior:
The ONNXModel.transform() method should work consistently across both local Spark environments and Databricks, given
proper configuration.
Actual Behavior:
✅ Works in Databricks: Same ONNX models and SynapseML code execute successfully
Local vs. Managed Environment: The core difference appears to be how ONNX Runtime native libraries are
configured/discovered in local Spark vs. Databricks managed environments
Configuration Attempts: Various local configuration attempts have been made:
- Explicit java.library.path settings
- Different ONNX Runtime Maven coordinates
- Memory and execution tuning
- Manual native library path specification
Request for Documentation: It would be helpful to have documentation on the specific configuration requirements for
local Spark environments to match Databricks functionality.
Suggested Solution:
Could SynapseML provide:
Detailed local environment setup guide for ONNX integration
Specific Maven/configuration requirements for local Spark deployments
Native library path configuration examples for different platforms (macOS, Linux, Windows)
This would help bridge the gap between managed Databricks environments and local development setups.
SynapseML version
1.0.13
System information
System Information:
Component(s) Affected:
Language(s) Affected:
Describe the problem
SynapseML's ONNXModel fails to execute ONNX models in local Spark environments with native library path errors, while
the same code and models work successfully in Databricks environments. This suggests a configuration or environment
setup issue specific to local Spark deployments.
Expected Behavior:
The ONNXModel.transform() method should work consistently across both local Spark environments and Databricks, given
proper configuration.
Actual Behavior:
Code to reproduce issue
Other info / logs
Additional Context:
Support for EBM/ONNX Model (Possible Bug?) [BUG] [HELP] #1902
configured/discovered in local Spark vs. Databricks managed environments
- Explicit java.library.path settings
- Different ONNX Runtime Maven coordinates
- Memory and execution tuning
- Manual native library path specification
local Spark environments to match Databricks functionality.
Suggested Solution:
Could SynapseML provide:
This would help bridge the gap between managed Databricks environments and local development setups.
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