cgeorgiaw HF Staff commited on
Commit
494b7b4
·
verified ·
1 Parent(s): 637447f

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,3 +1,30 @@
1
- ---
2
- license: bsd-3-clause
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: p-IgGen
3
+ library_name: transformers
4
+ tags: [science, antibodies, protein,drug discovery]
5
+ ---
6
+
7
+ # Model Card for Model ID
8
+
9
+ Auto-regressive protein language model for paired antibody library generation.
10
+
11
+ Pretrained on unpaired heavy and light chain sequences from the Observed Antibody Space (OAS), and finetuned on paired sequences.
12
+
13
+ ## Getting Started?
14
+
15
+ This model was featured in the Hugging Face blog ***How to Train an Antibody Developability Model*** (found here: https://huggingface.co/blog/ginkgo-datapoints/making-antibody-embeddings-and-predictions). Sample code on how to get started using this model can be found in the blog.
16
+
17
+ ## Model Details
18
+
19
+ ### Model Description
20
+
21
+
22
+ - **Funded by:** EPSRC, AstraZeneca
23
+ - **License:** BSD-3-Clause license
24
+
25
+ ### Model Sources
26
+
27
+ <!-- Provide the basic links for the model. -->
28
+ Note: This is a duplicate of Ollie Turnbull's model repo, found here: https://huggingface.co/ollieturnbull/p-IgGen
29
+ - **Repository:** https://github.com/OliverT1/p-IgGen
30
+ - **Paper:** https://academic.oup.com/bioinformatics/article/40/11/btae659/7888884
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": ".",
3
+ "architectures": [
4
+ "GPTNeoXForCausalLM"
5
+ ],
6
+ "attention_bias": true,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": 0.1,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout": 0.0,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 2048,
16
+ "layer_norm_eps": 1e-05,
17
+ "max_position_embeddings": 400,
18
+ "model_type": "gpt_neox",
19
+ "num_attention_heads": 8,
20
+ "num_hidden_layers": 4,
21
+ "rope_scaling": null,
22
+ "rotary_emb_base": 10000,
23
+ "rotary_pct": 0.25,
24
+ "tie_word_embeddings": false,
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.42.3",
27
+ "use_cache": true,
28
+ "use_parallel_residual": true,
29
+ "vocab_size": 26
30
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.42.3"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fac8e89ae5abb432e29c3af2ca5176da6b6bbeef64ea6847bd51393180918bd
3
+ size 88395416
special_tokens_map.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "pad_token": {
3
+ "content": "<PAD>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ }
9
+ }
tokenizer.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "<PAD>",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ }
15
+ ],
16
+ "normalizer": null,
17
+ "pre_tokenizer": {
18
+ "type": "ByteLevel",
19
+ "add_prefix_space": false,
20
+ "trim_offsets": true,
21
+ "use_regex": true
22
+ },
23
+ "post_processor": {
24
+ "type": "ByteLevel",
25
+ "add_prefix_space": true,
26
+ "trim_offsets": true,
27
+ "use_regex": true
28
+ },
29
+ "decoder": {
30
+ "type": "ByteLevel",
31
+ "add_prefix_space": true,
32
+ "trim_offsets": true,
33
+ "use_regex": true
34
+ },
35
+ "model": {
36
+ "type": "BPE",
37
+ "dropout": null,
38
+ "unk_token": null,
39
+ "continuing_subword_prefix": null,
40
+ "end_of_word_suffix": null,
41
+ "fuse_unk": false,
42
+ "byte_fallback": false,
43
+ "vocab": {
44
+ "<PAD>": 0,
45
+ "A": 1,
46
+ "R": 2,
47
+ "N": 3,
48
+ "D": 4,
49
+ "B": 5,
50
+ "C": 6,
51
+ "E": 7,
52
+ "Q": 8,
53
+ "Z": 9,
54
+ "G": 10,
55
+ "H": 11,
56
+ "I": 12,
57
+ "L": 13,
58
+ "K": 14,
59
+ "M": 15,
60
+ "F": 16,
61
+ "P": 17,
62
+ "S": 18,
63
+ "T": 19,
64
+ "W": 20,
65
+ "Y": 21,
66
+ "V": 22,
67
+ "1": 23,
68
+ "2": 24,
69
+ "3": 25
70
+ },
71
+ "merges": []
72
+ }
73
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<PAD>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ }
11
+ },
12
+ "clean_up_tokenization_spaces": true,
13
+ "model_max_length": 512,
14
+ "pad_token": "<PAD>",
15
+ "tokenizer_class": "PreTrainedTokenizerFast"
16
+ }