Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-79161#1436

Open
Echo-Nie wants to merge 1 commit into
PaddlePaddle:masterfrom
Echo-Nie:79161
Open

[SWE-Paddle] Add task PaddlePaddle__Paddle-79161#1436
Echo-Nie wants to merge 1 commit into
PaddlePaddle:masterfrom
Echo-Nie:79161

Conversation

@Echo-Nie

Copy link
Copy Markdown
Contributor

关联

说明

  • 新增 SWE-Paddle 任务 PaddlePaddle__Paddle-79161

@sunzhongkai588

验证结果

状态 Existing state_list P2P new_state alias F2P Conflicting aliases F2P
Base + tests/test.patch PASS FAIL,符合预期 FAIL,符合预期
Base + test patch + solution/code.patch PASS PASS PASS

Base P2P:Existing positional and state_list calls

.                                                                        [100%]
1 passed in 0.04s
Base existing state-list P2P exit code: 0

Base F2P:new_state parameter alias

F                                                                        [100%]
================================== FAILURES ===================================
_____________ test_new_state_alias_sets_the_same_generator_state ______________

    def test_new_state_alias_sets_the_same_generator_state():
        function, generator, converted_devices = _load_checkout_function()
        aliased_state = object()

>       function(new_state=[aliased_state], device="cpu")
E       TypeError: set_rng_state() got an unexpected keyword argument 'new_state'

test\swe_paddle\test_pr79161_set_rng_state_alias.py:128: TypeError
=========================== short test summary info ===========================
FAILED test/swe_paddle/test_pr79161_set_rng_state_alias.py::test_new_state_alias_sets_the_same_generator_state
1 failed in 0.28s
Base new-state-alias F2P exit code: 1

Base F2P:Conflicting state_list and new_state arguments

F                                                                        [100%]
================================== FAILURES ===================================
_____________ test_state_list_and_new_state_conflict_is_rejected ______________

    def test_state_list_and_new_state_conflict_is_rejected():
        function, generator, _ = _load_checkout_function()

        with pytest.raises(ValueError, match="Cannot specify both"):
>           function(state_list=[object()], new_state=[object()])
E           TypeError: set_rng_state() got an unexpected keyword argument 'new_state'

test\swe_paddle\test_pr79161_set_rng_state_alias.py:138: TypeError
=========================== short test summary info ===========================
FAILED test/swe_paddle/test_pr79161_set_rng_state_alias.py::test_state_list_and_new_state_conflict_is_rejected
1 failed in 0.49s
Base conflicting-aliases F2P exit code: 1

Solution 测试

Solution existing state-list P2P:
1 passed in 0.02s

Solution new-state-alias F2P:
1 passed in 0.04s

Solution conflicting-aliases F2P:
1 passed in 0.03s

tests/test.sh

...                                                                      [100%]
3 passed in 0.04s
Solution tests/test.sh exit code: 0

@paddle-bot

paddle-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

你的PR提交成功,感谢你对开源项目的贡献!
请检查PR提交格式和内容是否完备,具体请参考示例模版
Your PR has been submitted. Thanks for your contribution!
Please check its format and content. For this, you can refer to Template and Demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant