ugh
This commit is contained in:
parent
8d068fa3f9
commit
5c732b72ee
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user