evo-design / evo

Biological foundation modeling from molecular to genome scale
Apache License 2.0
874 stars 99 forks source link

AssertionError: rotary_emb is not installed #23

Open bioone opened 4 months ago

bioone commented 4 months ago

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 commented 4 months ago

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

xmz111 commented 4 months ago

10

dorukcakmakci commented 3 months ago

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.