CIRPLANT icon indicating copy to clipboard operation
CIRPLANT copied to clipboard

I wonder which transformers version have you used in your CIRPLANT code? Thank you.

Open yan9qu opened this issue 3 years ago • 11 comments

yan9qu avatar Nov 18 '21 11:11 yan9qu

same question

BrandonHanx avatar Nov 29 '21 16:11 BrandonHanx

same question

I've solved this issue and sent an email to you. Please check it. Thank you.

yan9qu avatar Nov 30 '21 07:11 yan9qu

same question

I've solved this issue and sent an email to you. Please check it. Thank you.

Hello , i have same problem, may you please help me with this, Thank you.

Sheng1e8 avatar Dec 20 '21 12:12 Sheng1e8

Hi,

Apologies for the late reply.

The VLP transformers used in this work is OSCAR.

Specifically, the version that were used for our published results is 9b07b67.

If you would like to find out the transformers used by OSCAR, please click the transformers folder within the repository, I believe the commit is at 067923d.

Cuberick-Orion avatar Dec 20 '21 12:12 Cuberick-Orion

I follow the install guid you offered.

Got this Error

from transformers import AutoModel Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'AutoModel' from 'transformers' (unknown location)

Sheng1e8 avatar Dec 20 '21 13:12 Sheng1e8

I follow the install guid you offered.

Got this Error

from transformers import AutoModel Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'AutoModel' from 'transformers' (unknown location)

Hi,

Could you provide more details on the error -- e.g., the specific file where the error occurred?

Cuberick-Orion avatar Dec 20 '21 13:12 Cuberick-Orion

@Cuberick-Orion I am also getting this error : "ImportError: cannot import name 'AutoModelForMaskedLM' from 'transformers' (unknown location)"

Is there anything wrong with the location ( as the error mentions the unknown location ) or its something else ? also have you figured out a solution @Sheng1e8 ?

complete-dope avatar Sep 23 '23 06:09 complete-dope

Once again please see my response to your previous issue here and my reply to your emails.

To reiterate, (1) properly set up Oscar following the provided instruction, specifically you need to python setup.py build develop your Oscar into a package so that your python can find it. (2) Then make sure not to install the transformers package via pip install transformers, as it points to a different transformers than what is used in Oscar, which is why it complains about ImportError.

Best, David.

Cuberick-Orion avatar Sep 23 '23 07:09 Cuberick-Orion

Thanks @Cuberick-Orion for your detailed response via email and through this thread

I followed the instructions as mentioned in the INSTALL.md and in this thread ..

But I am still getting the same error as above

''' from transformers import AutoModelForMaskedLM ImportError: cannot import name 'AutoModelForMaskedLM' from 'transformers' (unknown location) '''

Is there anything I am missing here ? or is there any further measure to take once the above 2 steps are followed ?

Thanks for your calm replies !!

complete-dope avatar Sep 24 '23 06:09 complete-dope

any reply on this @Cuberick-Orion ?

complete-dope avatar Oct 03 '23 12:10 complete-dope

At this stage, I can only speculate on the cause of your problem because we cannot recreate it on our end.

The error suggests your python cannot locate the correct transformers package, which should not be if oscar is properly set up and there is no conflicting transformers package installed. A couple of suggestions:

  • Use a new python environment and install from scratch
  • Look into your transformers package, specifically its local path, make sure it is the correct one
  • As we mentioned in the previous reply, try to use the specific oscar commit -- maybe something was changed

David.

Cuberick-Orion avatar Oct 03 '23 13:10 Cuberick-Orion