This commit is contained in:
mrq 2024-06-09 01:43:44 -05:00
parent 5c732b72ee
commit 80f9530840

View File

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