Skip to content

How to resolve 'Could not find evo2_7b.pt or any of its shards in /root/.cache/huggingface/hub/models' error #179

@ywxk947

Description

@ywxk947

Thanks for putting out a great DNA model!
I'm hoping someone can help me with an issue I'm facing while installing the Evo2 model. The initial installation steps seemed to complete without any problems. However, when I run the command to test the installation, I encounter an error.

The command I'm using is:

bash
python -m evo2.test.test_evo2_generation --model_name evo2_7b
This results in the following error message:

[09/03/25 21:59:19] WARNING transformer_engine.pytorch.attention.dot_product_attention.utils - WARNING - Supported flash-attn versions are >= 2.7.3, <= 2.7.4.post1. Found backends.py:98
flash-attn 2.8.0.post2.
Looking for checkpoint shards for evo2_7b.pt
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/root/autodl-tmp/evo2/evo2/test/test_evo2_generation.py", line 143, in
main()
File "/root/autodl-tmp/evo2/evo2/test/test_evo2_generation.py", line 104, in main
model = Evo2(args.model_name)
^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/evo2/evo2/models.py", line 48, in init
self.model = self.load_evo2_model(model_name, config_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/evo2/evo2/models.py", line 250, in load_evo2_model
raise FileNotFoundError(f"Could not find {filename} or any of its shards in {repo_dir}")
FileNotFoundError: Could not find evo2_7b.pt or any of its shards in /root/.cache/huggingface/hub/models--arcinstitute--evo2_7b/snapshots/7dd460d8b1b9ab9a912dad3a27871773d48d30d3

It seems the script is looking for a file named `evo2_evo2_7b.pt, but it cannot find it in the Hugging Face cache directory, leading to a FileNotFoundError.

Could anyone kindly guide me on how to resolve this issue?

Thank you very much for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions