psynote123 commited on
Commit
5e02d06
·
verified ·
1 Parent(s): 3af954d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -57,7 +57,7 @@ elastic_mode = "S"
57
 
58
  prompt = "A groovy funk bassline with a tight drum beat"
59
  output_wav_path = "generated_audio_elastic_S.wav"
60
- hf_token = "YOUR_HF_TOKEN" #
61
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
62
 
63
  processor = AutoProcessor.from_pretrained(model_name_hf, token=hf_token)
@@ -65,7 +65,7 @@ processor = AutoProcessor.from_pretrained(model_name_hf, token=hf_token)
65
  model = MusicgenForConditionalGeneration.from_pretrained(
66
  model_name_hf,
67
  token=hf_token,
68
- torch_dtype=torch.float16, # Or float32, matching compilation
69
  mode=elastic_mode,
70
  device=device,
71
  __full_patch=True,
 
57
 
58
  prompt = "A groovy funk bassline with a tight drum beat"
59
  output_wav_path = "generated_audio_elastic_S.wav"
60
+ hf_token = "YOUR_HF_TOKEN"
61
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
62
 
63
  processor = AutoProcessor.from_pretrained(model_name_hf, token=hf_token)
 
65
  model = MusicgenForConditionalGeneration.from_pretrained(
66
  model_name_hf,
67
  token=hf_token,
68
+ torch_dtype=torch.float16,
69
  mode=elastic_mode,
70
  device=device,
71
  __full_patch=True,