whaleloops commited on
Commit
3feaf03
1 Parent(s): b798553

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -5
README.md CHANGED
@@ -1,16 +1,32 @@
1
  ---
2
  license: cc-by-nc-4.0
 
 
 
 
 
3
  ---
4
 
5
- KEPTlongfomer pretrained using [contrastive learning](https://arxiv.org/pdf/2210.03304.pdf).
6
 
 
 
7
 
8
- First, The model was first inited from RoBERTa-base-PM-M3-Voc-distill from [bio-lm](https://github.com/facebookresearch/bio-lm/blob/main/README.md).
9
-
10
- And then pretrained with Hierarchical Self-Alignment Pretrainumls (HSAP) using Knowledge Graph UMLS.
11
  This includes (a) Hierarchy, (b) Synonym, (c) Abbreviation. For more info, see section 3.3 in [paper](https://arxiv.org/pdf/2210.03304.pdf).
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- See [here](https://github.com/whaleloops/KEPT/tree/rerank300) for how to use this on auto ICD coding.
14
 
15
  With the following result:
16
  | Metric | Score |
 
1
  ---
2
  license: cc-by-nc-4.0
3
+ language: "en"
4
+ tags:
5
+ - longformer
6
+ - clinical
7
+ - biomedical
8
  ---
9
 
10
+ <span style="font-size:larger;">**KEPTlongfomer**</span> is a medical knowledge enhanced version of Longformer that was further pre-trained using [contrastive learning](https://arxiv.org/pdf/2210.03304.pdf).
11
 
12
+ ### Pre-training
13
+ We initialized this model from RoBERTa-base-PM-M3-Voc-distill from Facebook [bio-lm](https://github.com/facebookresearch/bio-lm/).
14
 
15
+ And then pretrained with Hierarchical Self-Alignment Pretrain (HSAP) using Knowledge Graph UMLS.
 
 
16
  This includes (a) Hierarchy, (b) Synonym, (c) Abbreviation. For more info, see section 3.3 in [paper](https://arxiv.org/pdf/2210.03304.pdf).
17
+ The learning rate was 5e-5, weight decay was 0.01, adam epsilon was 1e-5.
18
+
19
+ ### Usage
20
+
21
+ Load the model directly from Transformers:
22
+ ```
23
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
24
+ tokenizer = AutoTokenizer.from_pretrained("whaleloops/KEPTlongformer-PMM3")
25
+ config = AutoConfig.from_pretrained("whaleloops/KEPTlongformer-PMM3")
26
+ model = AutoModelForMaskedLM.from_pretrained("whaleloops/KEPTlongformer-PMM3", config=config)
27
+ ```
28
 
29
+ See our [github](https://github.com/whaleloops/KEPT/tree/rerank300) for how to use this with prompts on auto ICD coding.
30
 
31
  With the following result:
32
  | Metric | Score |