Omaratef3221 commited on
Commit
483991b
·
verified ·
1 Parent(s): c54ae2f

Upload folder using huggingface_hub

Browse files
CustomBertModel.py CHANGED
@@ -30,7 +30,7 @@ class CustomBertModel(BertModel):
30
  norm_function=euclidean_norm
31
  )
32
 
33
- # Define radial basis and norm functions (assuming they're part of your custom RBF implementation)
34
  def gaussian_rbf(x):
35
  return torch.exp(-x**2)
36
 
 
30
  norm_function=euclidean_norm
31
  )
32
 
33
+ # Define radial basis and norm functions
34
  def gaussian_rbf(x):
35
  return torch.exp(-x**2)
36
 
config.json CHANGED
@@ -23,7 +23,7 @@
23
  "type_vocab_size": 2,
24
  "use_cache": true,
25
  "vocab_size": 30522,
26
- "rbf_num_kernels": 2,
27
  "custom_feedforward": {
28
  "intermediate": "CustomRBFFeedForward",
29
  "output": "CustomRBFFeedForward"
 
23
  "type_vocab_size": 2,
24
  "use_cache": true,
25
  "vocab_size": 30522,
26
+ "rbf_num_kernels": 2,
27
  "custom_feedforward": {
28
  "intermediate": "CustomRBFFeedForward",
29
  "output": "CustomRBFFeedForward"
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:184053728d42f6abc268e27991d9c7961dfd7d5bedbd19c1f150f7161cbb4e59
3
  size 212015704
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66f24c6c4d89b2d400899e7f44bcaac2a00cfd444d92b7dc70100d7c4fbf3c26
3
  size 212015704
tokenizer_config.json CHANGED
@@ -43,11 +43,9 @@
43
  },
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
46
- "do_basic_tokenize": true,
47
  "do_lower_case": true,
48
  "mask_token": "[MASK]",
49
  "model_max_length": 512,
50
- "never_split": null,
51
  "pad_token": "[PAD]",
52
  "sep_token": "[SEP]",
53
  "strip_accents": null,
 
43
  },
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
 
46
  "do_lower_case": true,
47
  "mask_token": "[MASK]",
48
  "model_max_length": 512,
 
49
  "pad_token": "[PAD]",
50
  "sep_token": "[SEP]",
51
  "strip_accents": null,