Spaces:
Running
on
L40S
Running
on
L40S
added elastic model
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def load_model():
|
|
55 |
model = MusicgenForConditionalGeneration.from_pretrained(
|
56 |
"facebook/musicgen-large",
|
57 |
torch_dtype=torch.float16,
|
58 |
-
device=
|
59 |
mode="S",
|
60 |
__paged=True,
|
61 |
)
|
|
|
55 |
model = MusicgenForConditionalGeneration.from_pretrained(
|
56 |
"facebook/musicgen-large",
|
57 |
torch_dtype=torch.float16,
|
58 |
+
device="cuda",
|
59 |
mode="S",
|
60 |
__paged=True,
|
61 |
)
|