Spaces:
Runtime error
Runtime error
Commit
Β·
f8681d6
1
Parent(s):
3b03b8f
Update llama/m2ugen.py
Browse files- llama/m2ugen.py +1 -1
llama/m2ugen.py
CHANGED
|
@@ -621,7 +621,7 @@ class M2UGen(nn.Module):
|
|
| 621 |
return audio_outputs
|
| 622 |
else:
|
| 623 |
print("Generating Music...")
|
| 624 |
-
gen_emb = 0.1 * self.output_projector(embeddings.float().to("cuda"), gen_prefix_embs) / 10
|
| 625 |
gen_inputs = self.generation_processor(text=music_caption, padding='max_length',
|
| 626 |
max_length=128, truncation=True, return_tensors="pt").to("cuda:1")
|
| 627 |
#gen_emb = self.generation_model.generate(**gen_inputs, guidance_scale=3.5, encoder_only=True)
|
|
|
|
| 621 |
return audio_outputs
|
| 622 |
else:
|
| 623 |
print("Generating Music...")
|
| 624 |
+
gen_emb = 0.1 * self.output_projector(embeddings.float().to("cuda:1"), gen_prefix_embs) / 10
|
| 625 |
gen_inputs = self.generation_processor(text=music_caption, padding='max_length',
|
| 626 |
max_length=128, truncation=True, return_tensors="pt").to("cuda:1")
|
| 627 |
#gen_emb = self.generation_model.generate(**gen_inputs, guidance_scale=3.5, encoder_only=True)
|