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

AssertionError: rotary_emb is not installed #23

Open
bioone opened this issue Mar 3, 2024 · 3 comments
Open

AssertionError: rotary_emb is not installed #23

bioone opened this issue Mar 3, 2024 · 3 comments

Comments

@bioone
Copy link

bioone commented Mar 3, 2024

i try the fllow code:
`from transformers import AutoConfig, AutoModelForCausalLM

model_name = 'togethercomputer/evo-1-8k-base'

model_config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
model_config.use_cache = True

model = AutoModelForCausalLM.from_pretrained(
model_name,
config=model_config,
trust_remote_code=True,
)`

raise error :AssertionError: rotary_emb is not installed

however,the rotary_emb v0,1 installed,flash attentation also installed

@exnx
Copy link
Collaborator

exnx commented Mar 11, 2024

can you share more info / stack trace? It might be the flash attention version.

@xmz111
Copy link

xmz111 commented Mar 11, 2024

#10

@dorukcakmakci
Copy link

I believe the source of this error is this line in flash-attention codebase. In my case, the import statement encapsulated in the try-except block failed with the following error: ModuleNotFoundError: No module named 'triton'. Installing triton fixed the problem.

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

4 participants