evo-design / evo

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

OSError: togethercomputer/evo-1-131k-base does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack. #39

Closed jingliezhou closed 2 weeks ago

jingliezhou commented 3 months ago

Hi,

I just run the example command:

from evo import Evo
import torch

device = 'cuda:1'

evo_model = Evo('evo-1-131k-base')
model, tokenizer = evo_model.model, evo_model.tokenizer
model.to(device)
model.eval()

sequence = 'ACGT'
input_ids = torch.tensor(
    tokenizer.tokenize(sequence),
    dtype=torch.int,
).to(device).unsqueeze(0)
logits, _ = model(input_ids) # (batch, length, vocab)

print('Logits: ', logits)
print('Shape (batch, length, vocab): ', logits.shape)

But it show the error as below, even if I directly the huggingface version. Does anyone know what's the problem? OSError: togethercomputer/evo-1-131k-base does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

Thanks, Jinglie

davidkell commented 3 months ago

I had this issue and updating to latest version of transformers fixed it for me

jingliezhou commented 3 months ago

I had this issue and updating to latest version of transformers fixed it for me

Thank you!