Skip to content

make freq drop invariant to input dtype #13#14

Merged
gfdb merged 1 commit intomainfrom
13-assertionerror-in-frequency_dropout
Mar 9, 2026
Merged

make freq drop invariant to input dtype #13#14
gfdb merged 1 commit intomainfrom
13-assertionerror-in-frequency_dropout

Conversation

@gfdb
Copy link
Owner

@gfdb gfdb commented Mar 9, 2026

An assertion error is was being caused by a training recipe that runs in fp16.

When we clamp the filter at 1e-12 in fp16, it gets casted to 0, causing an assertion error when computing the notch_filter. This PR changes functionality to do the filter construction and convolution in fp32 and then cast back to input dtype to avoid any issues. The overhead in memory is trivial imo, people are training in fp16 or fp8 to save mem on the model side of things anyways.

closes #13

@gfdb gfdb linked an issue Mar 9, 2026 that may be closed by this pull request
@gfdb gfdb merged commit 1e52551 into main Mar 9, 2026
2 checks passed
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.

AssertionError in frequency_dropout

1 participant