Skip to content

fix cuda ut fail caused by used instructions for base model#1994

Merged
chensuyue merged 1 commit into
mainfrom
hengguo/fix_release_ut
Jul 6, 2026
Merged

fix cuda ut fail caused by used instructions for base model#1994
chensuyue merged 1 commit into
mainfrom
hengguo/fix_release_ut

Conversation

@n1ck-guo

@n1ck-guo n1ck-guo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

Please briefly describe your main changes, the motivation.

Type of Change

Bug fix

Related Issues

Fixes or relates to #

Checklist Before Submitting

  • My code has been tested locally.
  • Documentation has been updated as needed.
  • New or updated tests are included where applicable.
  • The CUDA CI has passed. You can trigger it by commenting /azp run Unit-Test-CUDA-AutoRound.

@n1ck-guo n1ck-guo changed the title Hengguo/fix release ut fix cuda ut fail caused by used instructions for base model Jul 6, 2026
Signed-off-by: n1ck-guo <heng.guo@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes CUDA unit test flakiness by changing the default generation sanity-check prompt from an instruction-following task to a completion-style prompt that is more reliable for base (non-instruction-tuned) models after quantization.

Changes:

  • Updated eval_generated_prompt defaults to use a completion-style prompt ("United States of" → expects "America").
  • Added an inline comment explaining why instruction-style prompts are avoided for base models in this check.

@chensuyue

Copy link
Copy Markdown
Contributor

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@chensuyue chensuyue merged commit 43f443e into main Jul 6, 2026
18 of 21 checks passed
@chensuyue chensuyue deleted the hengguo/fix_release_ut branch July 6, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants