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

Too large embedding files when using --asdir #28

Closed
staszekdh opened this issue Nov 8, 2023 · 2 comments · Fixed by #8
Closed

Too large embedding files when using --asdir #28

staszekdh opened this issue Nov 8, 2023 · 2 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@staszekdh
Copy link
Member

A database for 10k sequences calculated with --asdir

python embeddings.py start data_set_fullseq.fasta data_set_fullseq -embedder pt --gpu -bs 0 --asdir

consists of very large files (~20MB each) and the database is 189GB in total. If you build a database without `--asdir', the resulting concatenated embedding file is only 3GB.

@staszekdh staszekdh added the bug Something isn't working label Nov 8, 2023
@Argusmocny Argusmocny self-assigned this Nov 8, 2023
@staszekdh
Copy link
Member Author

@Argusmocny Example sequences to reproduce the problem:

>1
MANRDCNADWKISKARRSYKVGYASTRHEDRSTGMTRYYSQYPSLHLKGNWLEEAGFTTGQAVNITVERGQLIIRLVENS
>2
MGAQLYPIREERGSVEVIPYVRLRGRWLDKLGFDVGSRLKIDAEHGRITLTVIERPVPAPVKIPRKLQRLAREAARASASTDGGKA
>3
MTRPEFVPPKRKPYARPAPTCKVGAQHYPAREEYGSEEVIPYVRLRGRWLDKLGFDVGARLKIETRPGCITLTVVERPVVVPKKIPRKLQRTAG
>4
MLTPWEDEPDDARPKRKPYARPARSYRVGALTYPDREECGPTEIVPYLKLRGRWLDKLGFDVGARLKVEATHGSITLTVVERPVPVVKKIPRKLQRRTG
>5
MTDMHSIAQPFEAEVSPANNRQLTVSYASRYPDYSRIPAITLKGQWLEAAGFTTGTAVDVKVMEGCIVLTAQPLAVEESELMQSLRQVCKLSARKQKQVQAFIGVIAGKQKVA

If --asdir is used, the resulting 5 files are 3.4M. If --asdir is not used, the resulting single file is only 1.1M.

@Argusmocny Argusmocny linked a pull request Nov 21, 2023 that will close this issue
Merged
@Argusmocny
Copy link
Contributor

There is a bug in embedders.py code, leading to saving unessesry data in single file mode (without --asdir flag) This will be fixed in upcoming update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants