Error on numpy availability
I have an error on "Numpy is not available". However I have imported and upgraded. Anyone faced this problem before? How to solve it thx!!
Output exceeds the size limit. Open the full output data in a text editor
RuntimeError Traceback (most recent call last)
2 sequence_to_classify = "one day I will see the world"
3 candidate_labels = ['travel', 'cooking', 'dancing']
----> 4 classifier(sequence_to_classify, candidate_labels,multi_class=True)
ZeroShotClassificationPipeline.call(self, sequences, *args, **kwargs)
179 else:
180 raise ValueError(f"Unable to understand extra arguments {args}")
--> 182 return super().call(sequences, **kwargs)
batch_size, *args, **kwargs)
1072 return self.iterate(inputs, preprocess_params, forward_params, postprocess_params)
1073 else:
-> 1074 return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)
preprocess_params, forward_params, postprocess_params)
1096 model_outputs = self.forward(model_inputs, **forward_params)
1097 all_outputs.append(model_outputs)
-> 1098 outputs = self.postprocess(all_outputs, **postprocess_params)
1099 return outputs
ZeroShotClassificationPipeline.postprocess(self, model_outputs, multi_label)
212 candidate_labels = [outputs["candidate_label"] for outputs in model_outputs]
...
--> 214 logits = np.concatenate([output["logits"].numpy() for output in model_outputs])
215 N = logits.shape[0]
216 n = len(candidate_labels)
RuntimeError: Numpy is not available
Hey @Wendyyyyyyyyyyyyyyyy , please open an issue on transformers with your environment info, the full code you're using and the full error code so that we may try to reproduce. Thank you.
I have the same issue
Same as above @AlvaroMros 🤗