-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: AttributeError: module 'torch' has no attribute '_running_with_deploy' #3328
Labels
bug
Something isn't working
Comments
Hi @GhivvagoDamas, |
Ok, I have trained similar way, and downgrading torch! Thanks for the fast
reply!
Ghivvago Damas Saraiva
Jr Data Scientist at IBM
NLP Researcher & Graduate Student at PPGCC-UFPI
MBA in Data Analysis for BI and Big Data
U.S Department of State Alumni - CCIP
…On Mon, 9 Oct 2023 at 08:15 Benedikt Fuchs ***@***.***> wrote:
Hi @GhivvagoDamas <https://github.com/GhivvagoDamas>,
this looks like a bug with torch & transformers. Can you verify this by
trying to run import transformers.models.albert.modeling_albert?
If that fails without any flair related code, I suggest you forward this
issue to the transformers repo
—
Reply to this email directly, view it on GitHub
<#3328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALOBPLSEURT4GOMMGQ5V5RTX6PMFFAVCNFSM6AAAAAA5YTHJ2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJSHAYTEMRYGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
github-actions
bot
removed
the
Awaiting Response
Waiting for new input from the author
label
Oct 9, 2023
Hi, have you solved this problem? I met the same error. |
Unluckily no! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Trying to import and run some experiments in Colab with Flair, when this error raises:
AttributeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1281 try:
-> 1282 return importlib.import_module("." + module_name, self.name)
1283 except Exception as e:
44 frames
AttributeError: module 'torch' has no attribute '_running_with_deploy'
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
RuntimeError: Failed to import transformers.integrations.peft because of the following error (look up to see its traceback):
module 'torch' has no attribute '_running_with_deploy'
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1282 return importlib.import_module("." + module_name, self.name)
1283 except Exception as e:
-> 1284 raise RuntimeError(
1285 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its"
1286 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.models.albert.modeling_albert because of the following error (look up to see its traceback):
Failed to import transformers.integrations.peft because of the following error (look up to see its traceback):
module 'torch' has no attribute '_running_with_deploy'
To Reproduce
Expected behavior
Expect to load Flair in full with no problems.
Logs and Stack traces
No response
Screenshots
Additional Context
No response
Environment
The text was updated successfully, but these errors were encountered: