Skip to content

[CUDA] Qwen3 Model quality regression #27079

Description

Describe the issue

Qwen3 0.6B models generate gibberish outputs on CUDA backend on main branch.
After investigation, the issue was introduced from an earlier commit: 39d8520b9bfe16217d56be38293fc82556d67b5b
It is reproducible on both unquantized model(fp16) and rtn 4bit model.

#fp16
Prompt: 1+1=?

1+1+1+1+10+11+100

systemsystemsystem


#u4 rtn
Prompt: 1+1=?

1+1+1+1+1+1+1+1+1+1+1+1=?

Let? 1+1+11+1+1+1+1+1. Let 1+1+1+1+11+1+11+11+1+11+1+1+1+1+1+1+1+1+1+1+1+1+

The last work commit is: 5b88e4ed6778615113ad4831b160ec52e0d5ac71

To reproduce

Models are generated from onnxruntime-genai's model builder. fp16 and int4.

I built onnxruntime-gpu with following command:

./build.sh --config Release --build_wheel --use_cuda --cuda_home /usr/local/cuda --cudnn_home /usr/local/cuda --parallel --skip_tests

pip install onnxruntime/build/Linux/Release/dist/onnxruntime_gpu-*.whl --force-reinstall

Prompt&Answers are generated with og.generator.

Urgency

This commit is included in ORT1.24 release. Qwen3 are popular open source models.

Platform

Linux

OS Version

6.6.117.1-1.azl3

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1817f4a

ONNX Runtime API

Python

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

CUDA 12.8

Metadata

Metadata

Labels

ep:CUDAissues related to the CUDA execution provider

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions