microsoft / microsoft/onnxruntime-genai

Description of onnxRuntimeGenAI.QNN Long-Term Inference Output Anomaly Issue

Open
#1,831 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.1k
Forks
354
Avg merge
2d 16h
Merged PRs (30d)
85

Description

Bug Description and Reproduction

Describe the Bug

After long-term inference using onnxRuntimeGenAI.QNN, nonsensical output or repeated punctuation may occur.
EnableCaching has been disabled during initialization:

var options = new OnnxRuntimeGenAIChatClientOptions  
{  
    StopSequences = Array.Empty<string>(),  
    PromptFormatter = TestPromptFormatter,  
    EnableCaching = false  
};  

To Reproduce

Steps to reproduce the issue:

  1. Initialize the model
  2. Repeat the inference process (Start inference → Wait for inference to end → Start inference)

Expected behavior

Normal inference output.

Desktop (please complete the following information)

  • OS: Windows 11 Home 25H2 26200.6588
  • OnnxRuntimeGenAI.QNN: 0.10.0
  • NPU Driver: 30.0.140.1000/30.0.145.1000

Additional Context

Add any other relevant information about the issue here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the repeated inference cycle described in the issue with EnableCaching disabled on Windows 11, using OnnxRuntimeGenAI.QNN 0.10.0 and the listed NPU drivers. Compare output after repeated Start inference → Wait for inference to end cycles; done means normal output remains consistent rather than becoming nonsensical or repeating punctuation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
ai, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.