yurakuratov commited on
Commit
d262a2d
1 Parent(s): f36dcb4

upd readme.md, renaming to gena-lm

Browse files
Files changed (1) hide show
  1. README.md +18 -18
README.md CHANGED
@@ -4,47 +4,47 @@ tags:
4
  - human_genome
5
  ---
6
 
7
- # DNALM
8
 
9
- DNALM is a transformer masked language model trained on human DNA sequence.
10
 
11
- Differences between DNALM and DNABERT:
12
  - BPE tokenization instead of k-mers;
13
  - input sequence size is about 3000 nucleotides (512 BPE tokens) compared to 510 nucleotides of DNABERT
14
  - pre-training on T2T vs. GRCh38.p13 human genome assembly.
15
 
16
- Source code and data: https://github.com/AIRI-Institute/dna-lm
17
 
18
  ## Examples
19
  ### How to load the model to fine-tune it on classification task
20
  ```python
21
- from src.dnalm.modeling_bert import BertForSequenceClassification
22
  from transformers import AutoTokenizer
23
 
24
- tokenizer = AutoTokenizer.from_pretrained('AIRI-Institute/dnalm-bert-base')
25
- model = BertForSequenceClassification.from_pretrained('AIRI-Institute/dnalm-bert-base')
26
  ```
27
 
28
  ## Model description
29
- DNALM model is trained in a masked language model (MLM) fashion, following the methods proposed in the BigBird paper by masking 85% of tokens. Model config for `dnalm-bert-base` is similar to the bert-base:
30
 
31
  - 512 Maximum sequence length
32
  - 12 Layers, 12 Attention heads
33
  - 768 Hidden size
34
  - 32k Vocabulary size
35
 
36
- We pre-trained dnalm-bert-base using the latest T2T human genome assembly (https://www.ncbi.nlm.nih.gov/assembly/GCA_009914755.3/). Pre-training was performed for 500,000 iterations with the same parameters as in BigBird, except sequence length was equal to 512 tokens and we used pre-layer normalization in Transformer.
37
 
38
  ## Downstream tasks
39
- Currently, dnalm-bert-base model has been finetuned and tested on promoter prediction task. Its' performance is comparable to previous SOTA results. We plan to fine-tune and make available models for other downstream tasks in the near future.
40
 
41
- ### Fine-tuning DNALM on our data and scoring
42
- After fine-tuning dnalm-bert-base on promoter prediction dataset, following results were achieved:
43
 
44
- | model | seq_len (bp) | F1 |
45
- |------------------------|--------------|-------|
46
- | DeePromoter | 300 | 95.60 |
47
- | DNALM bert_base (ours) | 2000 | 95.72 |
48
- | BigBird | 16000 | 99.90 |
49
 
50
- We can conclude that our model achieves comparable performance to the previously published results for promoter prediction task.
 
4
  - human_genome
5
  ---
6
 
7
+ # GENA-LM
8
 
9
+ GENA-LM is a transformer masked language model trained on human DNA sequence.
10
 
11
+ Differences between GENA-LM and DNABERT:
12
  - BPE tokenization instead of k-mers;
13
  - input sequence size is about 3000 nucleotides (512 BPE tokens) compared to 510 nucleotides of DNABERT
14
  - pre-training on T2T vs. GRCh38.p13 human genome assembly.
15
 
16
+ Source code and data: https://github.com/AIRI-Institute/GENA-LM
17
 
18
  ## Examples
19
  ### How to load the model to fine-tune it on classification task
20
  ```python
21
+ from src.gena_lm.modeling_bert import BertForSequenceClassification
22
  from transformers import AutoTokenizer
23
 
24
+ tokenizer = AutoTokenizer.from_pretrained('AIRI-Institute/gena-lm-bert-base')
25
+ model = BertForSequenceClassification.from_pretrained('AIRI-Institute/gena-lm-bert-base')
26
  ```
27
 
28
  ## Model description
29
+ GENA-LM model is trained in a masked language model (MLM) fashion, following the methods proposed in the BigBird paper by masking 85% of tokens. Model config for `gena-lm-bert-base` is similar to the bert-base:
30
 
31
  - 512 Maximum sequence length
32
  - 12 Layers, 12 Attention heads
33
  - 768 Hidden size
34
  - 32k Vocabulary size
35
 
36
+ We pre-trained `gena-lm-bert-base` using the latest T2T human genome assembly (https://www.ncbi.nlm.nih.gov/assembly/GCA_009914755.3/). Pre-training was performed for 500,000 iterations with the same parameters as in BigBird, except sequence length was equal to 512 tokens and we used pre-layer normalization in Transformer.
37
 
38
  ## Downstream tasks
39
+ Currently, gena-lm-bert-base model has been finetuned and tested on promoter prediction task. Its' performance is comparable to previous SOTA results. We plan to fine-tune and make available models for other downstream tasks in the near future.
40
 
41
+ ### Fine-tuning GENA-LM on our data and scoring
42
+ After fine-tuning gena-lm-bert-base on promoter prediction dataset, following results were achieved:
43
 
44
+ | model | seq_len (bp) | F1 |
45
+ |--------------------------|--------------|-------|
46
+ | DeePromoter | 300 | 95.60 |
47
+ | GENA-LM bert-base (ours) | 2000 | 95.72 |
48
+ | BigBird | 16000 | 99.90 |
49
 
50
+ We can conclude that our model achieves comparable performance to the previously published results for promoter prediction task.