katarinayuan
commited on
Upload PrototypeContrastiveForMaskedLM
Browse files- config.json +105 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_expbin_vocab_size": 1003,
|
3 |
+
"_expnum_vocab_size": 1000,
|
4 |
+
"_name_or_path": "/home/xinyu402/projects/rrg-bengioy-ad/xinyu402/scZero_ckpts/240202_181731/checkpoint-40000",
|
5 |
+
"_tf_class_vocab_size": 39,
|
6 |
+
"_tf_superclass_vocab_size": 15,
|
7 |
+
"_vocab_size": 25427,
|
8 |
+
"additional_force_clsprotcontrast_rankbased": null,
|
9 |
+
"architectures": [
|
10 |
+
"PrototypeContrastiveForMaskedLM"
|
11 |
+
],
|
12 |
+
"attention_probs_dropout_prob": 0.02,
|
13 |
+
"bert_objective": "plm",
|
14 |
+
"bugfix_binary_ce_tau": "learnable",
|
15 |
+
"bugfix_rank_contrastive_diagonal": null,
|
16 |
+
"bugfix_rank_contrastive_snnloss_tau": null,
|
17 |
+
"cell_level_tau": 0.01,
|
18 |
+
"cell_ontology_type": "co_geometry",
|
19 |
+
"centroid_init": null,
|
20 |
+
"classifier_dropout": null,
|
21 |
+
"clm_as_mlm": null,
|
22 |
+
"cls_prot_affine_projection": 1,
|
23 |
+
"cls_prot_contrast_change_tau": null,
|
24 |
+
"contrastive_dropout": null,
|
25 |
+
"ct_alpha": 0.9,
|
26 |
+
"ctgraph_thresh": 0.0001,
|
27 |
+
"expbin_tieweight": 0,
|
28 |
+
"expbin_vocab_size": null,
|
29 |
+
"expnum_vocab_size": null,
|
30 |
+
"fixbug_rank_contrastive": 1,
|
31 |
+
"force_centroid_norm": null,
|
32 |
+
"force_clsprotcontrast_rankbased": null,
|
33 |
+
"global_contrast": 0,
|
34 |
+
"global_contrast_only_for_cell_wise": 0,
|
35 |
+
"global_contrast_only_for_sample_wise": 0,
|
36 |
+
"gnn_type": "gcn",
|
37 |
+
"gradient_checkpointing": false,
|
38 |
+
"hidden_act": "relu",
|
39 |
+
"hidden_dropout_prob": 0.02,
|
40 |
+
"hidden_size": 256,
|
41 |
+
"initialize_decoder_as_identity": null,
|
42 |
+
"initializer_range": 0.02,
|
43 |
+
"intermediate_size": 512,
|
44 |
+
"is_cell_wise": 1,
|
45 |
+
"is_cell_wise_ctgraph_sim": 1,
|
46 |
+
"is_cell_wise_forbidden_ancestor": 1,
|
47 |
+
"is_cls_prot_contrast_toallcelltype": 1,
|
48 |
+
"is_newdata": "frac100",
|
49 |
+
"is_prototype_wise": 1,
|
50 |
+
"is_prototype_wise_allcelltypetoallcelltype_contrast": null,
|
51 |
+
"is_prototype_wise_force_contrast": "1",
|
52 |
+
"is_prototype_wise_toallcelltype_contrast": 1,
|
53 |
+
"is_sample_wise": 1,
|
54 |
+
"layer_norm_eps": 1e-12,
|
55 |
+
"learnable_logits_scale": null,
|
56 |
+
"loss_weights": {
|
57 |
+
"cls_contrast_loss": 1.0,
|
58 |
+
"cls_prot_contrast_loss": 1.0,
|
59 |
+
"cls_self_contrast_loss": 0.0,
|
60 |
+
"plm_loss": 1.0,
|
61 |
+
"prot_prot_contrast_loss": 0.0,
|
62 |
+
"prot_self_contrast_loss": 0.0
|
63 |
+
},
|
64 |
+
"mask_expnum": true,
|
65 |
+
"max_length": null,
|
66 |
+
"max_position_embeddings": 2048,
|
67 |
+
"min_position": null,
|
68 |
+
"model_type": "bert",
|
69 |
+
"moving_avg_ratio": 0.9,
|
70 |
+
"no_l2norm": null,
|
71 |
+
"normalize_log1p": 1,
|
72 |
+
"num_attention_heads": 4,
|
73 |
+
"num_hidden_layers": 6,
|
74 |
+
"output_hidden_states": true,
|
75 |
+
"pad_token_id": 0,
|
76 |
+
"position_embedding_type": "absolute",
|
77 |
+
"project_linear_relu_linear_ln": null,
|
78 |
+
"prototype_scatter_type": "mixed_mean",
|
79 |
+
"prototype_type": "fully_learnable",
|
80 |
+
"randflip": null,
|
81 |
+
"randperm": null,
|
82 |
+
"rank_contrast_logits_clamp": null,
|
83 |
+
"rank_contrast_loss_type": "relative_softmax",
|
84 |
+
"relative_softmax_lossavg_bugfix": 1,
|
85 |
+
"relax_last_layernorm": 1,
|
86 |
+
"scale_grad_by_freq": true,
|
87 |
+
"separate_cls": 1,
|
88 |
+
"tau": 0.01,
|
89 |
+
"tf_class_vocab_size": null,
|
90 |
+
"tf_superclass_vocab_size": null,
|
91 |
+
"tie_word_embeddings": 0,
|
92 |
+
"toallcelltype_bugfix": 1,
|
93 |
+
"torch_dtype": "float32",
|
94 |
+
"total_logging_steps": 40,
|
95 |
+
"transform_linear": null,
|
96 |
+
"transform_no_layernorm": null,
|
97 |
+
"transform_swap_ln_relu": null,
|
98 |
+
"transformers_version": "4.32.1",
|
99 |
+
"truth_use_decoder": null,
|
100 |
+
"type_vocab_size": 1,
|
101 |
+
"use_abspos_embed": true,
|
102 |
+
"use_cache": true,
|
103 |
+
"use_tf_target_hardmask": false,
|
104 |
+
"vocab_size": 25427
|
105 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2bf9f8f95715b65f594c488f0501aa55b01df435e615c5bf0f795a31eda32418
|
3 |
+
size 44049097
|