Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-79268#1442

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

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

Conversation

@Echo-Nie

Copy link
Copy Markdown
Contributor

关联

说明

  • 新增 SWE-Paddle 任务 PaddlePaddle__Paddle-79268

@sunzhongkai588

验证结果

状态 Existing sampler behavior P2P Configurable seed F2P Public DistributedSampler F2P
Base + tests/test.patch PASS FAIL,符合预期 FAIL,符合预期
Base + test patch + solution/code.patch PASS PASS PASS

Base P2P:Existing distributed batch-sampler behavior

.                                                                        [100%]
1 passed in 0.25s
Base existing sampler behavior P2P exit code: 0

Base F2P:Configurable shuffle seed

F                                                                        [100%]
================================== FAILURES ===================================
____________ test_distributed_batch_sampler_seed_controls_shuffle _____________

    def test_distributed_batch_sampler_seed_controls_shuffle():
        sampler_class = _load_batch_sampler_class()

        def collect(seed, epoch):
            sampler = _construct(
                sampler_class,
                range(20),
                batch_size=2,
                num_replicas=2,
                rank=0,
                shuffle=True,
                drop_last=False,
                seed=seed,
            )
            sampler.set_epoch(epoch)
            return list(sampler)

>       assert collect(17, 3) == collect(17, 3)

E       TypeError: DistributedBatchSampler.__init__() got an unexpected keyword argument 'seed'

test/swe_paddle/test_pr79268_distributed_sampler.py:197
=========================== short test summary info ===========================
FAILED test/swe_paddle/test_pr79268_distributed_sampler.py::test_distributed_batch_sampler_seed_controls_shuffle
1 failed in 1.04s
Base configurable-seed F2P exit code: 1

Base F2P:Public DistributedSampler API

F                                                                        [100%]
================================== FAILURES ===================================
__________ test_distributed_sampler_is_public_and_forwards_arguments __________

    def test_distributed_sampler_is_public_and_forwards_arguments():
        batch_sampler_class = _load_batch_sampler_class()
        namespace = _load_public_data_namespace(batch_sampler_class)

>       distributed_sampler_class = namespace["DistributedSampler"]
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       KeyError: 'DistributedSampler'

test/swe_paddle/test_pr79268_distributed_sampler.py:206: KeyError
=========================== short test summary info ===========================
FAILED test/swe_paddle/test_pr79268_distributed_sampler.py::test_distributed_sampler_is_public_and_forwards_arguments
1 failed in 0.72s
Base public-distributed-sampler F2P exit code: 1

Solution 测试

Solution existing sampler behavior P2P:
1 passed in 0.08s

Solution configurable-seed F2P:
1 passed in 0.14s

Solution public-distributed-sampler F2P:
1 passed in 0.12s

tests/test.sh

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

@paddle-bot

paddle-bot Bot commented Jul 23, 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