Update README.md
Browse files
README.md
CHANGED
|
@@ -76,12 +76,11 @@ def zero_shot_eval(logger, device,
|
|
| 76 |
|
| 77 |
if __name__ == "__main__":
|
| 78 |
# get datasets
|
| 79 |
-
raw_datasets = load_dataset("
|
| 80 |
-
|
| 81 |
-
#device = torch.device("cuda:0")
|
| 82 |
device = torch.device("cpu")
|
| 83 |
|
| 84 |
-
protst_model = AutoModel.from_pretrained("
|
| 85 |
protein_model = protst_model.protein_model
|
| 86 |
+ import intel_extension_for_pytorch as ipex
|
| 87 |
+ from optimum.intel.generation.modeling import jit_trace
|
|
|
|
| 76 |
|
| 77 |
if __name__ == "__main__":
|
| 78 |
# get datasets
|
| 79 |
+
raw_datasets = load_dataset("mila-intel/ProtST-SubcellularLocalization", cache_dir="~/.cache/huggingface/datasets", split='test') # cache_dir defaults to "~/.cache/huggingface/datasets"
|
| 80 |
+
|
|
|
|
| 81 |
device = torch.device("cpu")
|
| 82 |
|
| 83 |
+
protst_model = AutoModel.from_pretrained("mila-intel/ProtST-esm1b", trust_remote_code=True, torch_dtype=torch.bfloat16).to(device)
|
| 84 |
protein_model = protst_model.protein_model
|
| 85 |
+ import intel_extension_for_pytorch as ipex
|
| 86 |
+ from optimum.intel.generation.modeling import jit_trace
|