Skip to content

[GPT][CE] Update modeling.py #8548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions paddlenlp/transformers/gpt/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@
# todo fix it
# ValueError: Length of gpu state list should be equal to the gpu device count
# /usr/local/lib/python3.10/dist-packages/paddle/incubate/framework/random.py:119: ValueError
return contextlib.nullcontext()
# return get_rng_state_tracker().rng_state(name)
# return contextlib.nullcontext()
return get_rng_state_tracker().rng_state(name)

Check warning on line 137 in paddlenlp/transformers/gpt/modeling.py

View check run for this annotation

Codecov / codecov/patch

paddlenlp/transformers/gpt/modeling.py#L137

Added line #L137 was not covered by tests
else:
return contextlib.nullcontext()

Expand Down
Loading