New version

#69
by EranML - opened

hello, I recieved the following issue:
when I trying to do fine-tuning.

TypeError: conv1d() received an invalid combination of arguments - got (numpy.ndarray, Parameter, Parameter, tuple, tuple, tuple, int), but expected one of:

  • (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, tuple of ints padding, tuple of ints dilation, int groups)
    didn't match because some of the arguments have invalid types: (!numpy.ndarray!, !Parameter!, !Parameter!, !tuple!, !tuple!, !tuple!, int)
  • (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, str padding, tuple of ints dilation, int groups)
    didn't match because some of the arguments have invalid types: (!numpy.ndarray!, !Parameter!, !Parameter!, !tuple!, !tuple!, !tuple!, int)

when last month it didnt was.
what should I do?

Hey @EranML - it looks like you're forwarding numpy arrays to the model rather than torch tensors. Could you double check that in your data collator you've set return_tensors="pt"? Feel free to share a reproducible code snippet if you'd like me to have a deeper look! As far as I'm aware there have been no changes to the Whisper modelling code, so everything should work as it did before!

EranML changed discussion status to closed

thanks so much

Sign up or log in to comment