config.py 1.79 KB
Newer Older
1
2
import ml_collections as mlc

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

monomer_consts = mlc.ConfigDict(
    {
        "model": "model_1_ptm",  # monomer:model_1_ptm, multimer: model_1_multimer_v3
        "is_multimer": False,  # monomer: False, multimer: True
        "chunk_size": 4,
        "batch_size": 2,
        "n_res": 22,
        "n_seq": 13,
        "n_templ": 3,
        "n_extra": 17,
        "n_heads_extra_msa": 8,
        "eps": 5e-4,
        # For compatibility with DeepMind's pretrained weights, it's easiest for
        # everyone if these take their real values.
        "c_m": 256,
        "c_z": 128,
        "c_s": 384,
        "c_t": 64,
        "c_e": 64,
        "msa_logits": 23,  # monomer: 23, multimer: 22
        "template_mmcif_dir": None  # Set for test_multimer_datamodule
    }
)

multimer_consts = mlc.ConfigDict(
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
29
    {
Christina Floristean's avatar
Christina Floristean committed
30
        "model": "model_1_multimer_v3",  # monomer:model_1_ptm, multimer: model_1_multimer_v3
31
32
        "is_multimer": True,  # monomer: False, multimer: True
        "chunk_size": 4,
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
33
        "batch_size": 2,
34
        "n_res": 22,
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
35
36
37
        "n_seq": 13,
        "n_templ": 3,
        "n_extra": 17,
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
38
        "n_heads_extra_msa": 8,
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
39
40
41
42
43
44
45
46
        "eps": 5e-4,
        # For compatibility with DeepMind's pretrained weights, it's easiest for
        # everyone if these take their real values.
        "c_m": 256,
        "c_z": 128,
        "c_s": 384,
        "c_t": 64,
        "c_e": 64,
47
48
        "msa_logits": 22,  # monomer: 23, multimer: 22
        "template_mmcif_dir": None  # Set for test_multimer_datamodule
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
49
50
    }
)
Sachin Kadyan's avatar
Sachin Kadyan committed
51

52
53
consts = monomer_consts 

Sachin Kadyan's avatar
Sachin Kadyan committed
54
55
56
57
58
59
60
61
62
63
64
65
66
config = mlc.ConfigDict(
    {
        "data": {
            "common": {
                "masked_msa": {
                    "profile_prob": 0.1,
                    "same_prob": 0.1,
                    "uniform_prob": 0.1,
                },
            }
        }
    }
)