Readme
Fine-tuned using https://replicate.com/sakemin/musicgen-fine-tuner
MusicGen fine-tuned on Burt Bacharach's top hits
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run andreasjansson/musicgen-bacharach-vox using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"andreasjansson/musicgen-bacharach-vox:c849ff30a783ed2d8882f414284b23ed68a4415eebc3ad914b9978300d3e4618",
{
input: {
top_k: 250,
top_p: 0,
prompt: "dubstep in the style of burt bacharach",
duration: 8,
temperature: 1,
continuation: false,
output_format: "wav",
continuation_start: 0,
multi_band_diffusion: false,
normalization_strategy: "loudness",
classifier_free_guidance: 3
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run andreasjansson/musicgen-bacharach-vox using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"andreasjansson/musicgen-bacharach-vox:c849ff30a783ed2d8882f414284b23ed68a4415eebc3ad914b9978300d3e4618",
input={
"top_k": 250,
"top_p": 0,
"prompt": "dubstep in the style of burt bacharach",
"duration": 8,
"temperature": 1,
"continuation": False,
"output_format": "wav",
"continuation_start": 0,
"multi_band_diffusion": False,
"normalization_strategy": "loudness",
"classifier_free_guidance": 3
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run andreasjansson/musicgen-bacharach-vox using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "andreasjansson/musicgen-bacharach-vox:c849ff30a783ed2d8882f414284b23ed68a4415eebc3ad914b9978300d3e4618",
"input": {
"top_k": 250,
"top_p": 0,
"prompt": "dubstep in the style of burt bacharach",
"duration": 8,
"temperature": 1,
"continuation": false,
"output_format": "wav",
"continuation_start": 0,
"multi_band_diffusion": false,
"normalization_strategy": "loudness",
"classifier_free_guidance": 3
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
{
"completed_at": "2023-10-16T21:58:25.482652Z",
"created_at": "2023-10-16T21:57:59.901098Z",
"data_removed": false,
"error": null,
"id": "uyi3kabbo2dp557se25lqyb7bi",
"input": {
"top_k": 250,
"top_p": 0,
"prompt": "dubstep in the style of burt bacharach",
"duration": 8,
"temperature": 1,
"continuation": false,
"output_format": "wav",
"continuation_start": 0,
"multi_band_diffusion": false,
"normalization_strategy": "loudness",
"classifier_free_guidance": 3
},
"logs": "Using seed 293439187\n1 / 400\n2 / 400\n3 / 400\n4 / 400\n5 / 400\n6 / 400\n7 / 400\n8 / 400\n9 / 400\n10 / 400\n11 / 400\n12 / 400\n13 / 400\n14 / 400\n15 / 400\n16 / 400\n17 / 400\n18 / 400\n19 / 400\n20 / 400\n21 / 400\n22 / 400\n23 / 400\n24 / 400\n25 / 400\n26 / 400\n27 / 400\n28 / 400\n29 / 400\n30 / 400\n31 / 400\n32 / 400\n33 / 400\n34 / 400\n35 / 400\n36 / 400\n37 / 400\n38 / 400\n39 / 400\n40 / 400\n41 / 400\n42 / 400\n43 / 400\n44 / 400\n45 / 400\n46 / 400\n47 / 400\n48 / 400\n49 / 400\n50 / 400\n51 / 400\n52 / 400\n53 / 400\n54 / 400\n55 / 400\n56 / 400\n57 / 400\n58 / 400\n59 / 400\n60 / 400\n61 / 400\n62 / 400\n63 / 400\n64 / 400\n65 / 400\n66 / 400\n67 / 400\n68 / 400\n69 / 400\n70 / 400\n71 / 400\n72 / 400\n73 / 400\n74 / 400\n75 / 400\n76 / 400\n77 / 400\n78 / 400\n79 / 400\n80 / 400\n81 / 400\n82 / 400\n83 / 400\n84 / 400\n85 / 400\n86 / 400\n87 / 400\n88 / 400\n89 / 400\n90 / 400\n91 / 400\n92 / 400\n93 / 400\n94 / 400\n95 / 400\n96 / 400\n97 / 400\n98 / 400\n99 / 400\n100 / 400\n101 / 400\n102 / 400\n103 / 400\n104 / 400\n105 / 400\n106 / 400\n107 / 400\n108 / 400\n109 / 400\n110 / 400\n111 / 400\n112 / 400\n113 / 400\n114 / 400\n115 / 400\n116 / 400\n117 / 400\n118 / 400\n119 / 400\n120 / 400\n121 / 400\n122 / 400\n123 / 400\n124 / 400\n125 / 400\n126 / 400\n127 / 400\n128 / 400\n129 / 400\n130 / 400\n131 / 400\n132 / 400\n133 / 400\n134 / 400\n135 / 400\n136 / 400\n137 / 400\n138 / 400\n139 / 400\n140 / 400\n141 / 400\n142 / 400\n143 / 400\n144 / 400\n145 / 400\n146 / 400\n147 / 400\n148 / 400\n149 / 400\n150 / 400\n151 / 400\n152 / 400\n153 / 400\n154 / 400\n155 / 400\n156 / 400\n157 / 400\n158 / 400\n159 / 400\n160 / 400\n161 / 400\n162 / 400\n163 / 400\n164 / 400\n165 / 400\n166 / 400\n167 / 400\n168 / 400\n169 / 400\n170 / 400\n171 / 400\n172 / 400\n173 / 400\n174 / 400\n175 / 400\n176 / 400\n177 / 400\n178 / 400\n179 / 400\n180 / 400\n181 / 400\n182 / 400\n183 / 400\n184 / 400\n185 / 400\n186 / 400\n187 / 400\n188 / 400\n189 / 400\n190 / 400\n191 / 400\n192 / 400\n193 / 400\n194 / 400\n195 / 400\n196 / 400\n197 / 400\n198 / 400\n199 / 400\n200 / 400\n201 / 400\n202 / 400\n203 / 400\n204 / 400\n205 / 400\n206 / 400\n207 / 400\n208 / 400\n209 / 400\n210 / 400\n211 / 400\n212 / 400\n213 / 400\n214 / 400\n215 / 400\n216 / 400\n217 / 400\n218 / 400\n219 / 400\n220 / 400\n221 / 400\n222 / 400\n223 / 400\n224 / 400\n225 / 400\n226 / 400\n227 / 400\n228 / 400\n229 / 400\n230 / 400\n231 / 400\n232 / 400\n233 / 400\n234 / 400\n235 / 400\n236 / 400\n237 / 400\n238 / 400\n239 / 400\n240 / 400\n241 / 400\n242 / 400\n243 / 400\n244 / 400\n245 / 400\n246 / 400\n247 / 400\n248 / 400\n249 / 400\n250 / 400\n251 / 400\n252 / 400\n253 / 400\n254 / 400\n255 / 400\n256 / 400\n257 / 400\n258 / 400\n259 / 400\n260 / 400\n261 / 400\n262 / 400\n263 / 400\n264 / 400\n265 / 400\n266 / 400\n267 / 400\n268 / 400\n269 / 400\n270 / 400\n271 / 400\n272 / 400\n273 / 400\n274 / 400\n275 / 400\n276 / 400\n277 / 400\n278 / 400\n279 / 400\n280 / 400\n281 / 400\n282 / 400\n283 / 400\n284 / 400\n285 / 400\n286 / 400\n287 / 400\n288 / 400\n289 / 400\n290 / 400\n291 / 400\n292 / 400\n293 / 400\n294 / 400\n295 / 400\n296 / 400\n297 / 400\n298 / 400\n299 / 400\n300 / 400\n301 / 400\n302 / 400\n303 / 400\n304 / 400\n305 / 400\n306 / 400\n307 / 400\n308 / 400\n309 / 400\n310 / 400\n311 / 400\n312 / 400\n313 / 400\n314 / 400\n315 / 400\n316 / 400\n317 / 400\n318 / 400\n319 / 400\n320 / 400\n321 / 400\n322 / 400\n323 / 400\n324 / 400\n325 / 400\n326 / 400\n327 / 400\n328 / 400\n329 / 400\n330 / 400\n331 / 400\n332 / 400\n333 / 400\n334 / 400\n335 / 400\n336 / 400\n337 / 400\n338 / 400\n339 / 400\n340 / 400\n341 / 400\n342 / 400\n343 / 400\n344 / 400\n345 / 400\n346 / 400\n347 / 400\n348 / 400\n349 / 400\n350 / 400\n351 / 400\n352 / 400\n353 / 400\n354 / 400\n355 / 400\n356 / 400\n357 / 400\n358 / 400\n359 / 400\n360 / 400\n361 / 400\n362 / 400\n363 / 400\n364 / 400\n365 / 400\n366 / 400\n367 / 400\n368 / 400\n369 / 400\n370 / 400\n371 / 400\n372 / 400\n373 / 400\n374 / 400\n375 / 400\n376 / 400\n377 / 400\n378 / 400\n379 / 400\n380 / 400\n381 / 400\n382 / 400\n383 / 400\n384 / 400\n385 / 400\n386 / 400\n387 / 400\n388 / 400\n389 / 400\n390 / 400\n391 / 400\n392 / 400\n393 / 400\n394 / 400\n395 / 400\n396 / 400\n397 / 400\n398 / 400\n399 / 400\n400 / 400\n401 / 400\n402 / 400\n403 / 400\nCLIPPING out happening with proba (a bit of clipping is okay): 0.000675781222525984 maximum scale: 1.2913539409637451",
"metrics": {
"predict_time": 25.38508,
"total_time": 25.581554
},
"output": "https://pbxt.replicate.delivery/Eg8bBWOwWnJbHZ16rAdk5TaEmeoVBRZ42vERpbBhrJHAIb3IA/out.wav",
"started_at": "2023-10-16T21:58:00.097572Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/uyi3kabbo2dp557se25lqyb7bi",
"cancel": "https://api.replicate.com/v1/predictions/uyi3kabbo2dp557se25lqyb7bi/cancel"
},
"version": "ad48aa007536f32efd70356f6aec12b46588bf62f91ec2b3ece7bbdb8523910d"
}
Using seed 293439187
1 / 400
2 / 400
3 / 400
4 / 400
5 / 400
6 / 400
7 / 400
8 / 400
9 / 400
10 / 400
11 / 400
12 / 400
13 / 400
14 / 400
15 / 400
16 / 400
17 / 400
18 / 400
19 / 400
20 / 400
21 / 400
22 / 400
23 / 400
24 / 400
25 / 400
26 / 400
27 / 400
28 / 400
29 / 400
30 / 400
31 / 400
32 / 400
33 / 400
34 / 400
35 / 400
36 / 400
37 / 400
38 / 400
39 / 400
40 / 400
41 / 400
42 / 400
43 / 400
44 / 400
45 / 400
46 / 400
47 / 400
48 / 400
49 / 400
50 / 400
51 / 400
52 / 400
53 / 400
54 / 400
55 / 400
56 / 400
57 / 400
58 / 400
59 / 400
60 / 400
61 / 400
62 / 400
63 / 400
64 / 400
65 / 400
66 / 400
67 / 400
68 / 400
69 / 400
70 / 400
71 / 400
72 / 400
73 / 400
74 / 400
75 / 400
76 / 400
77 / 400
78 / 400
79 / 400
80 / 400
81 / 400
82 / 400
83 / 400
84 / 400
85 / 400
86 / 400
87 / 400
88 / 400
89 / 400
90 / 400
91 / 400
92 / 400
93 / 400
94 / 400
95 / 400
96 / 400
97 / 400
98 / 400
99 / 400
100 / 400
101 / 400
102 / 400
103 / 400
104 / 400
105 / 400
106 / 400
107 / 400
108 / 400
109 / 400
110 / 400
111 / 400
112 / 400
113 / 400
114 / 400
115 / 400
116 / 400
117 / 400
118 / 400
119 / 400
120 / 400
121 / 400
122 / 400
123 / 400
124 / 400
125 / 400
126 / 400
127 / 400
128 / 400
129 / 400
130 / 400
131 / 400
132 / 400
133 / 400
134 / 400
135 / 400
136 / 400
137 / 400
138 / 400
139 / 400
140 / 400
141 / 400
142 / 400
143 / 400
144 / 400
145 / 400
146 / 400
147 / 400
148 / 400
149 / 400
150 / 400
151 / 400
152 / 400
153 / 400
154 / 400
155 / 400
156 / 400
157 / 400
158 / 400
159 / 400
160 / 400
161 / 400
162 / 400
163 / 400
164 / 400
165 / 400
166 / 400
167 / 400
168 / 400
169 / 400
170 / 400
171 / 400
172 / 400
173 / 400
174 / 400
175 / 400
176 / 400
177 / 400
178 / 400
179 / 400
180 / 400
181 / 400
182 / 400
183 / 400
184 / 400
185 / 400
186 / 400
187 / 400
188 / 400
189 / 400
190 / 400
191 / 400
192 / 400
193 / 400
194 / 400
195 / 400
196 / 400
197 / 400
198 / 400
199 / 400
200 / 400
201 / 400
202 / 400
203 / 400
204 / 400
205 / 400
206 / 400
207 / 400
208 / 400
209 / 400
210 / 400
211 / 400
212 / 400
213 / 400
214 / 400
215 / 400
216 / 400
217 / 400
218 / 400
219 / 400
220 / 400
221 / 400
222 / 400
223 / 400
224 / 400
225 / 400
226 / 400
227 / 400
228 / 400
229 / 400
230 / 400
231 / 400
232 / 400
233 / 400
234 / 400
235 / 400
236 / 400
237 / 400
238 / 400
239 / 400
240 / 400
241 / 400
242 / 400
243 / 400
244 / 400
245 / 400
246 / 400
247 / 400
248 / 400
249 / 400
250 / 400
251 / 400
252 / 400
253 / 400
254 / 400
255 / 400
256 / 400
257 / 400
258 / 400
259 / 400
260 / 400
261 / 400
262 / 400
263 / 400
264 / 400
265 / 400
266 / 400
267 / 400
268 / 400
269 / 400
270 / 400
271 / 400
272 / 400
273 / 400
274 / 400
275 / 400
276 / 400
277 / 400
278 / 400
279 / 400
280 / 400
281 / 400
282 / 400
283 / 400
284 / 400
285 / 400
286 / 400
287 / 400
288 / 400
289 / 400
290 / 400
291 / 400
292 / 400
293 / 400
294 / 400
295 / 400
296 / 400
297 / 400
298 / 400
299 / 400
300 / 400
301 / 400
302 / 400
303 / 400
304 / 400
305 / 400
306 / 400
307 / 400
308 / 400
309 / 400
310 / 400
311 / 400
312 / 400
313 / 400
314 / 400
315 / 400
316 / 400
317 / 400
318 / 400
319 / 400
320 / 400
321 / 400
322 / 400
323 / 400
324 / 400
325 / 400
326 / 400
327 / 400
328 / 400
329 / 400
330 / 400
331 / 400
332 / 400
333 / 400
334 / 400
335 / 400
336 / 400
337 / 400
338 / 400
339 / 400
340 / 400
341 / 400
342 / 400
343 / 400
344 / 400
345 / 400
346 / 400
347 / 400
348 / 400
349 / 400
350 / 400
351 / 400
352 / 400
353 / 400
354 / 400
355 / 400
356 / 400
357 / 400
358 / 400
359 / 400
360 / 400
361 / 400
362 / 400
363 / 400
364 / 400
365 / 400
366 / 400
367 / 400
368 / 400
369 / 400
370 / 400
371 / 400
372 / 400
373 / 400
374 / 400
375 / 400
376 / 400
377 / 400
378 / 400
379 / 400
380 / 400
381 / 400
382 / 400
383 / 400
384 / 400
385 / 400
386 / 400
387 / 400
388 / 400
389 / 400
390 / 400
391 / 400
392 / 400
393 / 400
394 / 400
395 / 400
396 / 400
397 / 400
398 / 400
399 / 400
400 / 400
401 / 400
402 / 400
403 / 400
CLIPPING out happening with proba (a bit of clipping is okay): 0.000675781222525984 maximum scale: 1.2913539409637451
This output was created using a different version of the model, andreasjansson/musicgen-bacharach-vox:ad48aa00.
This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.
Fine-tuned using https://replicate.com/sakemin/musicgen-fine-tuner
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input
Using seed 293439187
1 / 400
2 / 400
3 / 400
4 / 400
5 / 400
6 / 400
7 / 400
8 / 400
9 / 400
10 / 400
11 / 400
12 / 400
13 / 400
14 / 400
15 / 400
16 / 400
17 / 400
18 / 400
19 / 400
20 / 400
21 / 400
22 / 400
23 / 400
24 / 400
25 / 400
26 / 400
27 / 400
28 / 400
29 / 400
30 / 400
31 / 400
32 / 400
33 / 400
34 / 400
35 / 400
36 / 400
37 / 400
38 / 400
39 / 400
40 / 400
41 / 400
42 / 400
43 / 400
44 / 400
45 / 400
46 / 400
47 / 400
48 / 400
49 / 400
50 / 400
51 / 400
52 / 400
53 / 400
54 / 400
55 / 400
56 / 400
57 / 400
58 / 400
59 / 400
60 / 400
61 / 400
62 / 400
63 / 400
64 / 400
65 / 400
66 / 400
67 / 400
68 / 400
69 / 400
70 / 400
71 / 400
72 / 400
73 / 400
74 / 400
75 / 400
76 / 400
77 / 400
78 / 400
79 / 400
80 / 400
81 / 400
82 / 400
83 / 400
84 / 400
85 / 400
86 / 400
87 / 400
88 / 400
89 / 400
90 / 400
91 / 400
92 / 400
93 / 400
94 / 400
95 / 400
96 / 400
97 / 400
98 / 400
99 / 400
100 / 400
101 / 400
102 / 400
103 / 400
104 / 400
105 / 400
106 / 400
107 / 400
108 / 400
109 / 400
110 / 400
111 / 400
112 / 400
113 / 400
114 / 400
115 / 400
116 / 400
117 / 400
118 / 400
119 / 400
120 / 400
121 / 400
122 / 400
123 / 400
124 / 400
125 / 400
126 / 400
127 / 400
128 / 400
129 / 400
130 / 400
131 / 400
132 / 400
133 / 400
134 / 400
135 / 400
136 / 400
137 / 400
138 / 400
139 / 400
140 / 400
141 / 400
142 / 400
143 / 400
144 / 400
145 / 400
146 / 400
147 / 400
148 / 400
149 / 400
150 / 400
151 / 400
152 / 400
153 / 400
154 / 400
155 / 400
156 / 400
157 / 400
158 / 400
159 / 400
160 / 400
161 / 400
162 / 400
163 / 400
164 / 400
165 / 400
166 / 400
167 / 400
168 / 400
169 / 400
170 / 400
171 / 400
172 / 400
173 / 400
174 / 400
175 / 400
176 / 400
177 / 400
178 / 400
179 / 400
180 / 400
181 / 400
182 / 400
183 / 400
184 / 400
185 / 400
186 / 400
187 / 400
188 / 400
189 / 400
190 / 400
191 / 400
192 / 400
193 / 400
194 / 400
195 / 400
196 / 400
197 / 400
198 / 400
199 / 400
200 / 400
201 / 400
202 / 400
203 / 400
204 / 400
205 / 400
206 / 400
207 / 400
208 / 400
209 / 400
210 / 400
211 / 400
212 / 400
213 / 400
214 / 400
215 / 400
216 / 400
217 / 400
218 / 400
219 / 400
220 / 400
221 / 400
222 / 400
223 / 400
224 / 400
225 / 400
226 / 400
227 / 400
228 / 400
229 / 400
230 / 400
231 / 400
232 / 400
233 / 400
234 / 400
235 / 400
236 / 400
237 / 400
238 / 400
239 / 400
240 / 400
241 / 400
242 / 400
243 / 400
244 / 400
245 / 400
246 / 400
247 / 400
248 / 400
249 / 400
250 / 400
251 / 400
252 / 400
253 / 400
254 / 400
255 / 400
256 / 400
257 / 400
258 / 400
259 / 400
260 / 400
261 / 400
262 / 400
263 / 400
264 / 400
265 / 400
266 / 400
267 / 400
268 / 400
269 / 400
270 / 400
271 / 400
272 / 400
273 / 400
274 / 400
275 / 400
276 / 400
277 / 400
278 / 400
279 / 400
280 / 400
281 / 400
282 / 400
283 / 400
284 / 400
285 / 400
286 / 400
287 / 400
288 / 400
289 / 400
290 / 400
291 / 400
292 / 400
293 / 400
294 / 400
295 / 400
296 / 400
297 / 400
298 / 400
299 / 400
300 / 400
301 / 400
302 / 400
303 / 400
304 / 400
305 / 400
306 / 400
307 / 400
308 / 400
309 / 400
310 / 400
311 / 400
312 / 400
313 / 400
314 / 400
315 / 400
316 / 400
317 / 400
318 / 400
319 / 400
320 / 400
321 / 400
322 / 400
323 / 400
324 / 400
325 / 400
326 / 400
327 / 400
328 / 400
329 / 400
330 / 400
331 / 400
332 / 400
333 / 400
334 / 400
335 / 400
336 / 400
337 / 400
338 / 400
339 / 400
340 / 400
341 / 400
342 / 400
343 / 400
344 / 400
345 / 400
346 / 400
347 / 400
348 / 400
349 / 400
350 / 400
351 / 400
352 / 400
353 / 400
354 / 400
355 / 400
356 / 400
357 / 400
358 / 400
359 / 400
360 / 400
361 / 400
362 / 400
363 / 400
364 / 400
365 / 400
366 / 400
367 / 400
368 / 400
369 / 400
370 / 400
371 / 400
372 / 400
373 / 400
374 / 400
375 / 400
376 / 400
377 / 400
378 / 400
379 / 400
380 / 400
381 / 400
382 / 400
383 / 400
384 / 400
385 / 400
386 / 400
387 / 400
388 / 400
389 / 400
390 / 400
391 / 400
392 / 400
393 / 400
394 / 400
395 / 400
396 / 400
397 / 400
398 / 400
399 / 400
400 / 400
401 / 400
402 / 400
403 / 400
CLIPPING out happening with proba (a bit of clipping is okay): 0.000675781222525984 maximum scale: 1.2913539409637451