LucaGroup commited on
Commit
76cd972
·
verified ·
1 Parent(s): a99355c

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -0
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ # LucaOne-Prot
6
+
7
+ LucaOne/LucaGPLM - The LUCA Protein language model.
8
+
9
+ ## Installation
10
+
11
+ You can install the package from source using pip:
12
+
13
+ ```bash
14
+ pip install lucagplm
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```python
20
+ from lucagplm import LucaGPLMModel, LucaGPLMTokenizer
21
+
22
+ # Load model
23
+ model = LucaGPLMModel.from_pretrained("LucaGroup/LucaOne-prot-step38.2M")
24
+ tokenizer = LucaGPLMTokenizer.from_pretrained("LucaGroup/LucaOne-prot-step38.2M")
25
+
26
+ # Example usage(Only for Protein)
27
+ seq = "NSQTA"
28
+ inputs = tokenizer(seq, seq_type="prot",return_tensors="pt")
29
+ outputs = model(**inputs)
30
+
31
+ print(outputs.last_hidden_state.shape)
32
+ ```