transformers
99516d24 - Reuse `get_placeholder_mask` in MusicFlamingo

Commit
11 hours ago
Reuse `get_placeholder_mask` in MusicFlamingo Override `get_placeholder_mask` with optional `audio_features` (the count is checked in `_build_audio_timestamps`), so `forward` builds the mask once, before encoding, instead of re-implementing the ids/embeds lookup. `get_audio_features` takes it as `special_audio_mask`; `input_ids` still works. Claude-Session: https://claude.ai/code/session_01TfcxJfpzsVS5WVrzqgNV6f
Author
Parents
Loading