Skip to content

feat: add sequential MNIST, Penn Treebank, and TIMIT benchmarks - #54

Open
MartinuzziFrancesco wants to merge 3 commits into
mainfrom
fm/bm
Open

feat: add sequential MNIST, Penn Treebank, and TIMIT benchmarks#54
MartinuzziFrancesco wants to merge 3 commits into
mainfrom
fm/bm

Conversation

@MartinuzziFrancesco

Copy link
Copy Markdown
Owner

Rework adding_problem and copy_memory to match their canonical paper definitions (two-half marker sampling, T+20 protocol) and add reproducibility/validation options shared across all benchmark generators.

Rework adding_problem and copy_memory to match their canonical paper
definitions (two-half marker sampling, T+20 protocol) and add
reproducibility/validation options shared across all benchmark
generators.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V4c1s7psjFQPEbfbLDXrDA
@codecov-commenter

codecov-commenter commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.21053% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.10%. Comparing base (a561646) to head (c06a30f).

Files with missing lines Patch % Lines
torchrecurrent/benchmarks/penn_treebank.py 89.39% 7 Missing ⚠️
torchrecurrent/benchmarks/copymemory.py 77.77% 6 Missing ⚠️
torchrecurrent/benchmarks/timit.py 90.90% 5 Missing ⚠️
torchrecurrent/benchmarks/adding.py 91.66% 2 Missing ⚠️
torchrecurrent/benchmarks/sequential_cifar10.py 96.66% 1 Missing ⚠️
torchrecurrent/benchmarks/sequential_mnist.py 96.96% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   95.24%   95.10%   -0.15%     
==========================================
  Files          34       42       +8     
  Lines        2187     2573     +386     
==========================================
+ Hits         2083     2447     +364     
- Misses        104      126      +22     

☔ View full report in Codecov by Harness.
📢 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.

MartinuzziFrancesco and others added 2 commits August 16, 2026 21:43
Same pattern as sequential_mnist: caller supplies CIFAR-10 tensors,
adapter flattens to a 1024-step, 3-channel pixel sequence with
optional fixed permutation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
adding_problem/copy_memory: DataLoader shuffling always runs its
sampler on CPU, so a non-CPU generator used for data generation can no
longer be forwarded to the loader (it now falls back to its own
seeding instead of erroring). sequential_mnist/sequential_cifar10:
correct docstring overclaims about paper-exact pixel scan direction
and a bogus IndRNN citation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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