Skip to content

Conversation

@DesmonDay
Copy link
Contributor

@DesmonDay DesmonDay commented Dec 31, 2024

PR types

Bug fixes

PR changes

Others

Description

Trainer所保存的random种子对于数据流不起作用,需要改成独立Random实例。

@codecov
Copy link

codecov bot commented Dec 31, 2024

Codecov Report

Attention: Patch coverage is 11.11111% with 8 lines in your changes missing coverage. Please review.

Project coverage is 53.01%. Comparing base (3aa9f4c) to head (b2e32ce).
Report is 268 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/datasets/embedding_dataset.py 11.11% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9721      +/-   ##
===========================================
- Coverage    53.30%   53.01%   -0.29%     
===========================================
  Files          724      718       -6     
  Lines       118271   112451    -5820     
===========================================
- Hits         63039    59615    -3424     
+ Misses       55232    52836    -2396     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@ZHUI ZHUI left a comment

Choose a reason for hiding this comment

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

LGTM

class EmbeddingDatasetMixin:
"""EmbeddingDatasetMixin."""

rng = random.Random(10) # random seed
Copy link
Contributor

Choose a reason for hiding this comment

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

这个为什么固定seed,还不可以调整

@ZHUI ZHUI merged commit 3a3bb65 into PaddlePaddle:develop Jan 2, 2025
9 of 12 checks passed
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