not able to use with setfit

#2
by priyank-m - opened

hi, I am not able to train the model with setfit.
getting the error: RuntimeError: The size of tensor a (1431) must match the size of tensor b (512) at non-singleton dimension 1
some issue with the position embeddings it seems

ok so I am able to make it work by loading the with AutoModel then making the change
model.config.max_position_embeddings = 4096
and then save the model
then load the model again with SetFitModel.from_pretrained
(might be a bit crude approach but looks like it is training)

priyank-m changed discussion status to closed

Sign up or log in to comment