Closed IntelliNik closed 5 months ago
hey, thanks for the suggestion :) i do have some concerns about using generate this way. specifically, _sample_next_token
assumes there are null conditions in condition_tensor
for classifier-free-guidance. which means that in this case, generate
assumes that condition_tensors
already contain null conditions, and if not, then the code will probably crash due to dim mismatch during the forward pass (correct me if i'm wrong).
if you have an easy way to validate the existence of null conditions, let me know, otherwise i think this pr might cause other users to crash without a proper explanation, so i tend to reject at the moment. thanks again!
Hi, first of all thank you for your amazing work here. I really enjoy working with MusicGen and the other tools of audiocraft!
I noticed an inconsistency between the docstring and the method signature of
lm.generate()
. Theconditions
attribute wasn't mentioned in the docstring, butcondition_tensors
was. As I would like to use the option to provide preprocessedcondition_tensors
to the generation method, I've added the attribute to the given method, similarly tolm.forward()
. Therefore I'd like to ask wheater it is possible to include this method parameter into the method.Kind Regards Niklas