Skip to content

InferenceSession init hangs for multiple models on Azure Kubernetes Service #13291

Description

@alexbarl

Our team trains and applies various ML models by using ML.NET.
Some scenarios use onnx through Microsoft.ML.OnnxRuntime nuget package.
Recently we’ve started moving our services to Azure Kubernetes (AKS) were we see that initialization calls to ApplyOnnxModel consistently hang for all models.

Configuration

  1. Microsoft.ML version 1.7.1 packages
  2. Microsoft.ML.OnnxRuntime.Managed and Microsoft.ML.OnnxRuntime version 1.10 packages (for compatibility with services on the previous platform)
  3. The container is based on image from mcr.microsoft.com/dotnet/aspnet:6.0 - Debian GNU/Linux 11 (bullseye)
  4. From what I see AKS host OS is Ubuntu 18.04.6 LTS (Bionic Beaver)
  5. UTF-8 locale is configured through Dockerfile.
    Without locale configuration an error message in onnxruntime was traced.

The initialization hangs somewhere inside libonnxruntime.so code.

Managed code call stack
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api:CSharpissues related to the C# API

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions