Skip to content

fix: remove sdr_as_percent kwarg from compute_syndrome_density() call#30

Merged
ivanbasov merged 1 commit into
NVIDIA:mainfrom
ivanbasov:fix-sdr-as-percent-kwarg
Mar 25, 2026
Merged

fix: remove sdr_as_percent kwarg from compute_syndrome_density() call#30
ivanbasov merged 1 commit into
NVIDIA:mainfrom
ivanbasov:fix-sdr-as-percent-kwarg

Conversation

@ivanbasov
Copy link
Copy Markdown
Member

Problem

The orientation-inference long-running CI job (run 23522886720) failed after a full training epoch with:

TypeError: compute_syndrome_density() got an unexpected keyword argument 'sdr_as_percent'

Root cause

train.py passes sdr_as_percent=sdr_as_percent to compute_syndrome_density(), but that function's signature is:

def compute_syndrome_density(model, device, dist, cfg, generator=None, rank=0):

sdr_as_percent is only used after the call returns, for display formatting of the SDR unit ("%" vs "x"). It has no role inside compute_syndrome_density().

Fix

Remove the stray sdr_as_percent=sdr_as_percent keyword argument from the call site in train.py (one line deleted).

Test plan

  • Long-running orientation-inference CI job passes

🤖 Generated with Claude Code

compute_syndrome_density() does not accept sdr_as_percent — the flag is
only used downstream in train.py for display formatting (the SDR unit
shown as "%" vs "x"). Passing it caused a TypeError that aborted the
orientation-inference long-running CI job after a full training epoch.

Fixes: TypeError: compute_syndrome_density() got an unexpected keyword
argument 'sdr_as_percent'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ivan Basov <ibasov@nvidia.com>
@ivanbasov ivanbasov requested review from bmhowe23 and kvmto March 25, 2026 15:39
Copy link
Copy Markdown
Collaborator

@kvmto kvmto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ivanbasov ivanbasov merged commit 12895ce into NVIDIA:main Mar 25, 2026
12 checks passed
@ivanbasov ivanbasov deleted the fix-sdr-as-percent-kwarg branch March 25, 2026 16:02
ivanbasov added a commit that referenced this pull request Apr 10, 2026
…#30)

compute_syndrome_density() does not accept sdr_as_percent — the flag is
only used downstream in train.py for display formatting (the SDR unit
shown as "%" vs "x"). Passing it caused a TypeError that aborted the
orientation-inference long-running CI job after a full training epoch.

Fixes: TypeError: compute_syndrome_density() got an unexpected keyword
argument 'sdr_as_percent'

Signed-off-by: Ivan Basov <ibasov@nvidia.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
ivanbasov added a commit that referenced this pull request Apr 10, 2026
…#30)

compute_syndrome_density() does not accept sdr_as_percent — the flag is
only used downstream in train.py for display formatting (the SDR unit
shown as "%" vs "x"). Passing it caused a TypeError that aborted the
orientation-inference long-running CI job after a full training epoch.

Fixes: TypeError: compute_syndrome_density() got an unexpected keyword
argument 'sdr_as_percent'

Signed-off-by: Ivan Basov <ibasov@nvidia.com>
Co-authored-by: Claude Sonnet 4.6 <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