Open abdelrahmaan opened 2 years ago
Hi @abdelrahmaan
Please provide the full error.
Hi @elmadany Here you are.
RuntimeError Traceback (most recent call last)
This error seems due to the torch version and the training code not being updated.
I recommend using the Huggingface trainer. These an examples,
https://github.com/huggingface/transformers/tree/master/notebooks
First, select the trainer code based on your task. Then use "UBC-NLP/MARBERT" as the model name.
I hope these will help you
I get the same error!! @abdelrahmaan did you find a solution?
I did MARABERT by k-train Try to use it.
Thanks @abdelrahmaan
For me, I fixed the issue using:
!pip install GPUtil pytorch_pretrained_bert transformers==4.12.2 sentencepiece==0.1.96
Hello @elmadany Can you please just tell me how to print the classification report in this code? Actually, it is urgent manner https://colab.research.google.com/drive/1M0ls7EPUi1dwqIDh6HNfJ5y826XvcgGX?usp=sharing because I want to know the f1 score for each label
Get this error
RuntimeError: Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got torch.cuda.FloatTensor instead (while checking arguments for embedding)