Views
No views yet
<STYLE>
roots reggae, warm analog dub production, laid-back one-drop drum groove, deep round bassline, skanking guitar upstrokes, organ bubble, spacious mix with tape echo and spring reverb, soulful male lead vocal, mid-tempo
<LYRICS>
[verse]
Morning sun a rise pon di mountain top
River run easy and di worries stop
We carry good vibes from di country road
Every likkle burden turn a lighter load
[chorus]
Lift up yuh heart now, sing it loud and clear
One love a di message and di roots right here
Drum and di bass dem a guide di way
Sweet reggae music till di break of day1.00.040MiniMaxH3Scheduler42256no_change1import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'MiniMaxAI/MiniMax-H3'
5adapter_id = 'bghira/minimaxh3-suno-reggae-rank128'
6pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "<STYLE>
10roots reggae, warm analog dub production, laid-back one-drop drum groove, deep round bassline, skanking guitar upstrokes, organ bubble, spacious mix with tape echo and spring reverb, soulful male lead vocal, mid-tempo
11
12<LYRICS>
13[verse]
14Morning sun a rise pon di mountain top
15River run easy and di worries stop
16We carry good vibes from di country road
17Every likkle burden turn a lighter load
18
19[chorus]
20Lift up yuh heart now, sing it loud and clear
21One love a di message and di roots right here
22Drum and di bass dem a guide di way
23Sweet reggae music till di break of day"
24negative_prompt = ''
25
26## Optional: quantise the model to save on vram.
27## Note: The model was not quantised during training, so it is not necessary to quantise it during inference time.
28#from optimum.quanto import quantize, freeze, qint8
29#quantize(pipeline.transformer, weights=qint8)
30#freeze(pipeline.transformer)
31
32pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu') # the pipeline is already in its target precision level
33model_output = pipeline(
34 prompt=prompt,
35 negative_prompt=negative_prompt,
36 num_inference_steps=40,
37 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
38 width=256,
39 height=256,
40 guidance_scale=1.0,
41).images[0]
42
43model_output.save("output.png", format="PNG")
44