contributor-anonymous commited on
Commit
f4c651c
·
verified ·
1 Parent(s): a736e53

Initial commit

Browse files
Files changed (4) hide show
  1. README.md +50 -0
  2. config.json +31 -0
  3. generation_config.json +7 -0
  4. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ library_name: transformers
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - t5
7
+ - molecule-to-protein
8
+ - smiles
9
+ - protein-generation
10
+ - binder
11
+ - ligand
12
+ license: apache-2.0
13
+ datasets:
14
+ - contributor-anonymous/Mol2Pro-Binder-Dataset
15
+ ---
16
+
17
+ # Mol2Pro-base
18
+
19
+ ## Model description
20
+
21
+ - **Architecture:** T5-efficient-base https://huggingface.co/google/t5-efficient-base
22
+ - **Tokenization:** https://huggingface.co/contributor-anonymous/Mol2Pro-tokenizer
23
+
24
+
25
+ - **Code:** https://github.com/contributor-anonymous/Mol2Pro-tools
26
+ - **Training data** https://huggingface.co/datasets/contributor-anonymous/Mol2Pro-Binder-Dataset
27
+
28
+
29
+
30
+ ## How to use
31
+
32
+ ```python
33
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
34
+ import torch
35
+
36
+ model_id = "contributor-anonymous/Mol2Pro-base"
37
+ tokenizer_id = "contributor-anonymous/Mol2Pro-tokenizer"
38
+
39
+ # Load tokenizers
40
+ tokenizer_mol = AutoTokenizer.from_pretrained(tokenizer_id, subfolder="smiles")
41
+ tokenizer_aa = AutoTokenizer.from_pretrained(tokenizer_id, subfolder="aa")
42
+
43
+ # Load model
44
+ model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
45
+ ```
46
+
47
+ ## Intended use
48
+ Research use only. The model generates candidate sequences conditioned on small-molecule inputs; it does not guarantee binding or function and must be validated experimentally.
49
+
50
+
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/t5-efficient-base",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "classifier_dropout": 0.0,
7
+ "d_ff": 3072,
8
+ "d_kv": 64,
9
+ "d_model": 768,
10
+ "decoder_start_token_id": 0,
11
+ "dense_act_fn": "relu",
12
+ "dropout_rate": 0.1,
13
+ "eos_token_id": 1,
14
+ "feed_forward_proj": "relu",
15
+ "initializer_factor": 1.0,
16
+ "is_encoder_decoder": true,
17
+ "is_gated_act": false,
18
+ "layer_norm_epsilon": 1e-06,
19
+ "model_type": "t5",
20
+ "n_positions": 512,
21
+ "num_decoder_layers": 12,
22
+ "num_heads": 12,
23
+ "num_layers": 12,
24
+ "pad_token_id": 0,
25
+ "relative_attention_max_distance": 128,
26
+ "relative_attention_num_buckets": 32,
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.49.0",
29
+ "use_cache": true,
30
+ "vocab_size": 1069
31
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.49.0"
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbb6e6bd561ea1408eb6b230bed319c3fd432425985cf3c7188aabe70952f5c7
3
+ size 796290126