Skip to content

Issue #65 load weights always on cpu and remove unused parameters - #66

Merged
ChrisNick92 merged 3 commits into
mainfrom
65-inference-methods-on-backbone-class-for-extracting-embeddings
May 4, 2026
Merged

Issue #65 load weights always on cpu and remove unused parameters#66
ChrisNick92 merged 3 commits into
mainfrom
65-inference-methods-on-backbone-class-for-extracting-embeddings

Conversation

@ChrisNick92

Copy link
Copy Markdown
Collaborator

Checkpoint Loading Improvements

  • Safe checkpoint loading: both Backbone.from_checkpoint and AudioClassifier.from_checkpoint now use map_location="cpu" and weights_only=True. Weights always deserialize to CPU regardless of the device they were saved on, letting the caller decide where to move the model. weights_only=True prevents arbitrary code execution during unpickling.
  • Removed unused padding_mask argument from BackboneConstructor.forward and forward_with_pooling.
  • Bumped version v0.4.4 → v0.4.5.

@ChrisNick92 ChrisNick92 linked an issue May 4, 2026 that may be closed by this pull request
@ChrisNick92
ChrisNick92 merged commit 77af666 into main May 4, 2026
9 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.

inference methods on backbone class for extracting embeddings

1 participant