This commit is contained in:
mrq 2024-06-08 20:34:00 -05:00
parent 8d068fa3f9
commit 5c732b72ee

View File

@ -231,7 +231,7 @@ class Base(nn.Module):
@property
def stop_token(self):
if not self.causal:
if not self.causal or "len" not in self.capabilities:
raise ValueError("Not using stop token!")
return self.n_audio_tokens