Skip to content
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

cannot import name 'SiLUActivation' from 'transformers.activations' #44

Closed
azuryl opened this issue Dec 20, 2023 · 1 comment
Closed

Comments

@azuryl
Copy link

azuryl commented Dec 20, 2023

python test_speedup.py --model_type pretrain
Traceback (most recent call last):
File "/home/azuryl/project/llm-pruner/LLM-Pruner/test_speedup.py", line 10, in
from transformers.activations import SiLUActivation
ImportError: cannot import name 'SiLUActivation' from 'transformers.activations' (/home/azuryl/anaconda3/envs/llamaprune/lib/python3.10/site-packages/transformers/activations.py)

@azuryl
Copy link
Author

azuryl commented Dec 20, 2023

pip install transformers==4.28.1

@azuryl azuryl closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant