Skip to content

Fix latent bugs surfaced by ty migration#646

Merged
kmontemayor2-sc merged 4 commits into
mainfrom
kmontemayor/ty_fix_real_bugs
May 20, 2026
Merged

Fix latent bugs surfaced by ty migration#646
kmontemayor2-sc merged 4 commits into
mainfrom
kmontemayor/ty_fix_real_bugs

Conversation

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator

Resolves 4 # ty: ignore comments from PR #585 by fixing the underlying logic (not suppressing). Includes None-division risk in loss.py and masked None flow in optimizer code paths.

kmonte and others added 2 commits May 18, 2026 23:10
Resolves 4 `# ty: ignore` comments from PR #585 by fixing the underlying logic (not suppressing). Includes None-division risk in loss.py and masked None flow in optimizer code paths.

See: docs/plans/20260518-ty-ignore-resolution-meta.md
The repo's default unit-test pattern is *_test.py (Makefile:29,
tests/unit/main.py:8); the original name test_torchrec_utils.py uses
the prefix form, so the new regression coverage for apply_sparse_optimizer
would be silently skipped by make unit_test_py / CI.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator Author

/all_test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

GiGL Automation

@ 17:55:04UTC : 🔄 E2E Test started.

@ 19:24:40UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

GiGL Automation

@ 17:55:05UTC : 🔄 Scala Unit Test started.

@ 18:04:08UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

GiGL Automation

@ 17:55:06UTC : 🔄 C++ Unit Test started.

@ 17:57:02UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

GiGL Automation

@ 17:55:07UTC : 🔄 Integration Test started.

@ 19:19:34UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

GiGL Automation

@ 17:55:07UTC : 🔄 Lint Test started.

@ 18:04:07UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

GiGL Automation

@ 17:55:07UTC : 🔄 Python Unit Test started.

@ 18:53:11UTC : ✅ Workflow completed successfully.

Comment thread gigl/src/common/models/layers/loss.py
Comment thread tests/unit/experimental/torchrec_utils_test.py Outdated
Comment thread tests/unit/src/common/models/layers/legacy_loss_test.py Outdated
- Consolidate SoftmaxLoss regression coverage into the existing
  loss_test.py (one assertion on the default temperature).
- Delete legacy_loss_test.py (was a misnamed parallel file created
  to avoid clobbering the existing loss_test.py).
- Trim torchrec_utils_test.py from 4 tests to 1 — the actual
  regression path (defaults flowing through to RowWiseAdagrad).
- Drop test-side narrative docstrings that re-described what the
  fix did rather than the contract under test.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kmontemayor2-sc kmontemayor2-sc marked this pull request as ready for review May 20, 2026 19:48
@kmontemayor2-sc kmontemayor2-sc requested a review from nshah-sc as a code owner May 20, 2026 19:48
@kmontemayor2-sc kmontemayor2-sc added this pull request to the merge queue May 20, 2026
Merged via the queue into main with commit bcc183a May 20, 2026
7 checks passed
@kmontemayor2-sc kmontemayor2-sc deleted the kmontemayor/ty_fix_real_bugs branch May 20, 2026 21:11
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.

4 participants