yezdata commited on
Commit
c68f0fd
·
verified ·
1 Parent(s): ddbcc0e

Delete configuration_emcoder.py

Browse files
Files changed (1) hide show
  1. configuration_emcoder.py +0 -38
configuration_emcoder.py DELETED
@@ -1,38 +0,0 @@
1
- from transformers import PretrainedConfig
2
-
3
- class EmCoderConfig(PretrainedConfig):
4
- model_type = "emcoder"
5
-
6
- def __init__(
7
- self,
8
- vocab_size=50265,
9
- max_seq_len=512,
10
- d_model=768,
11
- n_head=12,
12
- n_layers=6,
13
- d_ffn=3072,
14
- dropout=0.15,
15
- num_labels=28,
16
- base_encoder_path="",
17
- id2label=None,
18
- label2id=None,
19
- **kwargs
20
- ):
21
- # id2label konverze na int klíče (kvůli JSON standardu)
22
- if id2label is not None:
23
- id2label = {int(k): v for k, v in id2label.items()}
24
-
25
- super().__init__(
26
- id2label=id2label,
27
- label2id=label2id,
28
- **kwargs
29
- )
30
- self.vocab_size = vocab_size
31
- self.max_seq_len = max_seq_len
32
- self.d_model = d_model
33
- self.n_head = n_head
34
- self.n_layers = n_layers
35
- self.d_ffn = d_ffn
36
- self.dropout = dropout
37
- self.num_labels = num_labels
38
- self.base_encoder_path = base_encoder_path