Skip to content

[XPU][CI] Ci bug fix#4889

Merged
plusNew001 merged 3 commits intoPaddlePaddle:developfrom
plusNew001:ci-bug-fix
Nov 7, 2025
Merged

[XPU][CI] Ci bug fix#4889
plusNew001 merged 3 commits intoPaddlePaddle:developfrom
plusNew001:ci-bug-fix

Conversation

@plusNew001
Copy link
Copy Markdown
Collaborator

Motivation

Modifications

Usage or Command

Accuracy Tests

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

Copilot AI review requested due to automatic review settings November 7, 2025 09:46
@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Nov 7, 2025

Thanks for your contribution!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

该 PR 将两个测试文件中的严格字符串匹配断言改为更灵活的子字符串检查,以适应 AI 模型输出的变化性。

  • 将精确的响应字符串比对改为仅检查关键词"人工智能"的存在
  • 注释掉而非删除原有的基准响应字符串

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/ci_use/XPU_45T/run_w4a8.py 修改测试断言从精确匹配改为关键词检查,注释掉两个基准响应字符串
tests/ci_use/XPU_45T/run_45T.py 修改测试断言从精确匹配改为关键词检查,注释掉两个基准响应字符串

Comment on lines +22 to +23
#base_response_110 = "你好!我是一个基于人工智能技术的助手,可以帮你解答问题、提供建议、聊天或者协助完成各种任务。无论是学习、工作还是生活中的疑问,我都可以尽力提供帮助。😊 你有什么想聊的吗?"
#base_response_104 = "你好!我是一个人工智能助手,可以帮你解答问题、提供建议、聊天或者完成一些任务。无论是学习、工作还是生活中的疑问,我都可以尽力帮忙哦~有什么需要我做的吗?😊"
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

注释格式不一致。在第22行使用了 # 紧贴代码(无空格),而在第24行的注释 # 非流式对话 中使用了空格分隔。建议在 # 后添加空格以保持一致性:# base_response_110 = ...

Suggested change
#base_response_110 = "你好!我是一个基于人工智能技术的助手,可以帮你解答问题、提供建议、聊天或者协助完成各种任务。无论是学习、工作还是生活中的疑问,我都可以尽力提供帮助。😊 你有什么想聊的吗?"
#base_response_104 = "你好!我是一个人工智能助手,可以帮你解答问题、提供建议、聊天或者完成一些任务。无论是学习、工作还是生活中的疑问,我都可以尽力帮忙哦~有什么需要我做的吗?😊"
# base_response_110 = "你好!我是一个基于人工智能技术的助手,可以帮你解答问题、提供建议、聊天或者协助完成各种任务。无论是学习、工作还是生活中的疑问,我都可以尽力提供帮助。😊 你有什么想聊的吗?"
# base_response_104 = "你好!我是一个人工智能助手,可以帮你解答问题、提供建议、聊天或者完成一些任务。无论是学习、工作还是生活中的疑问,我都可以尽力帮忙哦~有什么需要我做的吗?😊"

Copilot uses AI. Check for mistakes.
@plusNew001 plusNew001 merged commit fa09838 into PaddlePaddle:develop Nov 7, 2025
10 of 14 checks passed
juncaipeng pushed a commit to juncaipeng/FastDeploy that referenced this pull request Nov 10, 2025
* Refactor test_45t by commenting out responses

Comment out base response variables and update assertion.

* Update run_w4a8.py

* Fix assertion syntax in run_45T.py
@plusNew001 plusNew001 deleted the ci-bug-fix branch November 13, 2025 11:57
chang-wenbin pushed a commit to chang-wenbin/FastDeploy that referenced this pull request Mar 2, 2026
* Refactor test_45t by commenting out responses

Comment out base response variables and update assertion.

* Update run_w4a8.py

* Fix assertion syntax in run_45T.py
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.

2 participants