Spaces:
Running
on
L40S
Running
on
L40S
root
commited on
Commit
·
4d12c78
1
Parent(s):
044c446
remove token length limit
Browse files- levo_inference.py +0 -3
levo_inference.py
CHANGED
@@ -102,9 +102,6 @@ class LeVoInference(torch.nn.Module):
|
|
102 |
|
103 |
with torch.autocast(device_type="cuda", dtype=torch.float16):
|
104 |
tokens = self.model.generate(**generate_inp, return_tokens=True)
|
105 |
-
|
106 |
-
if tokens.shape[-1] > 3000:
|
107 |
-
tokens = tokens[..., :3000]
|
108 |
|
109 |
with torch.no_grad():
|
110 |
if melody_is_wav:
|
|
|
102 |
|
103 |
with torch.autocast(device_type="cuda", dtype=torch.float16):
|
104 |
tokens = self.model.generate(**generate_inp, return_tokens=True)
|
|
|
|
|
|
|
105 |
|
106 |
with torch.no_grad():
|
107 |
if melody_is_wav:
|