microsoft / microsoft/onnxruntime-genai
Description of onnxRuntimeGenAI.QNN Long-Term Inference Output Anomaly Issue
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:
- Initialize the model
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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