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

Add ESM2 Data Module #49

Conversation

pstjohn
Copy link
Collaborator

@pstjohn pstjohn commented Jul 27, 2024

Adds functions for loading and pre-processing protein sequences

@pstjohn pstjohn self-assigned this Jul 27, 2024
import numpy.typing as npt


class Item(TypedDict):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe BertBatchRow or something?

@pstjohn pstjohn force-pushed the pstjohn/v2-main/esm_data_module branch 2 times, most recently from f7adab8 to 92c95cc Compare July 31, 2024 18:22
@pstjohn pstjohn changed the base branch from v2-main to pstjohn/v2-main/masking-and-tokenizer July 31, 2024 18:28
@pstjohn pstjohn force-pushed the pstjohn/v2-main/masking-and-tokenizer branch from a4da493 to 849878d Compare August 1, 2024 20:44

mask_prob: float = 0.15
mask_token_prob: float = 0.8
random_token_prob: float = 0.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation:
Add a post_init that checks that (mask_token_prob + random_token_prob) <= 1 as well as 0 <= mask_prob <= 1

@pstjohn pstjohn force-pushed the pstjohn/v2-main/masking-and-tokenizer branch 6 times, most recently from c03d718 to 870e7b0 Compare August 6, 2024 19:00
@pstjohn pstjohn closed this Aug 7, 2024
@pstjohn pstjohn deleted the pstjohn/v2-main/esm_data_module branch August 7, 2024 15:16
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

Successfully merging this pull request may close these issues.

2 participants