"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "f4014e75db0190792b3feeccfc5dc5b5f9f0ce7b"
Unverified Commit 6a314ea7 authored by Blake Wyatt's avatar Blake Wyatt Committed by GitHub
Browse files

[DOCS] MusicGen Docs Update (#25510)

* docs: note token limitations for MusicGen

* docs: note token limitations for MusicGen

* docs: fix token count with token limitations for MusicGen
parent 182b8374
...@@ -53,6 +53,10 @@ better results than greedy, thus we encourage sampling mode to be used where pos ...@@ -53,6 +53,10 @@ better results than greedy, thus we encourage sampling mode to be used where pos
and can be explicitly specified by setting `do_sample=True` in the call to [`MusicgenForConditionalGeneration.generate`], and can be explicitly specified by setting `do_sample=True` in the call to [`MusicgenForConditionalGeneration.generate`],
or by overriding the model's generation config (see below). or by overriding the model's generation config (see below).
Generation is limited by the sinusoidal positional embeddings to 30 second inputs. Meaning, MusicGen cannot generate more
than 30 seconds of audio (1503 tokens), and input audio passed by Audio-Prompted Generation contributes to this limit so,
given an input of 20 seconds of audio, MusicGen cannot generate more than 10 seconds of additional audio.
### Unconditional Generation ### Unconditional Generation
The inputs for unconditional (or 'null') generation can be obtained through the method The inputs for unconditional (or 'null') generation can be obtained through the method
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment