Upload modeling_esm_plusplus.py with huggingface_hub
Browse files- modeling_esm_plusplus.py +1 -1
modeling_esm_plusplus.py
CHANGED
@@ -621,7 +621,7 @@ class PreTrainedESMplusplusModel(PreTrainedModel):
|
|
621 |
sequences = list(set([seq[:max_len] for seq in sequences]))
|
622 |
sequences = sorted(sequences, key=len, reverse=True)
|
623 |
dataset = ProteinDataset(sequences)
|
624 |
-
dataloader = DataLoader(dataset, batch_size=batch_size, num_workers=num_workers, collate_fn=self._collate_fn)
|
625 |
device = self.device
|
626 |
|
627 |
def get_embeddings(residue_embeddings: torch.Tensor, attention_mask: Optional[torch.Tensor] = None) -> torch.Tensor:
|
|
|
621 |
sequences = list(set([seq[:max_len] for seq in sequences]))
|
622 |
sequences = sorted(sequences, key=len, reverse=True)
|
623 |
dataset = ProteinDataset(sequences)
|
624 |
+
dataloader = DataLoader(dataset, batch_size=batch_size, num_workers=num_workers, collate_fn=self._collate_fn, shuffle=False)
|
625 |
device = self.device
|
626 |
|
627 |
def get_embeddings(residue_embeddings: torch.Tensor, attention_mask: Optional[torch.Tensor] = None) -> torch.Tensor:
|