CIRPLANT
CIRPLANT copied to clipboard
I wonder which transformers version have you used in your CIRPLANT code? Thank you.
same question
same question
I've solved this issue and sent an email to you. Please check it. Thank you.
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.
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
.
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)
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 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 ?
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.
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 !!
any reply on this @Cuberick-Orion ?
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.