Open JudithBernett opened 1 year ago
Hi Judith. We are currently working on migrating PRoBERTa from fairseq to HuggingFace (partly because of issues similar to yours). HuggingFace is also a lot simpler to use. We expect that this change should happen in the next couple weeks. I'll leave another comment here when we've successfully made the change.
Hi everyone, I am trying to get the PPI prediction part of PRoBERTa to run but I need help with the package versions. Can you specify which versions of python, numpy and pytorch you used?
Thank you very much already in advance! Best, Judith
Here is my concrete problem:
I first made a conda environment following the README.md:
I want to run pRoBERTa_finetune_ppi.sh
The example command from the Readme is:
I'm downloading pretraining/checkpoint_best.pt and ppi_prediction/split_binarized/robustness_minisplits/1.00 from the specified links.
Problem 1: The command is missing an argument:
An error is thrown:
fairseq-train: error: argument --use-cls-token: expected one argument
I'm fixing the command (I also just have 3 GPUs):
Problem 2: Wrong numpy version
The following error is thrown:
Solution: I downgrade to numpy 1.20.3
Problem 3: No module named 'apex'
The program runs further but now stops at a later point to throw this error:
Solution: I install apex according to the apex github instructions:
I have pip 23.1.2, so I execute the first command.
Problem 4: Apex installation fails
The following error message is displayed:
Solution: install packaging separately:
And re-execute command. Then, apex-0.1 is successfully installed.
I try executing the command again.
Problem 5: Numpy error
Validation is loaded, the model is initialized, training data is loaded, but then, this error is thrown:
This issue is known: https://github.com/facebookresearch/fairseq/issues/3203, https://stackoverflow.com/questions/65974718/valueerror-numpy-ndarray-size-changed-may-indicate-binary-incompatibility
However, the solution was to upgrade from numpy 1.18 to 1.20.0. However, I am already on numpy 1.20.3.
Downgrading to numpy 1.20.0:
The error persists. I cannot upgrade numpy due to problem 2.